Fix dependency-locking config (#276)

* Fix dependency-locking config

Reenable dependency locking after a bug errorneouly turned it off.

Removed the guava-related workaround that forcefully resolve to
the -jre distribution.

Enabled locking for buildSrc by updating its property file.

Updated all lock files.
This commit is contained in:
Weimin Yu 2019-09-19 11:37:20 -04:00 committed by GitHub
parent baf0f616c5
commit 89404dc43d
166 changed files with 11731 additions and 202 deletions

View file

@ -28,20 +28,6 @@ tasks.test.dependsOn tasks.checkstyleTest
// TODO(weiminyu): investigate incremental coverage change calculation and alert.
tasks.test.finalizedBy jacocoTestReport
configurations.all {
// Guava as a transitive dependency is also referred to by version only,
// without suffix. In such cases, Gradle resolves it to ${version}-android,
// which lacks the collection classes. We use custom strategy to force the
// selection of '-jre' jar.
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
if (details.requested.group == 'com.google.guava'
&& details.requested.name == 'guava'
&& details.requested.version.endsWith('-android')) {
details.useVersion details.requested.version.replace('-android', '-jre')
}
}
}
dependencies {
// compatibility with Java 8
errorproneJavac("com.google.errorprone:javac:9+181-r4173-1")