https://kotlinlang.org logo
Title
a

Alexander Ioffe

05/19/2023, 7:56 PM
Hi. I'm reading through various docs for publishing gradle artifacts to nexus (e.g. this one) and it looks like the right thing to use is https://github.com/gradle-nexus/publish-plugin. However, there is no mention of anything related to versioning and SCM version-incrementation. Coming from the maven world, I'm used to a release cycle where there's a snapshot-version incremented and snapshot-ed with the SCM. How is this kind of release-tagging done with Kotlin/Gradle ?
h

hfhbd

05/19/2023, 8:37 PM
There is no auto incrementing built in by Gradle, but there are 3rd party libraries which do create a changelog and increment the version. The mentioned plugin dues support SNAPSHOTs. If you use a regular version it is pushed to mavenCentral, if you use a snapshot, it is published to the snapshot repo.
h

Humphrey

05/23/2023, 12:36 AM