Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

Commit

Permalink
Merge pull request #30 from ralfkonrad/add_gpg-plugin-version_3.2.7-S…
Browse files Browse the repository at this point in the history
…NAPSHOT

Add gpg-plugin-version 3.2.7-SNAPSHOT to build pipeline
  • Loading branch information
ralfkonrad authored Sep 24, 2024
2 parents a67834a + f25220e commit da434f5
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 5 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/build-and-sign.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@ on:
push: { }
pull_request: { }
workflow_dispatch: { }
schedule:
- cron: '23 2 * * *'

env:
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}

jobs:
build-and-sign:
name: Build and sign with gpg-plugin v${{ matrix.gpg-plugin-version }}, ${{ matrix.os }}, jdk${{ matrix.java-version }}
name: "Build and sign with gpg-plugin v${{ matrix.gpg-plugin-version }}, ${{ matrix.os }}, jdk${{ matrix.java-version }}"
strategy:
fail-fast: false
matrix:
Expand All @@ -26,7 +28,8 @@ jobs:
- windows-2022
gpg-plugin-version:
- "3.1.0"
- "3.2.4"
# - "3.2.6" # disabled as it fails
- "3.2.7-SNAPSHOT"

runs-on: ${{ matrix.os }}

Expand Down Expand Up @@ -74,7 +77,7 @@ jobs:
- name: "Set maven-gpg-plugin.version to v${{ matrix.gpg-plugin-version }}"
shell: bash
run: |
./mvnw --batch-mode --show-version versions:set-property -D "property=maven-gpg-plugin.version" -D "newVersion=${{ matrix.gpg-plugin-version }}"
./mvnw --batch-mode --show-version versions:set-property -D "property=maven-gpg-plugin.version" -D "newVersion=${{ matrix.gpg-plugin-version }}"
- name: "Build and sign"
shell: bash
Expand Down
19 changes: 17 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
</issueManagement>

<properties>
<maven-gpg-plugin.version>3.2.6</maven-gpg-plugin.version>
<maven-gpg-plugin.version>3.2.7-SNAPSHOT</maven-gpg-plugin.version>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand Down Expand Up @@ -84,6 +84,21 @@
</dependency>
</dependencies>

<pluginRepositories>
<pluginRepository>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
<checksumPolicy>fail</checksumPolicy>
</snapshots>
<id>apache-snapshots</id>
<url>https://repository.apache.org/content/repositories/snapshots/</url>
</pluginRepository>
</pluginRepositories>

<build>
<pluginManagement>
<plugins>
Expand Down Expand Up @@ -158,7 +173,7 @@
versions!</message>
<banLatest>true</banLatest>
<banRelease>true</banRelease>
<banSnapshots>true</banSnapshots>
<banSnapshots>false</banSnapshots>
</requirePluginVersions>
</rules>
</configuration>
Expand Down

0 comments on commit da434f5

Please sign in to comment.