Skip to content

Commit

Permalink
disable modules that will not be deployed
Browse files Browse the repository at this point in the history
workaround for crappy nexus-staging-maven-plugin, see https://issues.sonatype.org/browse/NEXUS-6272
  • Loading branch information
overheadhunter committed Aug 30, 2022
1 parent ac4b5eb commit 1c797cd
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/publish-central.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@ jobs:
- name: Deploy
run: mvn deploy -B -DskipTests -Psign,deploy-central,linux-amd64,linux-aarch64,mac,win-amd64 --no-transfer-progress
env:
MAVEN_OPTS: >
--add-opens=java.base/java.util=ALL-UNNAMED
--add-opens=java.base/java.lang.reflect=ALL-UNNAMED
--add-opens=java.base/java.text=ALL-UNNAMED
--add-opens=java.desktop/java.awt.font=ALL-UNNAMED
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.RELEASES_GPG_PASSPHRASE }}
18 changes: 15 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,13 @@
</scm>

<properties>
<maven.deploy.skip>false</maven.deploy.skip>
<jextract.path>${java.home}/bin/jextract</jextract.path>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

<modules>
<module>jfuse-api</module>
<module>jfuse-examples</module>
<module>jfuse-tests</module>
</modules>

<dependencies>
Expand Down Expand Up @@ -121,7 +120,7 @@
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.8</version>
<version>1.6.13</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down Expand Up @@ -246,6 +245,19 @@
</modules>
</profile>

<profile>
<id>test</id>
<activation>
<property>
<name>!skipTests</name>
</property>
</activation>
<modules>
<module>jfuse-examples</module>
<module>jfuse-tests</module>
</modules>
</profile>

<profile>
<id>sign</id>
<build>
Expand Down

0 comments on commit 1c797cd

Please sign in to comment.