Skip to content

Commit

Permalink
add release
Browse files Browse the repository at this point in the history
  • Loading branch information
paultuckey committed Oct 18, 2023
1 parent 7817bf2 commit 332a831
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 4 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/release.yml
Expand Up @@ -11,8 +11,16 @@ jobs:
- uses: actions/checkout@v3

# Do manually for now (Sep 2023)
# https://central.sonatype.org/publish/publish-maven/#nexus-staging-maven-plugin-for-deployment-and-release
# brew uninstall gpg2
# brew install gnupg
# which gpg
# sudo ln -s /opt/homebrew/bin/gpg /usr/local/bin/gpg2
# gpg --gen-key --default-new-key-algo=rsa4096/cert,sign+rsa4096/encr
# gpg --list-keys
# gpg --keyserver hkp://keys.openpgp.org --send-keys 01F9EF136A63C2E2BFE561AC5001F66EF9179A2C
#
# mvn deploy
# mvn clean deploy

# - name: Set up Java for publishing to Maven Central Repository
# uses: actions/setup-java@v3
Expand Down
2 changes: 1 addition & 1 deletion container-test/example-webapp/pom.xml
Expand Up @@ -58,7 +58,7 @@
<!-- run `mvn install` locally root of project -->
<groupId>org.tuckey</groupId>
<artifactId>urlrewritefilter</artifactId>
<version>5.1.0-SNAPSHOT</version>
<version>5.1.1</version>
</dependency>
<dependency>
<groupId>jakarta.servlet</groupId>
Expand Down
2 changes: 1 addition & 1 deletion container-test/test-with-testcontainers/pom.xml
Expand Up @@ -46,7 +46,7 @@
<!-- run `mvn install` locally root of project -->
<groupId>org.tuckey</groupId>
<artifactId>urlrewritefilter</artifactId>
<version>5.1.0-SNAPSHOT</version>
<version>5.1.1</version>
</dependency>
<dependency>
<!-- run `mvn install` locally in example-webapp -->
Expand Down
33 changes: 32 additions & 1 deletion pom.xml
Expand Up @@ -5,7 +5,7 @@
<groupId>org.tuckey</groupId>
<artifactId>urlrewritefilter</artifactId>
<packaging>jar</packaging>
<version>5.1.0-SNAPSHOT</version>
<version>5.1.1</version>
<name>UrlRewriteFilter</name>
<url>http://www.tuckey.org/urlrewrite/</url>
<inceptionYear>2001</inceptionYear>
Expand Down Expand Up @@ -195,6 +195,37 @@
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.5</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
<configuration>
<gpgArguments>
<arg>--pinentry-mode</arg>
<arg>loopback</arg>
</gpgArguments>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.13</version>
<extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
</configuration>
</plugin>
</plugins>
</build>

Expand Down

0 comments on commit 332a831

Please sign in to comment.