Skip to content

Commit fb5153f

Browse files
committed
Adjust build.gradle file.
1 parent d97d7cb commit fb5153f

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

utils/socket-utils/build.gradle

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ ext {
55
apply from: "$rootDir/gradle/java.gradle"
66
apply plugin: "idea"
77

8+
sourceSets {
9+
main_java17 {
10+
java.srcDirs "${project.projectDir}/src/main/java17"
11+
}
12+
}
13+
814
[compileMain_java17Java, compileTestJava].each {
915
it.configure {
1016
setJavaVersion(it, 17)
@@ -14,9 +20,16 @@ apply plugin: "idea"
1420
}
1521

1622
dependencies {
23+
compileOnly sourceSets.main_java17.output
24+
1725
implementation libs.slf4j
1826
implementation project(':internal-api')
19-
implementation libs.jnr.unixsocket
27+
28+
implementation group: 'com.github.jnr', name: 'jnr-unixsocket', version: libs.versions.jnr.unixsocket.get()
29+
}
30+
31+
jar {
32+
from sourceSets.main_java17.output
2033
}
2134

2235
forbiddenApisMain_java17 {

0 commit comments

Comments
 (0)