Skip to content

Commit 7c8fd79

Browse files
committed
Fix build.gradle file.
1 parent 32dc963 commit 7c8fd79

File tree

2 files changed

+8
-23
lines changed

2 files changed

+8
-23
lines changed

utils/socket-utils/build.gradle

Lines changed: 8 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,22 @@
1-
apply from: "$rootDir/gradle/java.gradle"
2-
apply plugin: "idea"
3-
41
ext {
52
minJavaVersionForTests = JavaVersion.VERSION_17
63
}
74

8-
sourceSets {
9-
main_java17 {
10-
java.srcDirs "${project.projectDir}/src/main/java17"
11-
}
5+
apply from: "$rootDir/gradle/java.gradle"
6+
apply plugin: "idea"
127

13-
test_java17 {
14-
java.srcDirs "${project.projectDir}/src/test/java17"
8+
[compileMain_java17Java, compileTestJava].each {
9+
it.configure {
10+
setJavaVersion(it, 17)
11+
sourceCompatibility = JavaVersion.VERSION_1_8
12+
targetCompatibility = JavaVersion.VERSION_1_8
1513
}
1614
}
1715

18-
compileMain_java17Java.configure {
19-
setJavaVersion(it, 17)
20-
sourceCompatibility = JavaVersion.VERSION_1_8
21-
targetCompatibility = JavaVersion.VERSION_1_8
22-
}
23-
2416
dependencies {
25-
compileOnly sourceSets.main_java17.output
26-
2717
implementation libs.slf4j
2818
implementation project(':internal-api')
29-
30-
implementation group: 'com.github.jnr', name: 'jnr-unixsocket', version: libs.versions.jnr.unixsocket.get()
31-
}
32-
33-
jar {
34-
from sourceSets.main_java17.output
19+
implementation libs.jnr.unixsocket
3520
}
3621

3722
forbiddenApisMain_java17 {

0 commit comments

Comments
 (0)