Skip to content

Commit

Permalink
Further fix publish config (#12514)
Browse files Browse the repository at this point in the history
Use bult-in shadow jar config for publishing

This URL was useful:
https://imperceptiblethoughts.com/shadow/publishing/#publishing-with-maven-publish-plugin
  • Loading branch information
DanVanAtta committed Apr 15, 2024
1 parent fde3ac4 commit ccbc709
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions http-clients/lobby-client/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def getGitCommitCount = { ->
}

shadowJar {
archiveFileName = 'lobby-client.jar'
version = "0." + getGitCommitCount()
}

publishing {
Expand All @@ -42,12 +42,8 @@ publishing {
}
}
publications {
gpr(MavenPublication) {
groupId = "org.triplea"
artifactId = "http.client.lobby"
version = "0." + getGitCommitCount()
from(components.java)
artifact(tasks["shadowJar"])
shadow(MavenPublication) { publication ->
project.shadow.component(publication)
}
}
}

0 comments on commit ccbc709

Please sign in to comment.