buildscript: fix artifact id and group id being incorrect

This commit is contained in:
Telan committed 2021-12-13 17:20:27 +02:00
1 parent 659ad055d4
commit 5af85c307d
2 files changed
+4 -4

No files matched your search

+2 -2
View File
@@ -42,8 +42,8 @@ jobs:
run: ./gradlew publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GROUP_ID: com.github.${{ env.REPOSITORY_NAME }}
ARTIFACT_NAME: "${{ env.REPOSITORY_NAME }}"
ARTIFACT_GROUP_ID: com.github.${{ env.REPOSITORY_OWNER }}
ARTIFACT_ID: "${{ env.REPOSITORY_NAME }}"
ARTIFACT_VERSION: "0.0.1-publish-test"
REPOSITORY_NAME: "${{ env.REPOSITORY_NAME }}"
REPOSITORY_OWNER: "${{ env.REPOSITORY_OWNER }}"
+2 -2
View File
@@ -472,8 +472,8 @@ publishing {
archives source: apiJar, classifier: "api"
}
groupId = System.getenv("GROUP_ID") ?: group
artifactId = System.getenv("ARTIFACT_NAME") ?: project.name
groupId = System.getenv("ARTIFACT_GROUP_ID") ?: group
artifactId = System.getenv("ARTIFACT_ID") ?: project.name
version = System.getenv("ARTIFACT_VERSION") ?: project.version
}
}