Skip to content

Commit

Permalink
Update internal Byte Buddy and fix release script.
Browse files Browse the repository at this point in the history
  • Loading branch information
raphw committed Jan 22, 2020
1 parent da80cb3 commit 17afac3
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 32 deletions.
39 changes: 11 additions & 28 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ jobs:
name: HotSpot (EA)
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 1
- uses: actions/checkout@v2
- name: Install JDK and build project
run: |
. ./.github/scripts/install-jdk.sh --feature ea --os linux-x64
Expand All @@ -33,9 +31,7 @@ jobs:
architecture: [x32, x64]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 1
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}
Expand All @@ -50,9 +46,7 @@ jobs:
java: [7, 9, 10, 12]
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 1
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}
Expand All @@ -63,9 +57,7 @@ jobs:
name: HotSpot (legacy)
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 1
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: 1.6
Expand All @@ -80,9 +72,7 @@ jobs:
java: [8, 11, 13]
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 1
- uses: actions/checkout@v2
- name: Install JDK and build project
run: |
. ./.github/scripts/install-jdk.sh --url "https://api.adoptopenjdk.net/v2/binary/releases/openjdk${{ matrix.java }}?openjdk_impl=openj9&os=linux&arch=x64&release=latest&type=jdk&heap_size=normal"
Expand All @@ -93,7 +83,7 @@ jobs:
needs: [hotspot-ea, hotspot-supported, hotspot-unsupported, hotspot-legacy, openj9-supported]
if: github.event_name == 'push'
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: 8
Expand All @@ -104,24 +94,17 @@ jobs:
name: Release new version
runs-on: ubuntu-18.04
needs: [coverage]
if: github.event_name == 'push'
if: github.event_name == 'push' && startsWith(github.event.head_commit.message, '[release]')
steps:
- uses: actions/checkout@v1
with:
ref: master
- name: Consider release
id: release
run: echo "##[set-output name=release;]$(git log --format=%B -n 1 | grep '^\[release\]' | wc -l)"
- uses: actions/setup-java@v1
if: steps.release.outputs.release > 0
with:
java-version: 8
architecture: x64
- name: Publish new version
if: steps.release.outputs.release > 0
run: |
echo "${{ secrets.gpg_secret }}" | gpg --batch --import
export GPG_TTY=$(tty)
git config user.name "Rafael Winterhalter"
git config user.email "rafael.wth@gmail.com"
echo "${{ secrets.gpg_secret }}" | gpg --batch --import
git clone ${{ github.repositoryUrl }} .
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 -Dbintray.username=raphw -Dbintray.password=${{ secrets.bintray_password }} -Dgpg.passphrase=${{ secrets.gpg_passphrase }} -Dgpg.keyname=B4AC8CDC141AF0AE468D16921DA784CCB5C46DD5 -Dgradle.key=${{ secrets.gradle_key }} -Dgradle.secret=${{ secrets.gradle_secret }}
2 changes: 1 addition & 1 deletion byte-buddy-agent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
<dependency>
<groupId>net.bytebuddy</groupId>
<artifactId>byte-buddy</artifactId>
<version>1.10.6</version>
<version>1.10.7</version>
<scope>test</scope>
</dependency>
</dependencies>
Expand Down
6 changes: 3 additions & 3 deletions byte-buddy-dep/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
<plugin>
<groupId>net.bytebuddy</groupId>
<artifactId>byte-buddy-maven-plugin</artifactId>
<version>1.10.6</version>
<version>1.10.7</version>
<executions>
<execution>
<phase>compile</phase>
Expand All @@ -116,13 +116,13 @@
<transformation>
<groupId>net.bytebuddy</groupId>
<artifactId>byte-buddy</artifactId>
<version>1.10.6</version>
<version>1.10.7</version>
<plugin>net.bytebuddy.build.HashCodeAndEqualsPlugin$WithNonNullableFields</plugin>
</transformation>
<transformation>
<groupId>net.bytebuddy</groupId>
<artifactId>byte-buddy</artifactId>
<version>1.10.6</version>
<version>1.10.7</version>
<plugin>net.bytebuddy.build.CachedReturnPlugin</plugin>
</transformation>
</transformations>
Expand Down

0 comments on commit 17afac3

Please sign in to comment.