This is an automated email from the ASF dual-hosted git repository.
runzhiwang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ratis.git
The following commit(s) were added to refs/heads/master by this push:
new 19b1354 RATIS-1146. Does not build with newer JDK (#271)
19b1354 is described below
commit 19b13541bc25b07479beb2572870f74a2ec43131
Author: Doroszlai, Attila <[email protected]>
AuthorDate: Thu Nov 12 07:29:07 2020 +0100
RATIS-1146. Does not build with newer JDK (#271)
* RATIS-1146. Does not build with newer JDK
* RATIS-1146. Compile with Java 11, too
---
.github/workflows/post-commit.yml | 14 ++++++++++++--
.github/workflows/pr.yml | 14 ++++++++++++--
dev-support/checks/build.sh | 2 +-
pom.xml | 6 ++++++
ratis-proto/pom.xml | 4 ++++
5 files changed, 35 insertions(+), 5 deletions(-)
diff --git a/.github/workflows/post-commit.yml
b/.github/workflows/post-commit.yml
index 9278572..fc1c70b 100644
--- a/.github/workflows/post-commit.yml
+++ b/.github/workflows/post-commit.yml
@@ -19,9 +19,19 @@ jobs:
build:
name: compile
runs-on: ubuntu-18.04
+ strategy:
+ matrix:
+ java: [ 8, 11 ]
+ fail-fast: false
steps:
- - uses: actions/checkout@master
- - run: ./dev-support/checks/build.sh
+ - name: Checkout project
+ uses: actions/checkout@v2
+ - name: Setup java
+ uses: actions/setup-java@v1
+ with:
+ java-version: ${{ matrix.java }}
+ - name: Run a full build
+ run: ./dev-support/checks/build.sh
rat:
name: rat
runs-on: ubuntu-18.04
diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml
index 681222c..c64b7e8 100644
--- a/.github/workflows/pr.yml
+++ b/.github/workflows/pr.yml
@@ -19,9 +19,19 @@ jobs:
build:
name: compile
runs-on: ubuntu-18.04
+ strategy:
+ matrix:
+ java: [ 8, 11 ]
+ fail-fast: false
steps:
- - uses: actions/checkout@master
- - run: ./dev-support/checks/build.sh
+ - name: Checkout project
+ uses: actions/checkout@v2
+ - name: Setup java
+ uses: actions/setup-java@v1
+ with:
+ java-version: ${{ matrix.java }}
+ - name: Run a full build
+ run: ./dev-support/checks/build.sh
rat:
name: rat
runs-on: ubuntu-18.04
diff --git a/dev-support/checks/build.sh b/dev-support/checks/build.sh
index d97c377..2bddc2a 100755
--- a/dev-support/checks/build.sh
+++ b/dev-support/checks/build.sh
@@ -17,5 +17,5 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1
&& pwd )"
cd "$DIR/../.." || exit 1
export MAVEN_OPTS="-Xmx4096m"
-mvn -B -Dmaven.javadoc.skip=true -DskipTests clean install
+mvn -V -B -Dmaven.javadoc.skip=true -DskipTests clean install
exit $?
diff --git a/pom.xml b/pom.xml
index 67dd598..8c34481 100644
--- a/pom.xml
+++ b/pom.xml
@@ -484,6 +484,12 @@
<artifactId>jline</artifactId>
<version>3.9.0</version>
</dependency>
+
+ <dependency>
+ <groupId>javax.annotation</groupId>
+ <artifactId>javax.annotation-api</artifactId>
+ <version>1.2</version>
+ </dependency>
</dependencies>
</dependencyManagement>
diff --git a/ratis-proto/pom.xml b/ratis-proto/pom.xml
index 2e26acd..d51d465 100644
--- a/ratis-proto/pom.xml
+++ b/ratis-proto/pom.xml
@@ -187,5 +187,9 @@
<groupId>org.apache.ratis</groupId>
<artifactId>ratis-thirdparty-misc</artifactId>
</dependency>
+ <dependency>
+ <groupId>javax.annotation</groupId>
+ <artifactId>javax.annotation-api</artifactId>
+ </dependency>
</dependencies>
</project>