-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
72 lines (59 loc) · 1.98 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
group = ""
version = "1.3"
plugins {
val kotlinVersion = "1.6.0"
kotlin("jvm") version kotlinVersion
kotlin("kapt") version kotlinVersion
id("com.github.johnrengelman.shadow") version "7.1.0"
id("net.minecrell.plugin-yml.bukkit") version "0.3.0"
}
repositories {
mavenCentral()
maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/")
maven("https://oss.sonatype.org/content/groups/public/")
maven("https://maven.enginehub.org/repo/")
maven("https://repo.aikar.co/content/groups/aikar/")
maven("https://repo.codemc.org/repository/maven-public/")
maven("https://repo.dmulloy2.net/nexus/repository/public/")
}
dependencies {
implementation(kotlin("stdlib"))
implementation(kotlin("reflect"))
implementation("co.aikar:acf-paper:0.5.0-SNAPSHOT")
implementation("com.google.re2j:re2j:1.6")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.0-RC")
compileOnly("de.tr7zw:item-nbt-api-plugin:2.8.0")
compileOnly("org.spigotmc:spigot-api:1.17-R0.1-SNAPSHOT")
compileOnly("com.sk89q.worldedit:worldedit-bukkit:7.2.0-SNAPSHOT")
compileOnly("com.comphenix.protocol:ProtocolLib:4.7.0")
testImplementation("org.junit.jupiter:junit-jupiter-api:5.3.1")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.3.1")
}
bukkit {
main = "redstonetools.RedstoneTools"
apiVersion = "1.17"
depend = listOf("WorldEdit", "ProtocolLib", "NBTAPI")
}
tasks.test {
useJUnitPlatform()
}
tasks.shadowJar {
relocate("co.aikar.commands", "redstonetools.acf")
}
tasks.withType<KotlinCompile> {
kotlinOptions {
jvmTarget = "11"
javaParameters = true
freeCompilerArgs = listOf(
"-Xopt-in=kotlin.ExperimentalStdlibApi",
"-Xopt-in=kotlinx.coroutines.ExperimentalCoroutinesApi"
)
}
}
tasks.build {
dependsOn(tasks.shadowJar)
}
tasks.register("getVersion") {
println(version)
}