Skip to content

Commit

Permalink
Use maven local repository for GraalVM dependencies in gradle tests
Browse files Browse the repository at this point in the history
Quarkus already instructs gradle to use the local maven repositories for
io.quarkus.* artifacts. This sed command adds org.graal.* artifacts to
the include pattern so that we can test locally built and installed
GraalVM/Mandrel artifacts.
  • Loading branch information
zakkak committed Sep 14, 2023
1 parent 3a82876 commit 745d9e7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -524,6 +524,11 @@ jobs:
else
export BUILDER_IMAGE="-Dquarkus.native.container-build=true -Dquarkus.native.builder-image=${{ inputs.builder-image }}"
fi
# Patch Gradle config to look for GraalVM dependencies in maven local repository
for i in `grep -rl includeGroupByRegex .`
do
sed -i "s/\(^ *includeGroupByRegex\)\( 'io.quarkus.*'\)/\1\2\n\1 'org.graalvm.*'/g" $i
done
# Backwards compatibility with Quarkus < 2.x native-tests.json
if ! echo $TEST_MODULES | grep ',' > /dev/null
then
Expand Down

0 comments on commit 745d9e7

Please sign in to comment.