Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
vy committed Jun 6, 2024
1 parent fffc095 commit 730b38f
Show file tree
Hide file tree
Showing 22 changed files with 131 additions and 185 deletions.
48 changes: 0 additions & 48 deletions .github/maven-settings.xml

This file was deleted.

46 changes: 17 additions & 29 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ on:
push:
# Avoid workflow run for _merged_ `dependabot` PRs.
# They were (hopefully!) already tested in PR-triggered workflow.
branches-ignore: "dependabot/**"
branches-ignore:
- "dependabot/**"
pull_request:
paths-ignore:
- "**.adoc"
Expand All @@ -44,13 +45,11 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup JDK 8
- name: Set up Java
uses: actions/setup-java@v4.2.1
with:
distribution: temurin
distribution: zulu
java-version: 8
java-package: jdk
architecture: x64
cache: maven

- name: Build with Maven
Expand Down Expand Up @@ -94,22 +93,17 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup JDK 8
- name: Set up Java
uses: actions/setup-java@v4.2.1
with:
distribution: temurin
distribution: zulu
java-version: 8
java-package: jdk
architecture: x64
cache: maven

- name: Import GPG private key
run: |
echo -n "$GPG_PKEY" \
| base64 --decode \
| gpg -v --batch --import --yes --pinentry-mode error
env:
GPG_PKEY: ${{ secrets.GPG_PKEY }}
server-id: ${{ github.ref == 'refs/heads/master' && 'sonatype-nexus-snapshots' || 'sonatype-nexus-staging' }}
server-username: MAVEN_NEXUS_USERNAME
server-password: MAVEN_NEXUS_PASSWORD
gpg-private-key: ${{ secrets.GPG_PKEY }}
gpg-passphrase: MAVEN_GPG_PASSPHRASE

- name: Export artifact version
run: |
Expand Down Expand Up @@ -153,20 +147,14 @@ jobs:
}
- name: Deploy
# "package" phase is necessary before "gpg:sign" goal.
env:
MAVEN_NEXUS_USERNAME: ${{ secrets.NEXUS_USER }}
MAVEN_NEXUS_PASSWORD: ${{ secrets.NEXUS_PASS }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PKEY_PASS }}
run: |
./mvnw \
-V -B --no-transfer-progress -e \
-DskipTests=true \
-DperformRelease=true \
-DdeployAtEnd=true \
--settings .github/maven-settings.xml \
package gpg:sign install:install deploy:deploy
env:
GPG_PKEY_ID: ${{ secrets.GPG_PKEY_ID }}
GPG_PKEY_PASS: ${{ secrets.GPG_PKEY_PASS }}
NEXUS_USER: ${{ secrets.NEXUS_USER }}
NEXUS_PASS: ${{ secrets.NEXUS_PASS }}
--show-version --batch-mode --errors --no-transfer-progress \
-P ${{ github.ref == 'refs/heads/master' && 'deploy' || 'deploy,release' }}
- name: Tag version (RELEASE)
if: startsWith(github.ref, 'refs/heads/release/')
Expand Down
1 change: 0 additions & 1 deletion api/maven-version-rules.xml

This file was deleted.

5 changes: 0 additions & 5 deletions api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,6 @@
<artifactId>maven-compiler-plugin</artifactId>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
</plugin>

</plugins>
</build>

Expand Down
1 change: 0 additions & 1 deletion commons/maven-version-rules.xml

This file was deleted.

5 changes: 0 additions & 5 deletions commons/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,6 @@
<artifactId>maven-compiler-plugin</artifactId>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
</plugin>

</plugins>
</build>

Expand Down
1 change: 0 additions & 1 deletion distiller-base64/maven-version-rules.xml

This file was deleted.

5 changes: 0 additions & 5 deletions distiller-base64/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,6 @@
<artifactId>maven-compiler-plugin</artifactId>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
Expand Down
1 change: 0 additions & 1 deletion distiller/maven-version-rules.xml

This file was deleted.

5 changes: 0 additions & 5 deletions distiller/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,6 @@
<artifactId>maven-compiler-plugin</artifactId>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
</plugin>

</plugins>
</build>

Expand Down
1 change: 0 additions & 1 deletion examples/jaxrs/maven-version-rules.xml

This file was deleted.

1 change: 0 additions & 1 deletion examples/spring/maven-version-rules.xml

This file was deleted.

Loading

0 comments on commit 730b38f

Please sign in to comment.