Skip to content

Commit

Permalink
Fixed some gradle issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
Johannestegner committed Jun 17, 2020
1 parent bad82bd commit 28e792d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ jobs:

- name: Build with Gradle
run: gradle build

- name: Set version
run: echo ::set-env name=RELEASE_VERSION::${GITHUB_REF#refs/*/}
- name: Publish to GitHub Packages
run: gradle publish
env:
Expand Down
7 changes: 5 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ dependencies {
testCompile ("junit:junit:4.12", "org.json:json:20200518")
}

version = '0.1.0'

version = System.getenv("RELEASE_VERSION")
jar {
manifest {
attributes('Implementation-Title': project.name,
Expand Down Expand Up @@ -46,7 +46,10 @@ publishing {
}
publications {
gpr(MavenPublication) {
from(components.java)
version = System.getenv("RELEASE_VERSION")
groupId = 'dev.personnummer'

from components.java
}
}
}

0 comments on commit 28e792d

Please sign in to comment.