]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-13155 clean-up Guava transitive dependencies
authorSimon Brandhof <simon.brandhof@sonarsource.com>
Fri, 6 Mar 2020 07:58:52 +0000 (08:58 +0100)
committersonartech <sonartech@sonarsource.com>
Sat, 21 Mar 2020 20:04:02 +0000 (20:04 +0000)
See https://github.com/google/guava/wiki/UseGuavaInYourBuild#what-about-guavas-own-dependencies

build.gradle

index 7cd1882cfc7e7d01351055c8888d1c8f28ce4626..30fc88aacc6325e3b3ec42cc567ee8afa8b83756 100644 (file)
@@ -187,7 +187,13 @@ subprojects {
       }
       dependency 'com.google.code.findbugs:jsr305:3.0.2'
       dependency 'com.google.code.gson:gson:2.8.5'
-      dependency 'com.google.guava:guava:28.1-jre'
+      dependency('com.google.guava:guava:28.2-jre') {
+        exclude 'com.google.errorprone:error_prone_annotations'
+        exclude 'com.google.guava:listenablefuture'
+        exclude 'com.google.j2objc:j2objc-annotations'
+        exclude 'org.checkerframework:checker-qual'
+        exclude 'org.codehaus.mojo:animal-sniffer-annotations'
+      }
       dependency "com.google.protobuf:protobuf-java:${protobufVersion}"
       // Do not upgrade H2 to 1.4.200 because of instability: https://github.com/h2database/h2database/issues/2205
       dependency 'com.h2database:h2:1.4.199'