Skip to content

Commit

Permalink
try to use AzulResolver
Browse files Browse the repository at this point in the history
  • Loading branch information
hankem committed May 17, 2024
1 parent 156be25 commit 6ec11fd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 29 deletions.
29 changes: 0 additions & 29 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,43 +12,14 @@ env:
build_java_version: 17

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Java
uses: actions/setup-java@v4.2.1
with:
distribution: 'zulu'
java-version: ${{ env.build_java_version }}
- name: Build
uses: gradle/actions/setup-gradle@v3
with:
arguments: build
- name: Check project files unmodified
run: |
directoryState="$(git status --porcelain)"
if [ -n "$directoryState" ]; then
echo "Some files were modified during build. Please run the build locally before checking in, as it ensures some source file conventions (like copyright header)."
echo "The following files were modified:"
echo "$directoryState"
exit 1
fi
test:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
test_java_version:
- 8
- 11
exclude:
- os: macos-latest
test_java_version: 8
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
Expand Down
10 changes: 10 additions & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,13 @@ gradleEnterprise {
termsOfServiceAgree = "yes"
}
}

toolchainManagement {
jvm {
javaRepositories {
repository('azul') {
resolverClass = AzulResolver
}
}
}
}

0 comments on commit 6ec11fd

Please sign in to comment.