Slackbot
01/19/2024, 4:18 AM박성우
01/19/2024, 4:22 AMdependencyResolutionManagement {
versionCatalogs {
create("libs") {
from(files("../gradle/libs.versions.toml"))
}
}
}
• aaa-convention (module)
• bbb-convention (module)
◦ bbb-base-convention.gradle.kts
plugins {
java-library
}
val libs: VersionCatalog = the<VersionCatalogsExtension>().named("libs")
dependencies {
...
}
◦ bbb-application-convention.gradle.kts
plugins {
id("bbb-base-convention")
}
val libs: VersionCatalog = the<VersionCatalogsExtension>().named("libs")
dependencies {
val xxxVersion = libs.findVersion("xxx").get()
...
}Vampire
01/19/2024, 10:10 AMHi, thank you for your always good comments and feedback.
Gradle’s community support is cool.Assuming you mean me, you're welcome. But it also sounds like you think I'm a Gradle supporter. I'm not affiliated to Gradle in any way. I'm just a user like you, helping other users. Also, I cannot really understand what you mean with Q1 neither Q2. Or do you think that when applying the plugins it should find the entried from the version catalog that you only have in the convention plugin project. If that's the case, then this is your misunderstanding. You would need to have this version catalog in the project where you want to apply the plugins, not in the convention plugin build.
박성우
01/21/2024, 4:33 PMVampire
01/21/2024, 9:11 PMI really thought you were a developer working on Gradle.No, never. I regularly send contributions and are mentioned as external contributor in most release notes. But I'm not affiliated to Gradle in any way. I'm not even a Gradle Fellow.
박성우
01/22/2024, 10:20 AM