Skip to content

Commit 7a2be56

Browse files
stefanhahmannclaude
andcommitted
Bump zarr-java to 0.1.3-SNAPSHOT and build it from source in CI
The 0.1.3-SNAPSHOT version (zarr-developers/zarr-java#71) is not deployed to any Maven repository, so each CI workflow now clones the PR branch and runs `mvn -DskipTests -Dgpg.skip=true install` to populate the local m2 repo before the project build. `gpg.skip` is required because zarr-java's pom unconditionally signs artifacts during the verify phase. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 1331611 commit 7a2be56

4 files changed

Lines changed: 24 additions & 1 deletion

File tree

.github/workflows/build.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@ jobs:
2424
cache: 'maven'
2525
- name: Set up CI environment
2626
run: .github/setup.sh
27+
- name: Build zarr-java 0.1.3-SNAPSHOT
28+
# zarr-java 0.1.3-SNAPSHOT is not deployed to any Maven repository
29+
# yet, so we build and install it into the local Maven repo before
30+
# the main build.
31+
run: |
32+
git clone --depth 1 -b main https://github.com/zarr-developers/zarr-java.git "$RUNNER_TEMP/zarr-java"
33+
(cd "$RUNNER_TEMP/zarr-java" && mvn -B -DskipTests -Dgpg.skip=true install)
2734
- name: Execute the build
2835
run: .github/build.sh
2936
env:

.github/workflows/sonarcloud.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,13 @@ jobs:
4545
java-version: '17'
4646
distribution: 'zulu'
4747
cache: 'maven'
48+
- name: Build zarr-java 0.1.3-SNAPSHOT
49+
# zarr-java 0.1.3-SNAPSHOT is not deployed to any Maven repository
50+
# yet, so we build and install it into the local Maven repo before
51+
# the main build.
52+
run: |
53+
git clone --depth 1 -b main https://github.com/zarr-developers/zarr-java.git "$RUNNER_TEMP/zarr-java"
54+
(cd "$RUNNER_TEMP/zarr-java" && mvn -B -DskipTests -Dgpg.skip=true install)
4855
- name: Jacoco Report and SonarCloud Analysis
4956
env:
5057
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information

.github/workflows/test-os.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,15 @@ jobs:
5656
echo "JAVA_TOOL_OPTIONS=-Djava.library.path=$env:RUNNER_TEMP\vcpkg\installed\x64-windows\bin" >> $env:GITHUB_ENV
5757
echo "$env:RUNNER_TEMP\vcpkg\installed\x64-windows\bin" | Out-File -Append $env:GITHUB_PATH
5858
59+
# zarr-java 0.1.3-SNAPSHOT is not deployed to any Maven repository
60+
# yet, so we build and install it into the local Maven repo before
61+
# the main build.
62+
- name: Build zarr-java 0.1.3-SNAPSHOT
63+
shell: bash
64+
run: |
65+
git clone --depth 1 -b main https://github.com/zarr-developers/zarr-java.git "$RUNNER_TEMP/zarr-java"
66+
(cd "$RUNNER_TEMP/zarr-java" && mvn -B -DskipTests -Dgpg.skip=true install)
67+
5968
# Run tests
6069
- name: Run tests with Maven
6170
run: mvn -B verify --file pom.xml

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
<dependency>
187187
<groupId>dev.zarr</groupId>
188188
<artifactId>zarr-java</artifactId>
189-
<version>0.1.2</version>
189+
<version>0.1.3-SNAPSHOT</version>
190190
</dependency>
191191
<!-- N5 implementations of OME-Zarr including BDV Viewer adaptions -->
192192
<dependency>

0 commit comments

Comments
 (0)