You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The refreshVersions gradle task adds ## unused comment above keys that are explicitly used via the versionFor notiation.
⚠️ Current behavior
I didn't expect that the ## unused comment would appear above that key/value in the version.properties file.
✅ Expected behavior
I think refreshVersions should detect the use of that key (in the versionFor) and not add the ## unsed comment above it in version.properties.
💣 Steps to reproduce
Add a key/value to version.properties like version.foo=1.2.3
Use that in your build.gradle.kts file via the versionFor("version.foo") notation
Run ./gradlew refreshVersions
The ## unused comment appears above that key/value in the version.properties file.
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.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 your
build.gradle.kts
file via theversionFor("version.foo")
notationRun
./gradlew refreshVersions
The
## unused
comment appears above that key/value in theversion.properties
file.📱 Tech info
The text was updated successfully, but these errors were encountered: