Skip to content

Commit

Permalink
[publish] fix shadow jar publication
Browse files Browse the repository at this point in the history
  • Loading branch information
FrogDevelopper committed May 16, 2024
1 parent 19d9875 commit 58285c3
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 41 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/ci_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ env:
on:
push:
branches: [ "**" ]
pull_request:
branches: [ "develop" ]
release:
types: [ created ]

jobs:
build:
Expand Down Expand Up @@ -49,6 +49,8 @@ jobs:
- name: Publish package
run: ./gradlew publish
env:
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_TOKEN: ${{ secrets.OSSRH_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.GNUPG_PRIVATE_KEY }}
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.GNUPG_PASSPHRASE }}
32 changes: 0 additions & 32 deletions .github/workflows/release.yml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,9 @@ signing {
}

tasks {
matching { it is PublishToMavenRepository && it.repository.name == "sonatype" }.all {
onlyIf { releaseVersion }
}
matching { it is PublishToMavenRepository && it.repository.name == "github" }.all {
onlyIf { !releaseVersion }
withType<PublishToMavenRepository>().configureEach {
onlyIf {
(releaseVersion && repository.name == "sonatype") || (!releaseVersion && repository.name == "github")
}
}
}
3 changes: 1 addition & 2 deletions consul-populate-cli/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,11 @@ tasks {
jar {
enabled = false
}

shadowJar {
// minimize() waiting https://github.com/johnrengelman/shadow/pull/876
archiveClassifier.set("")
}


test {
// https://github.com/stefanbirkner/system-lambda/issues/27
systemProperty("java.security.manager", "allow")
Expand Down

0 comments on commit 58285c3

Please sign in to comment.