Skip to content

Commit

Permalink
Publish feign-common as lib dependency (#12803)
Browse files Browse the repository at this point in the history
  • Loading branch information
DanVanAtta authored Jul 30, 2024
1 parent ed05511 commit 257aa77
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/upload-http-client-jars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:
- 'http-clients/**'
- 'lib/java-extras/**'
- 'lib/websocket-client/**'
- 'lib/feign-common/**'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
Expand All @@ -32,6 +33,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 :lib:java-extras:publish :lib:websocket-client:publish
run: ./gradlew :http-clients:lobby-client:publish :game-app:domain-data:publish :lib:java-extras:publish :lib:websocket-client:publish :lib:feign-common:publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29 changes: 29 additions & 0 deletions lib/feign-common/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,34 @@
import org.gradle.api.publish.maven.MavenPublication

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

version = System.getenv("JAR_VERSION")

dependencies {
implementation project(":game-app:domain-data")
implementation project(":lib:java-extras")
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")
}
}
}
}

0 comments on commit 257aa77

Please sign in to comment.