Skip to content

Commit 85d0f8d

Browse files
committed
[ci skip] small root build.gradle.kts tweaks
1 parent 6c2bf1e commit 85d0f8d

File tree

1 file changed

+8
-14
lines changed

1 file changed

+8
-14
lines changed

build.gradle.kts

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
plugins {
2-
id("java")
3-
id("java-library")
4-
id("maven-publish")
5-
}
6-
71
subprojects {
82
plugins.apply("java")
93
plugins.apply("java-library")
@@ -14,13 +8,13 @@ subprojects {
148
}
159

1610
dependencies {
17-
testCompileOnly("org.projectlombok:lombok:1.18.34")
18-
testAnnotationProcessor("org.projectlombok:lombok:1.18.34")
19-
testImplementation(platform("org.junit:junit-bom:5.10.0"))
20-
testImplementation("org.junit.jupiter:junit-jupiter")
11+
"testCompileOnly"("org.projectlombok:lombok:1.18.34")
12+
"testAnnotationProcessor"("org.projectlombok:lombok:1.18.34")
13+
"testImplementation"(platform("org.junit:junit-bom:5.10.0"))
14+
"testImplementation"("org.junit.jupiter:junit-jupiter")
2115
}
2216

23-
java {
17+
extensions.configure<JavaPluginExtension> {
2418
toolchain.languageVersion = JavaLanguageVersion.of(17)
2519

2620
withSourcesJar()
@@ -30,15 +24,15 @@ subprojects {
3024
withType<JavaCompile> {
3125
options.encoding = Charsets.UTF_8.name()
3226
options.release = 17
33-
dependsOn(clean)
27+
dependsOn("clean")
3428
}
3529

3630
withType<Test> {
3731
useJUnitPlatform()
3832
}
3933
}
4034

41-
publishing {
35+
extensions.configure<PublishingExtension> {
4236
repositories {
4337
val repoType = if (version.toString().endsWith("-SNAPSHOT")) "snapshots" else "releases"
4438
maven("https://repo.roxymc.net/${repoType}") {
@@ -55,4 +49,4 @@ subprojects {
5549
}
5650
}
5751
}
58-
}
52+
}

0 commit comments

Comments
 (0)