Skip to content

Commit

Permalink
Merge pull request #786 from seadowg/versioned-snapshot
Browse files Browse the repository at this point in the history
Add commit SHA to SNAPSHOT versions
  • Loading branch information
lognaturel committed Jul 25, 2024
2 parents f829dc1 + 78080e7 commit 632cc44
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
server-password: MAVEN_CENTRAL_TOKEN
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
gpg-passphrase: MAVEN_GPG_PASSPHRASE
- run: mvn clean deploy
- run: mvn -Drevision=$(git rev-parse --short HEAD) clean deploy
env:
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
MAVEN_CENTRAL_TOKEN: ${{ secrets.MAVEN_CENTRAL_TOKEN }}
Expand Down
12 changes: 0 additions & 12 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -53,18 +53,6 @@ targetCompatibility = '1.8'
sourceCompatibility = '1.8'

if (!project.hasProperty("android")) {
jar {
// Be sure to update version in pom.xml to match
// snapshot release = x.x.x-SNAPSHOT
// production release = x.x.x
archiveVersion = '5.5.0-SNAPSHOT'
archiveBaseName = "javarosa"

manifest {
attributes 'Manifest-Version': "$jar.archiveVersion"
}
}

// TODO: does not build UML diagrams
javadoc {
failOnError = false
Expand Down
5 changes: 3 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
<groupId>org.getodk</groupId>
<artifactId>javarosa</artifactId>
<!-- Be sure to update version in build.gradle to match -->
<!-- snapshot release = x.x.x-SNAPSHOT -->
<!-- snapshot release = x.x.x-SNAPSHOT-${revision} -->
<!-- production release = x.x.x -->
<version>5.0.0-SNAPSHOT</version>
<version>5.0.0-SNAPSHOT-${revision}</version>
<packaging>jar</packaging>
<name>javarosa</name>
<description>A Java library for rendering forms that are compliant with ODK XForms spec</description>
Expand Down Expand Up @@ -41,6 +41,7 @@
</distributionManagement>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<revision/>
</properties>
<dependencies>
<!-- Be sure to update dependencies in build.gradle to match -->
Expand Down

0 comments on commit 632cc44

Please sign in to comment.