Skip to content

Commit

Permalink
Fix build.gradle annotation dependency check to make sure type is cor…
Browse files Browse the repository at this point in the history
…rect

PiperOrigin-RevId: 231473171
  • Loading branch information
dsn5ft authored and ikim24 committed Feb 1, 2019
1 parent 5b58a9e commit d36c500
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -254,12 +254,12 @@ subprojects {
}
}
// Adds a <type> tag for each dependency. This assumes that all dependencies except
// for support-annotations are aars, but it can break if in the future we depend on
// anything else that's not an aar.
// for "annotation" are aars, but it can break if in the future the artifactId
// changes or we depend on anything else that's not an aar.
// TODO: Remove this once Gradle automatically determines dependency types.
whenConfigured { pom ->
pom.dependencies.findAll { dependency ->
if (dependency.artifactId != 'support-annotations') {
if (dependency.artifactId != 'annotation') {
dependency.type = 'aar'
}
}
Expand Down

0 comments on commit d36c500

Please sign in to comment.