-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.gradle.kts
45 lines (38 loc) · 1.01 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
plugins {
kotlin("jvm") version libs.versions.kotlin.get()
kotlin("plugin.serialization") version libs.versions.kotlin.get()
alias(libs.plugins.plasmovoice) apply false
alias(libs.plugins.plasmovoice.java.templates)
}
allprojects {
repositories {
mavenCentral()
mavenLocal()
maven("https://repo.plasmoverse.com/snapshots")
maven("https://repo.plasmoverse.com/releases")
}
}
subprojects {
apply(plugin = "kotlin")
apply(plugin = "kotlinx-serialization")
dependencies {
compileOnly(rootProject.libs.config)
compileOnly(rootProject.libs.kotlinx.json)
}
tasks {
compileKotlin {
kotlinOptions {
val key = "-Xjvm-default="
freeCompilerArgs = freeCompilerArgs.filterNot { it.startsWith(key) } + listOf(key + "all")
}
}
java {
toolchain.languageVersion.set(JavaLanguageVersion.of(8))
}
}
}
tasks {
jar {
enabled = false
}
}