Skip to content

Commit

Permalink
Publish more dependencies (#12802)
Browse files Browse the repository at this point in the history
Need more (all) of the transitive dependencies now that we no longer
publish a shadow jar
  • Loading branch information
DanVanAtta authored Jul 29, 2024
1 parent d8518c6 commit ed05511
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/upload-http-client-jars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ on:
- '.github/workflows/upload-http-client-jars.yml'
- 'game-app/domain-data/**'
- 'http-clients/**'
- 'lib/java-extras/**'
- 'lib/websocket-client/**'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
Expand All @@ -30,6 +32,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 :game-app:domain-data:publish
run: ./gradlew :http-clients:lobby-client:publish :game-app:domain-data:publish :lib:java-extras:publish :lib:websocket-client:publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30 changes: 30 additions & 0 deletions lib/java-extras/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,35 @@
import org.gradle.api.publish.maven.MavenPublication

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

version = System.getenv("JAR_VERSION")


description = "TripleA library for low-level helper APIs, ie: syntactic sugar"

dependencies {
testImplementation project(":lib:test-common")
}

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")
}
}
}
}
29 changes: 29 additions & 0 deletions lib/websocket-client/build.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,32 @@
import org.gradle.api.publish.maven.MavenPublication

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

version = System.getenv("JAR_VERSION")

dependencies {
implementation project(":lib:java-extras")
}

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 ed05511

Please sign in to comment.