Slackbot
03/16/2023, 9:30 PMEric Haag
03/16/2023, 10:00 PMprojectName-x
convention as you described. In fact, we can look at a few open source projects that demonstrate the same convention:
⢠https://github.com/spring-projects/spring-framework
⢠https://github.com/junit-team/junit5
But there are also many projects that do not follow that convention.
It should be noted that you can always override the convention of using the project name only as the published artifactId. For example, you could override the convention to be {rootProjectName}-{projectName}
.
See the Gradle documentation for more info on configuring the publishing plugin: https://docs.gradle.org/current/userguide/publishing_maven.htmlVampire
03/16/2023, 11:55 PM<my-group>:...
but at <my-group>.projectName:...
.Eric Haag
03/16/2023, 11:59 PMBut that would then make problem if the project is consumed in a composite build, wouldn't it?Could you describe a scenario in which it would cause a problem? š¤
An alternative would be, that you do not publish atYeah, that would work too!but at<my-group>:...
.<my-group>.projectName:....
Vampire
03/17/2023, 12:00 AMCould you describe a scenario in which it would cause a problem?With "problem" I mean you cannot simply include it, but need to use manual dependency substitution, which I personally see as work-around for badly configure builds. š
Eric Haag
03/17/2023, 12:12 AMVampire
03/17/2023, 12:13 AMEric Haag
03/17/2023, 12:15 AMIvan CLOVIS Canet
03/17/2023, 8:57 AMVampire
03/17/2023, 9:06 AMfoo.bar
you also own all foo.bar.baz
, foo.bar.baz.bam
and so on.Ivan CLOVIS Canet
03/17/2023, 9:06 AMEric Haag
03/17/2023, 12:06 PMartifactId
introduced any confusion, you could still use <my-group>:projectName-x:<version>
if for some reason a consistent group is important to you. If not, then Vampire's suggestion is certainly less verbose.Ivan CLOVIS Canet
03/17/2023, 12:12 PM