-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
54 lines (43 loc) · 1.02 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
plugins {
kotlin("jvm") version "1.8.20-Beta"
}
group = "nxt.extensions"
version = "0.0.1"
repositories {
mavenLocal()
maven("https://repo.flawcra.cc/mirrors")
}
val compiles = listOf(
"org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.8.10", // Kotlin Standard Library
"com.github.TheFruxz:Ascend:2023.1",
"org.spigotmc:spigot-api:1.19.3-R0.1-SNAPSHOT",
"nxt:nxtbase:0.1.2"
)
dependencies {
compiles.forEach { dependency ->
compileOnly(dependency)
}
}
tasks.test {
useJUnitPlatform()
}
tasks {
withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions.jvmTarget = "17"
kotlinOptions.freeCompilerArgs += "-opt-in=kotlin.RequiresOptIn"
}
withType<ProcessResources> {
filesMatching("extension.json") {
expand(project.properties)
}
}
}
kotlin {
jvmToolchain(17)
}
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
withJavadocJar()
withSourcesJar()
}