Slackbot
10/13/2023, 4:50 PMVampire
10/13/2023, 4:51 PMGiuseppe Barbieri
10/13/2023, 4:53 PMpluginManagement {
includeBuild("../gradle-catalog")
}
dependencyResolutionManagement {
versionCatalogs {
create("libs") {
from("org.scijava:gradle-catalog")
}
}
}
> Could not resolve all artifacts for configuration 'incomingCatalogForLibs0'.
> > Cannot resolve external dependency org.scijava:gradle-catalog because no repositories are defined.
> Required by:
> unspecifiedunspecifiedunspecified
I don't specify the version in from because it's imported via composite build, so it shouldn't be requiredGiuseppe Barbieri
10/13/2023, 4:55 PMsettings.gradle.kts)
plugins {
id("org.scijava.catalogs")
}
> An exception occurred applying plugin request [id: 'org.scijava.catalogs']
> > Failed to apply plugin 'org.scijava.catalogs'.
> > Invalid model name 'org.scijava': it must match the following regular expression: [a-z]([a-zA-Z0-9])+Vampire
10/13/2023, 4:56 PMorg.scijava which is not allowed.Vampire
10/13/2023, 4:57 PMVampire
10/13/2023, 4:58 PMpluginManagement { includeBuild { ... } } afair is just for looking up plugins by id, which is not what you are trying.Vampire
10/13/2023, 4:58 PMincludeBuild on top-level, but it might well be that this will not work, but not sure, never tried.Giuseppe Barbieri
10/13/2023, 4:59 PMVampire
10/13/2023, 5:03 PMGiuseppe Barbieri
10/13/2023, 5:05 PMGiuseppe Barbieri
10/15/2023, 10:09 AMcatalog branch)
When I includeBuild("../gradle-catalog"), then Gradle should perform substitution at
dependencyResolutionManagement {
versionCatalogs {
create("libs").from("org.scijava:gradle-catalog")
}
}
Unfortunately this is not the case
Interesting enough, I see available, via Idea code completion, addGeneratedCatalog(), which is coming from the included catalog plugin. However, whenever I try to run, it complanis:
Unresolved reference: addGeneratedCatalogI tried to move
addGeneratedCatalog() under some package (because it was under the root), but nothing changed..Vampire
10/15/2023, 8:11 PMVampire
10/15/2023, 8:11 PMcreate("libs").from("org.scijava:gradle-catalog") does not apply any plugin, it tries to define a catalog from a published TOML version catalogVampire
10/15/2023, 8:12 PMVampire
10/15/2023, 8:13 PMdependencyResolutionManagement { ... } block, put in plugins { id("org.scijava.catalogs") } and move the includeBuild into pluginManagement { ... }, then you have what you want.Vampire
10/15/2023, 8:18 PMcreate("org.scijava") and that is, what the error message complains about.
Come up with some naming strategy that does not use invalid names.
The error message even tells you the regex which it must match: [a-z]([a-zA-Z0-9])+
So you have to sart with a lowercase character, then any sequence of lowercase character, uppercase character, and digit.
Nothing else like dot or dash or underscore, not starting with a digit, ...
If you fix that place, then the next it complains about is the alias name 3D_Blob_Segmentation which is also not accepted.
The rules are not so strtict as for the catalog name, but still you cannot use arbitrary alias name.
If it for example starts with a digit, you couldn't generate a valid accessor for it.
So you "just" have to work on your generation code to not produce invalid names.Giuseppe Barbieri
10/16/2023, 10:14 AM