Slackbot
02/17/2022, 12:07 AMephemient
02/17/2022, 12:08 AMephemient
02/17/2022, 12:10 AMdependencyResolutionManagement {
versionCatalogs {
create("libs") {
from(files("../gradle/libs.versions.toml"))
}
}
}
but that won't pick anything added to the catalog via root settings.gradle, for exampleTomáš Procházka
02/17/2022, 12:19 AMenableFeaturePreview("VERSION_CATALOGS")
there would be enough. But no there must be code as you sent.Vampire
02/17/2022, 12:27 AMgradle.properties
values and so on.Vampire
02/17/2022, 12:27 AMTomáš Procházka
02/17/2022, 12:37 AMephemient
02/17/2022, 12:46 AMincluded/gradle/libs.versions.toml
if availableephemient
02/17/2022, 12:48 AMTomáš Procházka
02/17/2022, 12:50 AMverification-metadata.xml
which can be in gradle
folder will be used for included build from this included/gradle/
folder, right?Vampire
02/17/2022, 12:51 AMTomáš Procházka
02/17/2022, 12:51 AMVampire
02/17/2022, 12:51 AMlibs.versions.toml
IS specific to one module the same way gradle.properties
isVampire
02/17/2022, 12:52 AMVampire
02/17/2022, 12:52 AMTomáš Procházka
02/17/2022, 12:54 AMephemient
02/17/2022, 12:56 AMTomáš Procházka
02/17/2022, 12:56 AMIf for example the included build is really a stand-alone project that is just used as composite here tooAnd yes, you have right that make sense that it looking to gradle folder inside of included build, since it can be completely different project. It make fully sense from this point of view.
Vampire
02/17/2022, 1:12 AMor have it inside module, than it is used only by one module.If by "module" you mean "build", then this is correct. If by "module" you mean a project within a multi-project build, then this is not correct. You can have at most one
gradle.properties
and that must be in the root directory (not talking abou the user-specific local one in GRADLE_USER_HOME
here)
All projects in the build (not in included builds) share that gradle.properties
file.
But libs.versions.toml is definitely not specific to some module, since in is inside of gradle folder, it is common for all modules inside of project, included module is only exeception here.From this I guess you indeed mean "project" when you say "module". So assuming you remembered wrongly about having project-specific Gradle properties file, do you still think it is different between
gradle.properties
and libs.versions.toml
?
For me it is the same for both as both behave the same and have the same scope.
Except that you can easily import the toml to another build if you like to.