Skip to content

Commit dda0997

Browse files
committed
Make gradle dependency more specific and add testImplementation to socket-utils.
1 parent 6c188d9 commit dda0997

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

gradle/java_no_deps.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ if (project.hasProperty('minJavaVersionForTests') && project.getProperty('minJav
6060
}
6161

6262
dependencies {
63-
if (name == "java17") {
63+
if ("${project.projectDir}".endsWith("socket-utils")) {
6464
compileOnly files(project.sourceSets."main_$name".output)
6565
} else {
6666
compileOnly files(project.sourceSets."main_$name".compileClasspath)

utils/socket-utils/build.gradle

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ dependencies {
1717
implementation libs.slf4j
1818
implementation project(':internal-api')
1919
implementation libs.jnr.unixsocket
20+
testImplementation files(sourceSets.main_java17.output)
2021
}
2122

2223
forbiddenApisMain_java17 {

0 commit comments

Comments
 (0)