Gradle 7.2 Version Catalog + extenssions

Viewed 29
[versions]
groovy = "3.0.5"
checkstyle = "8.37"

[libraries]
groovy-core = { module = "org.codehaus.groovy:groovy", version.ref = "groovy" }
groovy-json = { module = "org.codehaus.groovy:groovy-json", version.ref = "groovy" }
groovy-nio = { module = "org.codehaus.groovy:groovy-nio", version.ref = "groovy" }
commons-lang3 = { group = "org.apache.commons", name = "commons-lang3", version = { 
strictly = "[3.8, 4.0[", prefer="3.9" } }

[bundles]
groovy = ["groovy-core", "groovy-json", "groovy-nio"]

[plugins]
jmh = { id = "me.champeau.jmh", version = "0.6.5" }    

Then, when I actually use the artifact, I have to do this:

implementation(libs.groovy-core) {artifact {type = "aar"}}

but when I use bundle? Not all use artifact, How to deal with it

implementation(libs.bundle.groovy) { artifact {type = "aar"}}
0 Answers
Related