Skip to content

Commit

Permalink
Dependency updates
Browse files Browse the repository at this point in the history
  • Loading branch information
danielflower committed Dec 21, 2024
1 parent 9d3269e commit ad12ed1
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 28 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
name: Build and test

on: [push]
on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
java: [ 8, 11 ]
java: [ 8, 11, 21 ]
name: Java ${{ matrix.java }} build
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v1
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: 'temurin'
cache: 'maven'

- run: echo "M2_HOME=$(dirname $(dirname `which mvn`))" >> $GITHUB_ENV
- run: git config --global user.email "[email protected]"
Expand Down
37 changes: 37 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Publish to Maven Central Repository
on: workflow_dispatch

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install gpg secret key
run: cat <(echo -e "${{ secrets.OSSRH_GPG_SECRET_KEY }}") | gpg --batch --import
- name: Set up Maven Central Repository
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'temurin'
cache: 'maven'
- name: Set up maven settings
uses: s4u/[email protected]
with:
servers: |
[{
"id": "ossrh",
"username": "${{ secrets.OSSRH_USERNAME }}",
"password": "${{ secrets.OSSRH_TOKEN }}"
},
{
"id": "gpg.passphrase",
"passphrase": "${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }}",
"configuration": {}
}]
- run: git config --global user.email "[email protected]"
- run: git config --global user.name "Github Action"
- run: echo "M2_HOME=$(dirname $(dirname `which mvn`))" >> $GITHUB_ENV
- name: Verify package
run: mvn --batch-mode verify
- name: Release package
run: mvn --batch-mode -DskipTests=true releaser:release
53 changes: 29 additions & 24 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<github.global.server>github</github.global.server>
<jsch.agentproxy.version>0.0.9</jsch.agentproxy.version>
<maven.artifact.version>3.8.5</maven.artifact.version>
<maven.plugin.api.version>3.8.5</maven.plugin.api.version>
<maven.artifact.version>3.9.9</maven.artifact.version>
<maven.plugin.api.version>3.9.9</maven.plugin.api.version>
<maven.project.version>2.2.1</maven.project.version>
<maven.model.version>3.8.5</maven.model.version>
<maven.settings.version>3.8.5</maven.settings.version>
<maven.model.version>3.9.9</maven.model.version>
<maven.settings.version>3.9.9</maven.settings.version>
</properties>

<ciManagement>
Expand All @@ -36,7 +36,7 @@

<scm>
<url>https://github.com/danielflower/multi-module-maven-release-plugin</url>
<connection>scm:git:git@github.com:danielflower/multi-module-maven-release-plugin.git</connection>
<connection>scm:git:https://github.com/danielflower/multi-module-maven-release-plugin.git</connection>
</scm>

<inceptionYear>2015</inceptionYear>
Expand Down Expand Up @@ -128,7 +128,7 @@
<dependency>
<groupId>org.apache.maven.plugin-tools</groupId>
<artifactId>maven-plugin-annotations</artifactId>
<version>3.6.4</version>
<version>3.15.1</version>
</dependency>
<dependency>
<groupId>org.apache.maven.shared</groupId>
Expand All @@ -138,12 +138,12 @@
<dependency>
<groupId>org.eclipse.jgit</groupId>
<artifactId>org.eclipse.jgit</artifactId>
<version>5.13.0.202109080827-r</version>
<version>5.13.3.202401111512-r</version>
</dependency>
<dependency>
<groupId>org.eclipse.jgit</groupId>
<artifactId>org.eclipse.jgit.ssh.jsch</artifactId>
<version>5.13.0.202109080827-r</version>
<version>5.13.3.202401111512-r</version>
</dependency>
<dependency>
<groupId>com.jcraft</groupId>
Expand All @@ -165,13 +165,18 @@
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-utils</artifactId>
<version>3.4.1</version>
<version>4.0.2</version>
</dependency>
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-xml</artifactId>
<version>4.0.4</version>
</dependency>

<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.11.0</version>
<version>2.18.0</version>
<scope>test</scope>
</dependency>
<dependency>
Expand All @@ -183,13 +188,13 @@
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-exec</artifactId>
<version>1.3</version>
<version>1.4.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest</artifactId>
<version>2.2</version>
<version>3.0</version>
<scope>test</scope>
</dependency>
<dependency>
Expand All @@ -201,7 +206,7 @@
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<version>4.4.0</version>
<version>4.11.0</version>
<scope>test</scope>
</dependency>
</dependencies>
Expand Down Expand Up @@ -251,12 +256,12 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M5</version>
<version>3.5.2</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.9.0</version>
<version>3.13.0</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
Expand All @@ -283,12 +288,12 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<version>3.10.0</version>
<version>3.21.0</version>
<dependencies>
<dependency>
<groupId>org.apache.maven.doxia</groupId>
<artifactId>doxia-module-markdown</artifactId>
<version>1.11.1</version>
<version>2.0.0</version>
</dependency>
</dependencies>
</plugin>
Expand Down Expand Up @@ -319,7 +324,7 @@
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.8</version>
<version>1.6.13</version>
<extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
Expand All @@ -330,7 +335,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.2.0</version>
<version>3.3.1</version>
<executions>
<execution>
<id>attach-sources</id>
Expand All @@ -343,7 +348,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.3.1</version>
<version>3.11.2</version>
<executions>
<execution>
<id>attach-javadocs</id>
Expand All @@ -356,7 +361,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>3.0.1</version>
<version>3.2.4</version>
<executions>
<execution>
<id>sign-artifacts</id>
Expand Down Expand Up @@ -395,20 +400,20 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugin-plugin</artifactId>
<version>3.6.4</version>
<version>3.15.1</version>
<configuration>
<goalPrefix>releaser</goalPrefix>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-report-plugin</artifactId>
<version>3.0.0-M5</version>
<version>3.5.2</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-project-info-reports-plugin</artifactId>
<version>3.2.1</version>
<version>3.8.0</version>
<reportSets>
<reportSet>
<reports>
Expand Down

0 comments on commit ad12ed1

Please sign in to comment.