File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44 push :
55 branches :
66 - dev
7+ - snapshot
8+ workflow_dispatch :
79
810jobs :
911 build-and-deploy-docs :
2527 restore-keys : ${{ runner.os }}-gradle
2628
2729 - name : Publish snapshot
30+ env :
31+ PGP_PRIVATE_SIGNING_KEY : ${{ secrets.PGP_PRIVATE_SIGNING_KEY }}
32+ PGP_PRIVATE_SIGNING_KEY_PASSWORD : ${{ secrets.PGP_PRIVATE_SIGNING_KEY_PASSWORD }}
33+ SONATYPE_MAVEN_CENTRAL_USERNAME : ${{ secrets.SONATYPE_MAVEN_CENTRAL_USERNAME }}
34+ SONATYPE_MAVEN_CENTRAL_PASSWORD : ${{ secrets.SONATYPE_MAVEN_CENTRAL_PASSWORD }}
2835 run : ./gradlew publishSnapshotPublicationToSonatypeRepository
Original file line number Diff line number Diff line change @@ -161,7 +161,9 @@ publishing {
161161 create<MavenPublication >(" snapshot" ) {
162162 groupId = mavenGroupId
163163 artifactId = mavenArtifactId
164- version = " ${rootProject.version} -SNAPSHOT"
164+ version = providers.exec {
165+ commandLine(" git" , " rev-parse" , " --short" , " HEAD" )
166+ }.standardOutput.asText.map { it.trim() }.get()
165167
166168 afterEvaluate {
167169 from(components[" java" ])
You can’t perform that action at this time.
0 commit comments