Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 22 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
jobs:
release:
runs-on: ubuntu-latest
outputs:
version: ${{ steps.release_name.outputs.version }}
env:
JRELEASER_MAVENCENTRAL_CENTRAL_USERNAME: ${{ secrets.JRELEASER_MAVENCENTRAL_CENTRAL_USERNAME }}
JRELEASER_GPG_PASSPHRASE: ${{ secrets.JRELEASER_GPG_PASSPHRASE }}
Expand Down Expand Up @@ -41,9 +43,13 @@ jobs:
run: chmod +x gradlew
- name: Extract release version from branch
id: release_name
shell: bash
run: |
BRANCH="${GITHUB_REF##*/}"
echo "version=$BRANCH" >> "$GITHUB_OUTPUT"
ref="${GITHUB_REF_NAME#release/}"
version="${ref#v}"
echo "version=$version" >> "$GITHUB_OUTPUT"
echo "Release version: $version"

- name: Fail if version is a SNAPSHOT
if: endsWith(steps.release_name.outputs.version, '-SNAPSHOT')
run: |
Expand All @@ -70,5 +76,18 @@ jobs:
java-version: 21
- name: Publish Javadocs (gh-pages)
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.JRELEASER_GITHUB_TOKEN }}
run: ./gradlew core:gitPublishPush
git-release:
needs: release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Github Release
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: ${{ secrets.JRELEASER_GITHUB_TOKEN }}
automatic_release_tag: v${{ needs.release.outputs.version }}
prerelease: false
files: |
web3j-unit-${{ needs.release.outputs.version }}.*
16 changes: 15 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,21 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [5.0.2]() (Upcoming)
# [5.0.3]() (Upcoming)

### Bug Fixes

*

### Features

*

### BREAKING CHANGES

*

# [5.0.2](https://github.com/LFDT-web3j/web3j-unit/releases/tag/v5.0.2) (2026-02-06)

### Bug Fixes

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ You can find an example using docker-compose [here](https://github.com/web3j/web
maven { url "https://dl.cloudsmith.io/public/consensys/quorum-mainnet-launcher/maven/" }
}

implementation "org.web3j:core:4.14.0"
testCompile "org.web3j:web3j-unit:4.14.0"
implementation "org.web3j:core:5.0.2"
testCompile "org.web3j:web3j-unit:5.0.2"
```

2. Create a new test with the `@EVMTest` annotation. An embedded EVM is used by default. To use Geth or Besu pass the node type into the annotation: `@EVMTest(NodeType.GETH)` or `@EVMTest(NodeType.BESU)`
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
kotlin.code.style=official
group=org.web3j
version=5.0.2
version=5.0.3-SNAPSHOT
org.gradle.caching=true
org.gradle.configuration-cache=true
org.gradle.configuration-cache=false
org.gradle.configuration-cache.problems=warn