Skip to content

Commit

Permalink
#74: Fixed automatic deployment to Maven Central (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
kaklakariada authored Sep 8, 2024
1 parent 8067df1 commit 4b1dc3a
Show file tree
Hide file tree
Showing 5 changed files with 94 additions and 93 deletions.
3 changes: 2 additions & 1 deletion doc/changes/changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Changes

* [1.2.2](changes_1.2.2.md)
* [1.2.1](changes_1.2.1.md)
* [1.2.0](changes_1.2.0.md)
* [1.1.0](changes_1.1.0.md)
* [1.1.0](changes_1.1.0.md)
11 changes: 11 additions & 0 deletions doc/changes/changes_1.2.2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# JUnit5 System Extensions 1.2.2, released 2024-09-08

Code name: Fix automatic release

## Summary

This release fixes the automatic release process via GitHub Actions.

## Bugfixes

* [#74](https://github.com/itsallcode/junit5-system-extensions/issues/74): Fix deployment to Maven Central
21 changes: 0 additions & 21 deletions launch/j5se - package.launch

This file was deleted.

27 changes: 0 additions & 27 deletions launch/j5se - run all tests.launch

This file was deleted.

125 changes: 81 additions & 44 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.itsallcode</groupId>
<artifactId>junit5-system-extensions</artifactId>
<version>1.2.1</version>
<version>1.2.2</version>
<name>JUnit5 System Extensions</name>
<description>These extensions help testing behavior that is related to `System.x` calls like `exit(int).</description>
<url>https://github.com/itsallcode/junit5-system-extensions</url>
Expand Down Expand Up @@ -36,11 +36,13 @@
</scm>
<properties>
<java.version>11</java.version>
<junit.version>5.10.3</junit.version>
<junit.version>5.11.0</junit.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<skipSigningArtifacts>true</skipSigningArtifacts>
<sonar.host.url>https://sonarcloud.io</sonar.host.url>
<sonar.organization>itsallcode</sonar.organization>
<reproducible.build.timestamp>${git.commit.time}</reproducible.build.timestamp>
<project.build.outputTimestamp>${reproducible.build.timestamp}</project.build.outputTimestamp>
</properties>
<distributionManagement>
<snapshotRepository>
Expand All @@ -67,10 +69,49 @@
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<version>5.12.0</version>
<version>5.13.0</version>
<scope>test</scope>
</dependency>
</dependencies>
<profiles>
<profile>
<id>ossrh</id>
<build>
<plugins>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.7.0</version>
<extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>3.2.5</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>3.1.3</version>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<build>
<plugins>
<plugin>
Expand Down Expand Up @@ -122,7 +163,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.7.0</version>
<version>3.10.0</version>
<executions>
<execution>
<id>attach-javadocs</id>
Expand All @@ -143,6 +184,11 @@
</additionalJOptions>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.4.2</version>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
Expand All @@ -165,45 +211,12 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.3.0</version>
<version>3.5.0</version>
<configuration>
<!-- Suppress warning about loading byte-buddy-agent -->
<argLine>-XX:+EnableDynamicAgentLoading ${argLine}</argLine>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>3.2.4</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
<configuration>
<skip>${skipSigningArtifacts}</skip>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>3.1.2</version>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.7.0</version>
<extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
Expand All @@ -225,18 +238,42 @@
</executions>
</plugin>
<plugin>
<groupId>io.github.zlika</groupId>
<artifactId>reproducible-build-maven-plugin</artifactId>
<version>0.16</version>
<groupId>io.github.git-commit-id</groupId>
<artifactId>git-commit-id-maven-plugin</artifactId>
<version>9.0.1</version>
<executions>
<execution>
<id>get-the-git-infos</id>
<goals>
<goal>revision</goal>
</goals>
<phase>initialize</phase>
</execution>
</executions>
<configuration>
<verbose>true</verbose>
<skipPoms>false</skipPoms>
<includeOnlyProperties>
<includeOnlyProperty>git.commit.time</includeOnlyProperty>
</includeOnlyProperties>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-artifact-plugin</artifactId>
<version>3.5.1</version>
<executions>
<execution>
<id>strip-jar</id>
<phase>package</phase>
<id>verify-reproducible-build</id>
<phase>verify</phase>
<goals>
<goal>strip-jar</goal>
<goal>check-buildplan</goal>
</goals>
</execution>
</executions>
<configuration>
<failOnNonReproducible>true</failOnNonReproducible>
</configuration>
</plugin>
</plugins>
</build>
Expand Down

0 comments on commit 4b1dc3a

Please sign in to comment.