Skip to content

Commit d36c500

Browse files
dsn5ftikim24
authored andcommitted
Fix build.gradle annotation dependency check to make sure type is correct
PiperOrigin-RevId: 231473171
1 parent 5b58a9e commit d36c500

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -254,12 +254,12 @@ subprojects {
254254
}
255255
}
256256
// Adds a <type> tag for each dependency. This assumes that all dependencies except
257-
// for support-annotations are aars, but it can break if in the future we depend on
258-
// anything else that's not an aar.
257+
// for "annotation" are aars, but it can break if in the future the artifactId
258+
// changes or we depend on anything else that's not an aar.
259259
// TODO: Remove this once Gradle automatically determines dependency types.
260260
whenConfigured { pom ->
261261
pom.dependencies.findAll { dependency ->
262-
if (dependency.artifactId != 'support-annotations') {
262+
if (dependency.artifactId != 'annotation') {
263263
dependency.type = 'aar'
264264
}
265265
}

0 commit comments

Comments
 (0)