-
-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for multiple versions catalogs #596
Comments
After a bit of research, it's a bit tricky because Gradle doesn't give access to the file locations through a public API. An alternative (which can potentially co-exist with the previous one if we detect breakages of the reflection approach at runtime to let the user know), would be to provide an API for settings to use in place of the default |
It would be really nice to have this, or at least a first shot where you can configure the version catalog files manually. |
At the same time, it would be necessary to not remove version update comments. |
Here what halfway works as work-around for my use-case: gradle.rootProject {
tasks.configureEach {
if (name == "refreshVersions") {
doFirst {
copy {
from(gradle.parent!!.rootProject.file("gradle/libs.versions.toml"))
into("gradle")
}
}
doLast {
copy {
from("gradle/libs.versions.toml")
into(gradle.parent!!.rootProject.file("gradle"))
}
delete("gradle")
}
}
}
} |
TK @LouisCAD
The text was updated successfully, but these errors were encountered: