Skip to content

Commit

Permalink
Explicitly set JAVA_HOME to JDK-11 for Gradle build
Browse files Browse the repository at this point in the history
Signed-off-by: Andriy Redko <andriy.redko@aiven.io>
  • Loading branch information
reta committed Nov 1, 2023
1 parent 037cf4e commit d651f23
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ jobs:
run: |
# https://github.com/opensearch-project/opensearch-build/issues/4191
chown -R opensearch:opensearch `pwd`
su opensearch -c "source /etc/profile.d/java_home.sh && ./gradlew check -Druntime.java=${{ matrix.java }}"
su opensearch -c "source /etc/profile.d/java_home.sh && ./gradlew check -Druntime.java=${{ matrix.java }} -Dorg.gradle.java.home=/opt/java/openjdk-11"
- name: Run Gradle (assemble)
run: |
# https://github.com/opensearch-project/opensearch-build/issues/4191
chown -R opensearch:opensearch `pwd`
su opensearch -c "source /etc/profile.d/java_home.sh && ./gradlew assemble -Druntime.java=${{ matrix.java }}"
su opensearch -c "source /etc/profile.d/java_home.sh && ./gradlew assemble -Druntime.java=${{ matrix.java }} -Dorg.gradle.java.home=/opt/java/openjdk-11"
precommit-windows-macos:
if: github.repository == 'opensearch-project/custom-codecs'
Expand Down

0 comments on commit d651f23

Please sign in to comment.