Skip to content

Commit de65b7a

Browse files
authored
Build on JDK 8, 11, and 14. (#106)
Signed-off-by: dblock <[email protected]>
1 parent 229a84a commit de65b7a

File tree

3 files changed

+17
-10
lines changed

3 files changed

+17
-10
lines changed

.github/workflows/build.yml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,25 +10,31 @@ on:
1010

1111
jobs:
1212
linux-build:
13+
strategy:
14+
matrix:
15+
java:
16+
- 8
17+
- 11
18+
- 14
1319
# Job name
1420
name: Build Asynchronous Search
1521
# This job runs on Linux.
1622
runs-on: ubuntu-latest
1723
steps:
1824
# This step uses the setup-java Github action: https://github.com/actions/setup-java
19-
- name: Set Up JDK 14
25+
- name: Set Up JDK ${{ matrix.java }}
2026
uses: actions/setup-java@v1
2127
with:
22-
java-version: 14
28+
java-version: ${{ matrix.java }}
2329
# This step uses the checkout Github action: https://github.com/actions/checkout
2430
- name: Checkout Branch
2531
uses: actions/checkout@v2
2632
- name: Build with Gradle
2733
run: ./gradlew build -Dopensearch.version=1.3.0-SNAPSHOT
2834
- name: Pull and Run Docker for security tests
2935
run: |
30-
version=1.1.0-SNAPSHOT
31-
plugin_version=1.1.0.0-SNAPSHOT
36+
version=1.3.0-SNAPSHOT
37+
plugin_version=1.3.0.0-SNAPSHOT
3238
pwd=`pwd`
3339
echo $pwd
3440
cd ..
@@ -94,10 +100,10 @@ jobs:
94100
runs-on: windows-latest
95101
steps:
96102
# This step uses the setup-java Github action: https://github.com/actions/setup-java
97-
- name: Set Up JDK 14
103+
- name: Set Up JDK 11
98104
uses: actions/setup-java@v1
99105
with:
100-
java-version: 14
106+
java-version: 11
101107
# This step uses the checkout Github action: https://github.com/actions/checkout
102108
- name: Checkout Branch
103109
uses: actions/checkout@v2
@@ -122,10 +128,10 @@ jobs:
122128
runs-on: macos-latest
123129
steps:
124130
# This step uses the setup-java Github action: https://github.com/actions/setup-java
125-
- name: Set Up JDK 14
131+
- name: Set Up JDK 11
126132
uses: actions/setup-java@v1
127133
with:
128-
java-version: 14
134+
java-version: 11
129135
# This step uses the checkout Github action: https://github.com/actions/checkout
130136
- name: Checkout Branch
131137
uses: actions/checkout@v2

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ GET /_plugins/_asynchronous_search/stats
4949

5050
1. Check out this package from version control.
5151
2. Launch Intellij IDEA, choose **Import Project**, and select the `settings.gradle` file in the root of this package.
52-
3. To build from the command line, set `JAVA_HOME` to point to a JDK >= 14 before running `./gradlew`.
52+
3. To build from the command line, set `JAVA_HOME` to point to a JDK >= 8 before running `./gradlew`.
5353
- Unix System
5454
1. `export JAVA_HOME=jdk-install-dir`: Replace `jdk-install-dir` with the JAVA_HOME directory of your system.
5555
2. `export PATH=$JAVA_HOME/bin:$PATH`

build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ ext {
7171
noticeFile = rootProject.file('NOTICE.txt')
7272
}
7373

74-
sourceCompatibility = 1.9
74+
sourceCompatibility = 1.8
75+
targetCompatibility = 1.8
7576

7677
allprojects {
7778
group 'org.opensearch'

0 commit comments

Comments
 (0)