Skip to content

Commit

Permalink
Attempt to publish non-shaded jar to maven
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent Pizzo committed Jul 30, 2024
1 parent 4fda17e commit f3dbccc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ jobs:
run: ./mvnw -ntp -B --file pom.xml -Pnative package -DskipTests

- name: 'Create distribution'
run: ./mvnw -ntp -B --file pom.xml -Pdist package -DskipTests
run: ./mvnw -ntp -B --file pom.xml -Pdist package -DskipTests -DskipShaded

- name: 'Upload build artifact'
uses: actions/upload-artifact@v4
Expand Down Expand Up @@ -158,7 +158,7 @@ jobs:
cache: maven

- name: 'Prepare Staging for JReleaser'
run: ./mvnw -Ppublication deploy -DskipTests
run: for filename in target/original-*.jar; do rm "${filename//original-/}" && mv "$filename" "${filename//original-/}"; done && ./mvnw -Ppublication deploy -DskipTests -DskipShaded

- name: 'Release with JReleaser'
env:
Expand Down
3 changes: 3 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@

<!-- Dependencies -->
<plugin.site.version>4.0.0-M15</plugin.site.version>

<skipShaded>false</skipShaded>
</properties>

<!-- Override dependencies -->
Expand Down Expand Up @@ -391,6 +393,7 @@
</execution>
</executions>
<configuration>
<skip>${skipShaded}</skip>
<finalName>${project.artifactId}-${project.version}</finalName>
</configuration>
</plugin>
Expand Down

0 comments on commit f3dbccc

Please sign in to comment.