-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
50 lines (43 loc) · 976 Bytes
/
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
plugins {
kotlin("jvm")
`java-gradle-plugin`
`maven-publish`
id("dev.fastmc.maven-repo").version("1.0.0")
}
gradlePlugin {
plugins {
create("multi-jdk") {
id = "dev.fastmc.multi-jdk"
displayName = "multi-jdk"
description = "Compile for multiple JDKs"
implementationClass = "dev.fastmc.multijdk.MultiJdkPlugin"
}
}
}
group = "dev.fastmc"
version = "1.1-SNAPSHOT"
java {
withSourcesJar()
}
repositories {
mavenCentral()
}
dependencies {
val kotlinVersion: String by project
compileOnly("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion")
}
tasks {
compileJava {
options.encoding = "UTF-8"
sourceCompatibility = "17"
targetCompatibility = "17"
}
compileKotlin {
kotlinOptions {
jvmTarget = "17"
freeCompilerArgs += listOf(
"-Xbackend-threads=0"
)
}
}
}