Skip to content

Commit ed8d3fb

Browse files
committed
chore(build): tweak compile configuration
1 parent ba255b8 commit ed8d3fb

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

utils/socket-utils/build.gradle.kts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,8 @@ fun AbstractCompile.setJavaVersion(javaVersionInteger: Int) {
2626
(project.extra.get("setJavaVersion") as Closure<*>).call(this, javaVersionInteger)
2727
}
2828

29-
listOf(
30-
tasks.named<JavaCompile>("compileMain_java17Java"),
31-
tasks.named<JavaCompile>("compileTestJava"),
32-
).forEach {
33-
it.configure {
29+
listOf("compileMain_java17Java", "compileTestJava").forEach {
30+
tasks.named<JavaCompile>(it).configure {
3431
setJavaVersion(17)
3532
sourceCompatibility = JavaVersion.VERSION_1_8.toString()
3633
targetCompatibility = JavaVersion.VERSION_1_8.toString()

0 commit comments

Comments
 (0)