Skip to content

Fix keepclasseswithmembernames syntax in the applets Gradle example - #545

Merged
piazzesiNiccolo-GS merged 1 commit into
Guardsquare:masterfrom
costajohnt:fix-applets-example-keep-option
Nov 19, 2026
Merged

piazzesiNiccolo-GS merged 1 commit into
Guardsquare:masterfrom
costajohnt:fix-applets-example-keep-option

Conversation

@costajohnt

Copy link
Copy Markdown
Contributor

examples/gradle/applets.gradle writes the native-method keep rule as keepclasseswithmembernames,includedescriptorclasses 'class * { ... }'. The comma makes it invalid Groovy, so the example build script fails to compile (Groovy 4.0.24: "Unexpected input: '{'"). The other Gradle examples use keepclasseswithmembernames includedescriptorclasses: true, '...', and this switches the applets example to the same form. The file now parses.

Found with groovyfmt, a Groovy formatter and linter.

The applets example wrote the option as
keepclasseswithmembernames,includedescriptorclasses 'class * {...}',
which is not valid Groovy, so the build script fails to compile. Use the
includedescriptorclasses: true form the other examples use.
@sonarqubecloud

Copy link
Copy Markdown

@piazzesiNiccolo-GS

Copy link
Copy Markdown
Contributor

Thank you!

@piazzesiNiccolo-GS
piazzesiNiccolo-GS merged commit aa1c9aa into Guardsquare:master Nov 19, 2026
4 checks passed
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.

2 participants