gradle-lint-plugin icon indicating copy to clipboard operation
gradle-lint-plugin copied to clipboard

fixGradleLint uses single quotes that break variable interpolations

Open jaxley opened this issue 6 years ago • 2 comments

I had double-quoted items in gradle.build so that variable interpolation would work to manage version numbers centrally in one place in the script. But when you run fixGradleLint, it rewrites the items surrounded in single quotes that prevent variable interpolation from working

runtime 'com.fasterxml.jackson.core:jackson-databind:$jacksonVersion'

Should either preserve the original quoting or use double quotes to be safe.

jaxley avatar Nov 08 '18 17:11 jaxley

Hi @jaxley , thanks for the report.

Were you able to identify which rule is causing this? That would be very helpful to fix this issue

rpalcolea avatar Nov 09 '18 01:11 rpalcolea

@rpalcolea I have the same issue with dependency-tuple rule

mkordas avatar Jan 24 '19 16:01 mkordas