Skip to content

Commit 2b3edae

Browse files
Update Gradle to v9.9.0 (#1074)
* Update Gradle to v9.9.0 * Make Docker smoke tests fail on indexing errors --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
1 parent d83cb36 commit 2b3edae

2 files changed

Lines changed: 15 additions & 17 deletions

File tree

‎.github/workflows/ci.yaml‎

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818

1919
- uses: gradle/actions/setup-gradle@v6
2020
with:
21-
gradle-version: 9.8.2
21+
gradle-version: 9.9.0
2222

2323
- run: gradle spotlessCheck --no-daemon
2424

@@ -35,7 +35,7 @@ jobs:
3535

3636
- uses: gradle/actions/setup-gradle@v6
3737
with:
38-
gradle-version: 9.8.2
38+
gradle-version: 9.9.0
3939

4040
- name: scip-kotlin-analysis tests
4141
run: gradle :scip-kotlin-analysis:test --no-daemon
@@ -49,23 +49,21 @@ jobs:
4949
- name: Build Dockerised CLI
5050
run: docker build -t ghcr.io/scip-code/scip-java:latest .
5151

52-
- name: Test repos
52+
- name: Test Maven and Gradle fixtures
5353
shell: bash
5454
run: |
55-
set -eu
56-
check_repo() {
57-
REPO=$1
58-
mkdir -p ".repos/$REPO"
59-
git clone "https://github.com/$REPO.git" ".repos/$REPO" && cd ".repos/$REPO" && git submodule update --init
55+
set -euo pipefail
56+
for fixture in maven/basic gradle/kotlin2; do
57+
repo_dir="$(mktemp -d "$RUNNER_TEMP/scip-java-docker.XXXXXX")"
58+
cp -R "scip-java/src/test/resources/fixtures/$fixture/." "$repo_dir/"
6059
61-
docker run -v "$PWD/.repos/$REPO:/sources" -w /sources ghcr.io/scip-code/scip-java:latest scip-java index
62-
file ".repos/$REPO/index.scip" || (echo "$REPO SCIP index doesn't exist!"; exit 1)
63-
}
64-
65-
sudo apt install parallel
66-
export -f check_repo
67-
68-
parallel -j4 check_repo ::: circe/circe indeedeng/iwf-java-sdk
60+
echo "Indexing $fixture"
61+
# Match the Kotlin fixture's JDK 17 toolchain without relying on fallback.
62+
docker run --rm --env JVM_VERSION=17 \
63+
--mount "type=bind,source=$repo_dir,target=/sources" \
64+
-w /sources ghcr.io/scip-code/scip-java:latest scip-java index
65+
test -s "$repo_dir/index.scip"
66+
done
6967
7068
ci-pass:
7169
if: always()

‎bin/docker-setup.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ COURSIER_VERSION=2.1.26
55
# renovate: datasource=maven depName=org.apache.maven:apache-maven versioning=maven
66
MAVEN_VERSION=3.10.0
77
# renovate: datasource=gradle-version depName=gradle versioning=gradle
8-
GRADLE_VERSION=9.8.2
8+
GRADLE_VERSION=9.9.0
99

1010
# Use the upstream JVM launcher so the configured system trust store applies.
1111
curl -fLo /usr/local/bin/cs "https://github.com/coursier/coursier/releases/download/v${COURSIER_VERSION}/coursier"

0 commit comments

Comments
 (0)