Slackbot
05/03/2023, 7:56 PMClayton Walker
05/03/2023, 7:58 PMimplementation("com.mycompany", "mylib", "1.release-125")
then we can get gradle to throw a resolution error
> Could not find com.mycompany:my-lib:1.release-125.
Clayton Walker
05/03/2023, 7:59 PMephemient
05/03/2023, 8:00 PMephemient
05/03/2023, 8:04 PMrelease-*
qualifier, which is quite confusingephemient
05/03/2023, 8:05 PMVampire
05/03/2023, 9:10 PMrelease
is the "major" version and 125
and 87
are the "minor" versions.
It just splits versions at .
, -
, _
, and +
and additonally at the change between non-numeric and numeric, then the parts are compared.
So release-87
< release-124
< release-125
Vampire
05/03/2023, 9:11 PMClayton Walker
05/03/2023, 9:32 PMClayton Walker
05/03/2023, 9:32 PMgradle mylib1:pTML mylib2:pTML
will create 2 publications (published to ~/.m2)
these will have 2 versions of the same artifact (release-124 and release-87)Clayton Walker
05/03/2023, 9:33 PMgradle :myconsumer:run
to see the outputClayton Walker
05/03/2023, 9:33 PMVampire
05/03/2023, 9:49 PMClayton Walker
05/03/2023, 9:51 PMrelease-<build-number>
Clayton Walker
05/03/2023, 9:52 PM// why is release-125 completely ignored
implementation("com.mycompany", "mylib", "release-125")
implementation("com.mycompany", "mylib", "release-87")
Clayton Walker
05/03/2023, 9:55 PMmyconsumer
is the only part comparable to our setup. If you change release-125
to 1.release-125
(for example) it’ll throw a dependency resolution error.Vampire
05/03/2023, 10:04 PMVampire
05/03/2023, 10:07 PMClayton Walker
05/03/2023, 10:13 PMVampire
05/03/2023, 10:19 PMClayton Walker
05/03/2023, 10:20 PM