Skip to content

Make compatible with Gradle 9#310

Merged
davidmotson merged 2 commits intogoogle:mainfrom
ganadist:gradle9_fix
Aug 1, 2025
Merged

Make compatible with Gradle 9#310
davidmotson merged 2 commits intogoogle:mainfrom
ganadist:gradle9_fix

Conversation

@ganadist
Copy link
Copy Markdown
Contributor

@ganadist ganadist commented Jun 17, 2025

Fix #309

Bytecode of plugin refer groovy.util.XmlSlurper, but this class is not accessible in Groovy 4 runtime.
Added import statement to use groovy.xml.XmlSlurper class which is available on Groovy 3 and 4 runtime.
ref :

  • AS-IS
$ javap -c -cp oss-licenses-plugin-0.10.6.jar com.google.android.gms.oss.licenses.plugin.LicensesTask | grep XmlSlurper
     259: ldc_w         #488                // class groovy/util/XmlSlurper
  • TO-BE
$ javap -c -cp oss-licenses-plugin-0.10.6.jar com.google.android.gms.oss.licenses.plugin.LicensesTask | grep XmlSlurper
     260: ldc_w         #488                // class groovy/xml/XmlSlurper

@VinayGuthal VinayGuthal requested a review from davidmotson July 31, 2025 21:14
@davidmotson davidmotson merged commit c9a5842 into google:main Aug 1, 2025
4 checks passed
@heftisun
Copy link
Copy Markdown

.

@boyloveman1992-droid
Copy link
Copy Markdown

paing.oomg@bk.ru

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

OSS License plugin is not compatible with Gradle 9

4 participants