-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle.kts
52 lines (39 loc) · 1.22 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
import org.gradle.plugins.ide.idea.model.IdeaLanguageLevel
version = "0.1"
group = "systemofadownload"
plugins {
`java-library`
id("com.github.johnrengelman.shadow") version "8.1.1" apply false
id("io.micronaut.library") version "4.4.0" apply false
id("io.micronaut.application") version "4.4.0" apply false
id("io.micronaut.docker") version "4.4.0" apply false
id("io.micronaut.aot") version "4.4.0" apply false
id("io.micronaut.test-resources") version "4.4.0" apply false
id("org.gradlex.extra-java-module-info") version "1.9" apply false
}
repositories {
mavenCentral()
}
tasks.wrapper {
distributionType = Wrapper.DistributionType.ALL
}
allprojects {
apply(plugin = "java-library")
java {
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
if (JavaVersion.current() < JavaVersion.VERSION_21) {
toolchain {
languageVersion.set(JavaLanguageVersion.of(21))
}
}
}
tasks {
// withType<JavaCompile> {
// options.compilerArgs.add("--enable-preview")
// }
// withType<Test> {
// jvmArgs("--enable-preview")
// }
}
}