Skip to content

Commit d4eaa6b

Browse files
committed
update printAGPVersion task to follow the signature change
1 parent 424208a commit d4eaa6b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/test/resources/project/build.gradle

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ android {
3131

3232
task printAGPVersion() {
3333
doLast {
34-
println AndroidGradlePlugin.getVersion().toArtifactString()
34+
def agpPlugin = project.plugins.findPlugin("com.android.application")
35+
def agpVersionString = AndroidGradlePlugin.getVersionString(agpPlugin.class.classLoader)
36+
def versionObj = AndroidGradlePlugin.getVersion(agpVersionString)
37+
println versionObj.toArtifactString()
3538
}
3639
}

0 commit comments

Comments
 (0)