-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
69 lines (58 loc) · 1.52 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
@file:Suppress("UnstableApiUsage")
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
allprojects {
group = "dev.luna5ama"
version = "1.1-SNAPSHOT"
repositories {
mavenCentral()
maven("https://maven.luna5ama.dev/")
}
}
plugins {
kotlin("jvm")
`maven-publish`
id("dev.fastmc.maven-repo").version("1.0.0").apply(false)
id("dev.luna5ama.ktgen").version("1.0.0").apply(false)
}
subprojects {
apply {
plugin("java")
plugin("kotlin")
plugin("maven-publish")
plugin("dev.fastmc.maven-repo")
}
base {
archivesName.set("${rootProject.name.lowercase()}-${project.name}")
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(8))
vendor.set(JvmVendorSpec.ADOPTIUM)
}
withSourcesJar()
}
dependencies {
testImplementation(kotlin("test"))
}
tasks {
test {
project.javaToolchains {
[email protected](launcherFor {
languageVersion.set(JavaLanguageVersion.of(8))
vendor.set(JvmVendorSpec.ADOPTIUM)
})
}
useJUnitPlatform()
}
withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs = listOf(
"-Xlambdas=indy",
"-Xjvm-default=all",
"-Xbackend-threads=0"
)
}
}
}
}
tasks.jar.get().isEnabled = false