-
Notifications
You must be signed in to change notification settings - Fork 15
/
build.gradle.kts
52 lines (40 loc) · 1.5 KB
/
build.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
plugins {
kotlin("jvm") version(libs.versions.kotlin.get())
alias(libs.plugins.pv) apply false
alias(libs.plugins.pv.java.templates)
id("io.papermc.paperweight.userdev") version "1.7.2" apply false
}
allprojects {
if (project == project(":nms")) return@allprojects
apply(plugin = "kotlin")
repositories {
mavenCentral()
mavenLocal()
maven {
name = "codemc-snapshots"
url = uri("https://repo.codemc.io/repository/maven-snapshots/")
}
maven("https://repo.plasmoverse.com/snapshots")
maven("https://repo.plasmoverse.com/releases")
maven("https://repo.plo.su")
maven("https://m2.dv8tion.net/releases")
maven("https://repo.papermc.io/repository/maven-public/")
maven("https://repo.codemc.io/repository/maven-public/")
maven("https://repo.dmulloy2.net/repository/public/")
maven("https://jitpack.io/")
}
dependencies {
compileOnly(kotlin("stdlib"))
compileOnly(rootProject.libs.kotlinx.coroutines.core)
compileOnly(rootProject.libs.kotlinx.coroutines.jdk8)
compileOnly(rootProject.libs.protocollib)
compileOnly(rootProject.libs.pv)
compileOnly(rootProject.libs.pv.lavaplayer)
compileOnly(rootProject.libs.slib)
}
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
kotlinOptions {
freeCompilerArgs = freeCompilerArgs + "-Xcontext-receivers"
}
}
}