Skip to content

Commit

Permalink
[release] Release new version.
Browse files Browse the repository at this point in the history
  • Loading branch information
raphw committed Apr 7, 2022
1 parent 1ac81af commit 395c488
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,19 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-java@v2
with:
java-version: 18-ea
java-version: 19-ea
distribution: zulu
cache: maven
- name: Install JDK and build project
run: ./mvnw verify -Pjava18
run: ./mvnw verify -Pjava19
continue-on-error: false
hotspot-supported:
name: Any (supported)
strategy:
fail-fast: false
matrix:
os: [ ubuntu-18.04, macOS-10.15, windows-2019 ]
java: [ 8, 11, 17 ]
java: [ 8, 11, 17, 18 ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -146,7 +146,7 @@ jobs:
gpg-private-key: ${{ secrets.gpg_secret }}
- name: Publish new version
run: |
git clone ${{ github.repositoryUrl }} .
git clone [email protected]:${{ github.repository }}.git .
git config user.name "${{ github.event.head_commit.committer.name }}"
git config user.email "${{ github.event.head_commit.committer.email }}"
./mvnw -B -s .mvn/release.settings.xml release:prepare release:perform -Drepository.url=https://${GITHUB_ACTOR}:${{ secrets.GITHUB_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git -Dcentral.username=raphw -Dcentral.password=${{ secrets.central_password }} -Dgpg.passphrase=${{ secrets.gpg_passphrase }} -Dgpg.keyname=B4AC8CDC141AF0AE468D16921DA784CCB5C46DD5 -Dgradle.key=${{ secrets.gradle_key }} -Dgradle.secret=${{ secrets.gradle_secret }}
28 changes: 28 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -609,6 +609,22 @@
<bytebuddy.experimental>true</bytebuddy.experimental>
</properties>
</profile>
<!-- Runs the build with compatibility for Java 19 JVMs. -->
<profile>
<id>java19-compatibility</id>
<activation>
<activeByDefault>false</activeByDefault>
<jdk>19</jdk>
</activation>
<properties>
<sourcecode.main.version>8</sourcecode.main.version>
<sourcecode.test.version>8</sourcecode.test.version>
<bytecode.main.version>8</bytecode.main.version>
<bytecode.test.version>8</bytecode.test.version>
<jacoco.skip>true</jacoco.skip>
<bytebuddy.experimental>true</bytebuddy.experimental>
</properties>
</profile>
<!-- Builds using a byte code target for Java 6. -->
<profile>
<id>java6</id>
Expand Down Expand Up @@ -760,6 +776,18 @@
<spotbugs.skip>true</spotbugs.skip>
</properties>
</profile>
<!-- Builds using a byte code target for Java 18. -->
<profile>
<id>java19</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<properties>
<bytecode.main.version>19</bytecode.main.version>
<bytecode.test.version>19</bytecode.test.version>
<spotbugs.skip>true</spotbugs.skip>
</properties>
</profile>
<!-- Creates additional artifacts that are required for deployment. -->
<profile>
<id>extras</id>
Expand Down

0 comments on commit 395c488

Please sign in to comment.