Skip to content

Commit 22af7ac

Browse files
authored
Jar publishing: also publish 'domain-data' jar (#12798)
Now that we no longer publish a shadow jar of 'http-client/lobby', we need to provide dependencies as well.
1 parent 01aca61 commit 22af7ac

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
lines changed

.github/workflows/upload-http-client-jars.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ jobs:
2828
BUILD_VERSION=$(game-app/run/.build/get-build-version)
2929
echo "JAR_VERSION=$BUILD_VERSION" | tee -a $GITHUB_ENV
3030
- name: Publish lobby client JAR
31-
run: ./gradlew :http-clients:lobby-client:publish
31+
run: ./gradlew :http-clients:lobby-client:publish :game-app:domain-data:publish
3232
env:
3333
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

game-app/domain-data/build.gradle

+29
Original file line numberDiff line numberDiff line change
@@ -1 +1,30 @@
1+
import org.gradle.api.publish.maven.MavenPublication
2+
3+
plugins {
4+
id 'java-library'
5+
id("maven-publish")
6+
}
7+
8+
version = System.getenv("JAR_VERSION")
9+
10+
11+
publishing {
12+
publications {
13+
maven(MavenPublication) {
14+
artifact(tasks.named(sourceSets.main.jarTaskName)) {
15+
extension 'jar'
16+
}
17+
}
18+
}
19+
repositories {
20+
maven {
21+
name = "GitHubPackages"
22+
url = "https://maven.pkg.github.com/triplea-game/triplea"
23+
credentials {
24+
username = System.getenv("GITHUB_ACTOR")
25+
password = System.getenv("GITHUB_TOKEN")
26+
}
27+
}
28+
}
29+
}
130

0 commit comments

Comments
 (0)