Skip to content

Commit 98e9e42

Browse files
authored
Merge pull request #2 from Multiverse/dtm/fix_version
Use system properties for release version.
2 parents 13bddcd + 7099a88 commit 98e9e42

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

.github/workflows/push.release.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,9 @@ jobs:
3838

3939
- name: Build & Publish
4040
uses: gradle/gradle-build-action@v2
41-
env:
42-
GITHUB_VERSION: ${{ needs.create_release.outputs.version }}
4341
with:
4442
arguments: >
4543
clean build publish
44+
-Dversion=${{ needs.create_release.outputs.version }}
4645
-PmultiverseUsername=${{ secrets.REPOSILITE_REPO_USERNAME }}
4746
-PmultiversePassword=${{ secrets.REPOSILITE_REPO_PASSWORD }}

build.gradle

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ plugins {
55
}
66

77
group = 'org.mvplugins.gradle'
8-
version = System.getenv('GITHUB_VERSION') ?: '0.0.0-SNAPSHOT'
8+
version = System.getProperty('version', '0.0.0-SNAPSHOT')
99

1010
repositories {
1111
mavenCentral()
@@ -21,9 +21,7 @@ publishing {
2121
repositories {
2222
maven {
2323
name = "multiverse"
24-
def releasesRepoUrl = "https://repo.onarandombox.com/multiverse-releases"
25-
def snapshotsRepoUrl = "https://repo.onarandombox.com/multiverse-snapshots"
26-
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
24+
url = 'https://repo.onarandombox.com/multiverse-releases'
2725
credentials(PasswordCredentials)
2826
}
2927
}

0 commit comments

Comments
 (0)