Open podollb opened 1 year ago
Any updates on this?
Try putting a dependency notation instead
I'm not sure I understand, instead of versionFor("version.foo")
what should I use in my logic in my gradle build file? I'm using the value in some conditional logic.
🐛 Describe the bug
The
refreshVersions
gradle task adds## unused
comment above keys that are explicitly used via theversionFor
notiation.⚠️ Current behavior
I didn't expect that the
## unused
comment would appear above that key/value in theversion.properties
file.✅ Expected behavior
I think
refreshVersions
should detect the use of that key (in theversionFor
) and not add the## unsed
comment above it inversion.properties
.💣 Steps to reproduce
Add a key/value to
version.properties
likeversion.foo=1.2.3
Use that in yourbuild.gradle.kts
file via theversionFor("version.foo")
notation Run./gradlew refreshVersions
The
## unused
comment appears above that key/value in theversion.properties
file.📱 Tech info