Skip to content

Commit

Permalink
Build on JDK 8, 11, and 14.
Browse files Browse the repository at this point in the history
Signed-off-by: dblock <dblock@dblock.org>
  • Loading branch information
dblock committed Mar 11, 2022
1 parent 229a84a commit 35e707d
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 10 deletions.
22 changes: 14 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,31 @@ on:

jobs:
linux-build:
strategy:
matrix:
java:
- 8
- 11
- 14
# Job name
name: Build Asynchronous Search
# This job runs on Linux.
runs-on: ubuntu-latest
steps:
# This step uses the setup-java Github action: https://github.com/actions/setup-java
- name: Set Up JDK 14
- name: Set Up JDK ${{ matrix.java }}
uses: actions/setup-java@v1
with:
java-version: 14
java-version: ${{ matrix.java }}
# This step uses the checkout Github action: https://github.com/actions/checkout
- name: Checkout Branch
uses: actions/checkout@v2
- name: Build with Gradle
run: ./gradlew build -Dopensearch.version=1.3.0-SNAPSHOT
- name: Pull and Run Docker for security tests
run: |
version=1.1.0-SNAPSHOT
plugin_version=1.1.0.0-SNAPSHOT
version=1.3.0-SNAPSHOT
plugin_version=1.3.0.0-SNAPSHOT
pwd=`pwd`
echo $pwd
cd ..
Expand Down Expand Up @@ -94,10 +100,10 @@ jobs:
runs-on: windows-latest
steps:
# This step uses the setup-java Github action: https://github.com/actions/setup-java
- name: Set Up JDK 14
- name: Set Up JDK 11
uses: actions/setup-java@v1
with:
java-version: 14
java-version: 11
# This step uses the checkout Github action: https://github.com/actions/checkout
- name: Checkout Branch
uses: actions/checkout@v2
Expand All @@ -122,10 +128,10 @@ jobs:
runs-on: macos-latest
steps:
# This step uses the setup-java Github action: https://github.com/actions/setup-java
- name: Set Up JDK 14
- name: Set Up JDK 11
uses: actions/setup-java@v1
with:
java-version: 14
java-version: 11
# This step uses the checkout Github action: https://github.com/actions/checkout
- name: Checkout Branch
uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ GET /_plugins/_asynchronous_search/stats

1. Check out this package from version control.
2. Launch Intellij IDEA, choose **Import Project**, and select the `settings.gradle` file in the root of this package.
3. To build from the command line, set `JAVA_HOME` to point to a JDK >= 14 before running `./gradlew`.
3. To build from the command line, set `JAVA_HOME` to point to a JDK >= 8 before running `./gradlew`.
- Unix System
1. `export JAVA_HOME=jdk-install-dir`: Replace `jdk-install-dir` with the JAVA_HOME directory of your system.
2. `export PATH=$JAVA_HOME/bin:$PATH`
Expand Down
3 changes: 2 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ ext {
noticeFile = rootProject.file('NOTICE.txt')
}

sourceCompatibility = 1.9
sourceCompatibility = 1.8
targetCompatibility = 1.8

allprojects {
group 'org.opensearch'
Expand Down

0 comments on commit 35e707d

Please sign in to comment.