-
Notifications
You must be signed in to change notification settings - Fork 61
/
Copy pathbuild.gradle
32 lines (28 loc) · 905 Bytes
/
build.gradle
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
plugins {
alias(libs.plugins.kotlin.jvm) apply false
alias(libs.plugins.kotlin.android) apply false
alias(libs.plugins.agp.application) apply false
alias(libs.plugins.agp.library) apply false
alias(libs.plugins.dokka) apply false
}
allprojects {
version = project.findProperty("version")
group = "io.github.inflationx"
pluginManager.withPlugin("java") {
java {
toolchain {
languageVersion.set(
JavaLanguageVersion.of(libs.versions.jdk.get().removeSuffix("-ea").toInt())
)
}
}
tasks.withType(JavaCompile).configureEach {
options.release.set(8)
}
}
pluginManager.withPlugin("org.gradle.maven-publish") {
tasks.register("publishRelease") {
it.dependsOn("publishReleasePublicationToSonatypeRepository")
}
}
}