Skip to content

Commit

Permalink
Merge pull request #261 from focus-shift/260-upload-artefacts
Browse files Browse the repository at this point in the history
Do not add test module on -Drelease
  • Loading branch information
derTobsch committed Aug 11, 2023
2 parents b99367a + 40c441e commit 22e4957
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Build with Maven
run: >
./mvnw $MAVEN_CLI_OPTS
-Prelease
-Prelease -Drelease
clean deploy
env:
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
Expand Down
19 changes: 0 additions & 19 deletions jollyday-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -77,23 +77,4 @@
</plugin>
</plugins>
</build>

<profiles>
<profile>
<id>release</id>
<build>
<plugins>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.13</version>
<configuration>
<skipNexusStagingDeployMojo>true</skipNexusStagingDeployMojo>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>

</project>
20 changes: 19 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
<modules>
<module>jollyday-core</module>
<module>jollyday-jaxb</module>
<module>jollyday-tests</module>
</modules>

<developers>
Expand Down Expand Up @@ -338,5 +337,24 @@
</plugins>
</build>
</profile>

<profile>
<id>no-release</id>
<!--
According to https://github.com/sonatype/nexus-maven-plugins/tree/master/staging/maven-plugin
skipNexusStagingDeployMojo may not be set to true in the last reactor module. Because we don't
want to deploy our last module, nor a dummy module, we simply omit the relevant modules when
a deployment is in progress.
-->
<activation>
<property>
<name>!release</name>
</property>
</activation>
<modules>
<module>jollyday-tests</module>
</modules>
</profile>

</profiles>
</project>

0 comments on commit 22e4957

Please sign in to comment.