Skip to content

Commit

Permalink
Jar publishing: also publish 'domain-data' jar (#12798)
Browse files Browse the repository at this point in the history
Now that we no longer publish a shadow jar of 'http-client/lobby',
we need to provide dependencies as well.
  • Loading branch information
DanVanAtta committed Jul 29, 2024
1 parent 01aca61 commit 22af7ac
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/upload-http-client-jars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ jobs:
BUILD_VERSION=$(game-app/run/.build/get-build-version)
echo "JAR_VERSION=$BUILD_VERSION" | tee -a $GITHUB_ENV
- name: Publish lobby client JAR
run: ./gradlew :http-clients:lobby-client:publish
run: ./gradlew :http-clients:lobby-client:publish :game-app:domain-data:publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29 changes: 29 additions & 0 deletions game-app/domain-data/build.gradle
Original file line number Diff line number Diff line change
@@ -1 +1,30 @@
import org.gradle.api.publish.maven.MavenPublication

plugins {
id 'java-library'
id("maven-publish")
}

version = System.getenv("JAR_VERSION")


publishing {
publications {
maven(MavenPublication) {
artifact(tasks.named(sourceSets.main.jarTaskName)) {
extension 'jar'
}
}
}
repositories {
maven {
name = "GitHubPackages"
url = "https://maven.pkg.github.com/triplea-game/triplea"
credentials {
username = System.getenv("GITHUB_ACTOR")
password = System.getenv("GITHUB_TOKEN")
}
}
}
}

0 comments on commit 22af7ac

Please sign in to comment.