Use envs instead of properties for build file

This commit is contained in:
Justin Abrahms 2022-06-23 10:23:24 -05:00
parent 3951371b2b
commit e593871521
No known key found for this signature in database
GPG Key ID: 599E2E12011DC474
2 changed files with 2 additions and 2 deletions

View File

@ -38,4 +38,4 @@ jobs:
arguments: publish -PossrhUsername=${{ secrets.OSSRH_USERNAME }} -PossrhPassword=${{ secrets.OSSRH_PASSWORD }}
env:
release: 1
REPOSITORY_URL: https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/
REPOSITORY_URL: https://s01.oss.sonatype.org/service/local/

View File

@ -78,7 +78,7 @@ jar.archiveBaseName = 'openfeature'
def repo_url = System.getenv("REPOSITORY_URL")
group = 'dev.openfeature'
version = '0.0.1' + (Boolean.valueOf(System.getProperty("release")) ? "" : "-SNAPSHOT")
version = '0.0.1' + (Boolean.valueOf(System.getenv("release")) ? "" : "-SNAPSHOT")
publishing {
publications {