Skip to content

Commit

Permalink
[ci] Fix group ids not being respected
Browse files Browse the repository at this point in the history
  • Loading branch information
robotgryphon committed Jan 2, 2022
1 parent 38e3e46 commit dc8d259
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-tests-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ jobs:
run: chmod +x gradlew

- name: Publish gradle nightly jar
run: ./gradlew publishNightlyMavenPublicationToGitHubPackagesRepository
run: ./gradlew publishNightlyPublicationToGitHubPackagesRepository
env:
CM_RELEASE: false
GITHUB_ACTOR: ${{ secrets.GITHUB_ACTOR }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/manual-gh-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ jobs:
run: chmod +x gradlew

- name: Publish JAR with Gradle
run: ./gradlew publish -x test
run: ./gradlew publishReleasePublicationToGitHubPackagesRepository -x test
env:
CM_RELEASE: true
GITHUB_ACTOR: ${{ secrets.GITHUB_ACTOR }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tagged-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ jobs:
run: chmod +x gradlew

- name: Publish package
run: ./gradlew publishMavenPublicationToGitHubPackagesRepository -x test
run: ./gradlew publishReleasePublicationToGitHubPackagesRepository -x test
env:
CM_RELEASE: true
GITHUB_ACTOR: ${{ secrets.GITHUB_ACTOR }}
Expand Down
13 changes: 7 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ jar {
"Specification-Vendor" : "",
"Specification-Version" : "1", // We are version 1 of ourselves
"Implementation-Title" : project.name,
"Implementation-Version" : version,
"Implementation-Version" : archiveVersion,
"Implementation-Vendor" : "",
"Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")
])
Expand All @@ -229,10 +229,10 @@ artifacts {

publishing {
publications {
maven(MavenPublication) {
release(MavenPublication) {
artifactId = mod_id
group = "dev.compactmods"
groupId = "dev.compactmods"

artifacts {
artifact jar
artifact(apiJar) {
Expand All @@ -241,9 +241,10 @@ publishing {
}
}

nightlyMaven(MavenPublication) {
nightly(MavenPublication) {
artifactId = mod_id
group = "dev.compactmods.nightly"
groupId = "dev.compactmods.nightly"
version = "${mod_version}+nightly-${gitCommitHash}"

artifacts {
artifact(jar)
Expand Down

0 comments on commit dc8d259

Please sign in to comment.