Skip to content

Commit ed05511

Browse files
authored
Publish more dependencies (#12802)
Need more (all) of the transitive dependencies now that we no longer publish a shadow jar
1 parent d8518c6 commit ed05511

File tree

3 files changed

+62
-1
lines changed

3 files changed

+62
-1
lines changed

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

+3-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ on:
88
- '.github/workflows/upload-http-client-jars.yml'
99
- 'game-app/domain-data/**'
1010
- 'http-clients/**'
11+
- 'lib/java-extras/**'
12+
- 'lib/websocket-client/**'
1113
env:
1214
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1315
jobs:
@@ -30,6 +32,6 @@ jobs:
3032
BUILD_VERSION=$(game-app/run/.build/get-build-version)
3133
echo "JAR_VERSION=$BUILD_VERSION" | tee -a $GITHUB_ENV
3234
- name: Publish lobby client JAR
33-
run: ./gradlew :http-clients:lobby-client:publish :game-app:domain-data:publish
35+
run: ./gradlew :http-clients:lobby-client:publish :game-app:domain-data:publish :lib:java-extras:publish :lib:websocket-client:publish
3436
env:
3537
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

lib/java-extras/build.gradle

+30
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,35 @@
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+
111
description = "TripleA library for low-level helper APIs, ie: syntactic sugar"
212

313
dependencies {
414
testImplementation project(":lib:test-common")
515
}
16+
17+
publishing {
18+
publications {
19+
maven(MavenPublication) {
20+
artifact(tasks.named(sourceSets.main.jarTaskName)) {
21+
extension 'jar'
22+
}
23+
}
24+
}
25+
repositories {
26+
maven {
27+
name = "GitHubPackages"
28+
url = "https://maven.pkg.github.com/triplea-game/triplea"
29+
credentials {
30+
username = System.getenv("GITHUB_ACTOR")
31+
password = System.getenv("GITHUB_TOKEN")
32+
}
33+
}
34+
}
35+
}

lib/websocket-client/build.gradle

+29
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,32 @@
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+
110
dependencies {
211
implementation project(":lib:java-extras")
312
}
13+
14+
publishing {
15+
publications {
16+
maven(MavenPublication) {
17+
artifact(tasks.named(sourceSets.main.jarTaskName)) {
18+
extension 'jar'
19+
}
20+
}
21+
}
22+
repositories {
23+
maven {
24+
name = "GitHubPackages"
25+
url = "https://maven.pkg.github.com/triplea-game/triplea"
26+
credentials {
27+
username = System.getenv("GITHUB_ACTOR")
28+
password = System.getenv("GITHUB_TOKEN")
29+
}
30+
}
31+
}
32+
}

0 commit comments

Comments
 (0)