I use version-catalog plugin manage the dependencies like below:
catalog {
// declare the aliases, bundles and versions in this block
versionCatalog {
library('slf4j-api', 'org.slf4j:slf4j-api:' + slf4jApiVersion)
... other dependencies
}
}
publishing {
publications {
maven(MavenPublication) {
version moduleVersion
from components.versionCatalog
}
}
...
}
When publishing, it will publish toml and pom perfectly and other project can also import the toml successfully.
I also want to publish another bom file to nexus and version control the maven project. how? thanks alot