docs: update CI/CD and releasing docs for Maven build system

Updates documentation to reflect the actual Maven-based build:
- pom.xml instead of gradle.properties for version
- mvn commands instead of gradlew
- Updated build workflow examples

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Daniel SamsonandClaude Opus 4.5 committed 2026-01-21 22:35:28 +00:00
1 parent 767a941ac3
commit 92c586152b
2 files changed
+28 -26

No files matched your search

+20 -18
View File
@@ -34,22 +34,22 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Set up GraalVM
uses: graalvm/setup-graalvm@v1
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'graalvm-community'
cache: 'gradle'
distribution: 'temurin'
cache: 'maven'
- name: Run tests
run: ./gradlew test
run: mvn verify -Dspotbugs.skip=true -Dpmd.skip=true
- name: Upload test results
uses: actions/upload-artifact@v4
if: always()
with:
name: test-results
path: build/reports/tests/
path: target/surefire-reports/
build-native:
needs: test
@@ -57,20 +57,13 @@ jobs:
matrix:
include:
- os: ubuntu-latest
arch: x64
artifact: barn-linux-x64
- os: ubuntu-24.04-arm
arch: arm64
artifact: barn-linux-arm64
- os: macos-latest
arch: arm64
artifact: barn-macos-arm64
- os: macos-13
arch: x64
artifact: barn-macos-x64
- os: windows-latest
arch: x64
artifact: barn-windows-x64.exe
artifact: barn-windows-x64
runs-on: ${{ matrix.os }}
steps:
@@ -81,16 +74,25 @@ jobs:
with:
java-version: '21'
distribution: 'graalvm-community'
cache: 'gradle'
cache: 'maven'
- name: Build native image
run: ./gradlew nativeCompile
- name: Build native image (Unix)
if: runner.os != 'Windows'
run: |
mvn package -Pnative -DskipTests -Dspotbugs.skip=true -Dpmd.skip=true -Dcheckstyle.skip=true
mv target/barn target/${{ matrix.artifact }}
- name: Build native image (Windows)
if: runner.os == 'Windows'
run: |
mvn package -Pnative -DskipTests -Dspotbugs.skip=true -Dpmd.skip=true -Dcheckstyle.skip=true
mv target/barn.exe target/${{ matrix.artifact }}.exe
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.artifact }}
path: build/native/nativeCompile/barn*
path: target/${{ matrix.artifact }}*
```
---
+8 -8
View File
@@ -30,10 +30,10 @@ For pre-release testing:
## Version Location
The version is defined in `gradle.properties`:
The version is defined in `pom.xml`:
```properties
version=1.2.3
```xml
<version>1.2.3</version>
```
This version is embedded in the binary and available via `barn --version`.
@@ -102,15 +102,15 @@ Ensure all changes are merged to `main` and tests pass:
```bash
git checkout main
git pull origin main
./gradlew clean test
mvn clean verify
```
### 2. Update Version
Edit `gradle.properties`:
Edit the `<version>` tag in `pom.xml`:
```properties
version=1.2.3
```xml
<version>1.2.3</version>
```
### 3. Update Changelog
@@ -131,7 +131,7 @@ Move items from `[Unreleased]` to the new version section:
### 4. Commit the Release
```bash
git add gradle.properties CHANGELOG.md
git add pom.xml CHANGELOG.md
git commit -m "Release v1.2.3"
```