Skip to content

Commit

Permalink
Change Default CI version to JDK 11 (#290)
Browse files Browse the repository at this point in the history
* change default CI version to JDK 11, add JDK versions to CI matrix and document changes in developer guide

Signed-off-by: David Cui <davidcui@amazon.com>
  • Loading branch information
davidcui1225 authored Mar 1, 2022
1 parent 3b03b70 commit f581454
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,18 @@ env:

jobs:
build:
strategy:
matrix:
java:
- 11
- 14
runs-on: ubuntu-latest

steps:
- name: Set up JDK 1.14
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v1
with:
java-version: 1.14
java-version: ${{ matrix.java }}

# reports-scheduler
- name: Checkout Reports Scheduler
Expand Down
13 changes: 13 additions & 0 deletions dashboards-reports/DEVELOPER_GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,19 @@

So you want to contribute code to this project? Excellent! We're glad you're here. Here's what you need to do.

## Install Prerequisites

### JDK 11

OpenSearch builds using Java 11 at a minimum. This means you must have a JDK 11
installed with the environment variable `JAVA_HOME` referencing the path to Java home
for your JDK 11 installation, e.g. `JAVA_HOME=/usr/lib/jvm/jdk-11`.

By default, tests use the same runtime as `JAVA_HOME`. However, since OpenSearch
supports JDK 8, the build supports compiling with JDK 11 and testing on a different
version of JDK runtime. To do this, set `RUNTIME_JAVA_HOME` pointing to the Java home of
another JDK installation, e.g. `RUNTIME_JAVA_HOME=/usr/lib/jvm/jdk-8`.

## Setup

1. Download OpenSearch for the version that matches the [OpenSearch Dashboards version specified in package.json](./package.json#L7).
Expand Down

0 comments on commit f581454

Please sign in to comment.