use mvn version to remove -SNAPSHOT, bump 0.1.1

Signed-off-by: Todd Baert <toddbaert@gmail.com>
This commit is contained in:
Todd Baert 2022-09-03 21:00:15 -04:00
parent d5bd0fbf02
commit 0d6ae8c132
No known key found for this signature in database
GPG Key ID: 6832CDB677D5E06D
3 changed files with 8 additions and 7 deletions

View File

@ -38,11 +38,14 @@ jobs:
echo -n "$GPG_SIGNING_KEY" | base64 --decode | gpg --import
env:
GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }}
- name: Remove SNAPSHOT
run: mvn versions:set -DremoveSnapshot
- name: Deploy
run: |
run: |
mvn --batch-mode \
--settings release/m2-settings.xml clean deploy -Dversion.modifier=''
--settings release/m2-settings.xml clean deploy
env:
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}

View File

@ -65,7 +65,7 @@ class MyClass {
<dependency>
<groupId>dev.openfeature</groupId>
<artifactId>javasdk</artifactId>
<version>0.1.0</version>
<version>0.1.1</version>
</dependency>
```
@ -87,7 +87,7 @@ If you would like snapshot builds, this is the relevant repository information:
#### Gradle
```groovy
dependencies {
implementation 'dev.openfeature:javasdk:0.1.0'
implementation 'dev.openfeature:javasdk:0.1.1'
}
```

View File

@ -4,11 +4,9 @@
<groupId>dev.openfeature</groupId>
<artifactId>javasdk</artifactId>
<version>0.1.0${version.modifier}</version>
<version>0.1.1-SNAPSHOT</version>
<properties>
<!-- During releases, we override this to make it empty -->
<version.modifier>-SNAPSHOT</version.modifier>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>${maven.compiler.source}</maven.compiler.target>