Use envs instead of properties for build file
This commit is contained in:
parent
3951371b2b
commit
e593871521
|
|
@ -38,4 +38,4 @@ jobs:
|
||||||
arguments: publish -PossrhUsername=${{ secrets.OSSRH_USERNAME }} -PossrhPassword=${{ secrets.OSSRH_PASSWORD }}
|
arguments: publish -PossrhUsername=${{ secrets.OSSRH_USERNAME }} -PossrhPassword=${{ secrets.OSSRH_PASSWORD }}
|
||||||
env:
|
env:
|
||||||
release: 1
|
release: 1
|
||||||
REPOSITORY_URL: https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/
|
REPOSITORY_URL: https://s01.oss.sonatype.org/service/local/
|
||||||
|
|
|
||||||
|
|
@ -78,7 +78,7 @@ jar.archiveBaseName = 'openfeature'
|
||||||
def repo_url = System.getenv("REPOSITORY_URL")
|
def repo_url = System.getenv("REPOSITORY_URL")
|
||||||
|
|
||||||
group = 'dev.openfeature'
|
group = 'dev.openfeature'
|
||||||
version = '0.0.1' + (Boolean.valueOf(System.getProperty("release")) ? "" : "-SNAPSHOT")
|
version = '0.0.1' + (Boolean.valueOf(System.getenv("release")) ? "" : "-SNAPSHOT")
|
||||||
|
|
||||||
publishing {
|
publishing {
|
||||||
publications {
|
publications {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue