Skip to content

Commit

Permalink
Remove annotation-only Jars from runtime classpath (in Gradle)
Browse files Browse the repository at this point in the history
  • Loading branch information
jjohannes committed Jan 8, 2024
1 parent 1de7270 commit c0f413d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 51 deletions.
42 changes: 0 additions & 42 deletions guava/module.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,27 +112,6 @@
"version": {
"requires": "9999.0-empty-to-avoid-conflict-with-guava"
}
},
{
"group": "com.google.code.findbugs",
"module": "jsr305",
"version": {
"requires": "${jsr305.version}"
}
},
{
"group": "org.checkerframework",
"module": "checker-qual",
"version": {
"requires": "${checker.version}"
}
},
{
"group": "com.google.errorprone",
"module": "error_prone_annotations",
"version": {
"requires": "${errorprone.version}"
}
}
],
"files": [
Expand Down Expand Up @@ -251,27 +230,6 @@
"version": {
"requires": "9999.0-empty-to-avoid-conflict-with-guava"
}
},
{
"group": "com.google.code.findbugs",
"module": "jsr305",
"version": {
"requires": "${jsr305.version}"
}
},
{
"group": "org.checkerframework",
"module": "checker-qual",
"version": {
"requires": "${checker.version}"
}
},
{
"group": "com.google.errorprone",
"module": "error_prone_annotations",
"version": {
"requires": "${errorprone.version}"
}
}
],
"files": [
Expand Down
21 changes: 12 additions & 9 deletions integration-tests/gradle/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,28 @@ val guavaVersionJre =
val expectedReducedRuntimeClasspathAndroidVersion =
setOf(
"guava-${guavaVersionJre.replace("jre", "android")}.jar",
"failureaccess-1.0.2.jar",
"jsr305-3.0.2.jar",
"checker-qual-3.41.0.jar",
"error_prone_annotations-2.23.0.jar",
"listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar"
"failureaccess-1.0.2.jar"
)
val expectedReducedRuntimeClasspathJreVersion =
setOf(
"guava-$guavaVersionJre.jar",
"failureaccess-1.0.2.jar",
"failureaccess-1.0.2.jar"
)
val expectedCompileClasspathAndroidVersion =
expectedReducedRuntimeClasspathAndroidVersion + setOf(
"j2objc-annotations-2.8.jar",
"jsr305-3.0.2.jar",
"checker-qual-3.41.0.jar",
"error_prone_annotations-2.23.0.jar",
"listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar"
)
val expectedCompileClasspathAndroidVersion =
expectedReducedRuntimeClasspathAndroidVersion + setOf("j2objc-annotations-2.8.jar")
val expectedCompileClasspathJreVersion =
expectedReducedRuntimeClasspathJreVersion + setOf("j2objc-annotations-2.8.jar")
expectedReducedRuntimeClasspathJreVersion + setOf(
"j2objc-annotations-2.8.jar",
"jsr305-3.0.2.jar",
"checker-qual-3.33.0.jar",
"error_prone_annotations-2.18.0.jar"
)

val extraLegacyDependencies = setOf("google-collections-1.0.jar")

Expand Down

0 comments on commit c0f413d

Please sign in to comment.