diff --git a/app/build.gradle b/app/build.gradle index 1de37f2ace..cf5c65bf73 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -52,8 +52,8 @@ application { } java { - sourceCompatibility = 11 - targetCompatibility = 11 + sourceCompatibility = 17 + targetCompatibility = 17 } ext { diff --git a/common/build.gradle b/common/build.gradle index 9cb86c5911..ea12107192 100644 --- a/common/build.gradle +++ b/common/build.gradle @@ -47,8 +47,8 @@ dependencies { } java { - sourceCompatibility = 11 - targetCompatibility = 11 + sourceCompatibility = 17 + targetCompatibility = 17 } ext { diff --git a/connector/build.gradle b/connector/build.gradle index 62902056eb..eeb83ef26d 100644 --- a/connector/build.gradle +++ b/connector/build.gradle @@ -47,8 +47,8 @@ dependencies { } java { - sourceCompatibility = 11 - targetCompatibility = 11 + sourceCompatibility = 17 + targetCompatibility = 17 } ext { diff --git a/docker/build_deps_image.sh b/docker/build_deps_image.sh index b3ad41437f..915fce81aa 100755 --- a/docker/build_deps_image.sh +++ b/docker/build_deps_image.sh @@ -28,7 +28,7 @@ FROM ubuntu:22.04 # install tools RUN apt-get update && apt-get install -y \ git \ - openjdk-11-jdk \ + openjdk-17-jdk \ wget \ unzip \ curl diff --git a/docker/start_app.sh b/docker/start_app.sh index e3a759f571..4592edaf2d 100755 --- a/docker/start_app.sh +++ b/docker/start_app.sh @@ -60,7 +60,7 @@ RUN tar -xvf \$(find ./app/build/distributions/ -maxdepth 1 -type f -name app-*. FROM ubuntu:22.04 # install tools -RUN apt-get update && apt-get install -y openjdk-11-jre +RUN apt-get update && apt-get install -y openjdk-17-jre # copy astraea COPY --from=build /opt/astraea /opt/astraea diff --git a/docker/start_broker.sh b/docker/start_broker.sh index 00e21e5e9b..719054076c 100755 --- a/docker/start_broker.sh +++ b/docker/start_broker.sh @@ -92,7 +92,7 @@ RUN tar -zxvf \$(find ./core/build/distributions/ -maxdepth 1 -type f \( -iname FROM ubuntu:22.04 # install tools -RUN apt-get update && apt-get install -y openjdk-11-jre +RUN apt-get update && apt-get install -y openjdk-17-jre # copy kafka COPY --from=build /opt/jmx_exporter /opt/jmx_exporter @@ -134,7 +134,7 @@ WORKDIR /opt/kafka FROM ubuntu:22.04 # install tools -RUN apt-get update && apt-get install -y openjdk-11-jre +RUN apt-get update && apt-get install -y openjdk-17-jre # copy kafka COPY --from=build /opt/jmx_exporter /opt/jmx_exporter diff --git a/docker/start_controller.sh b/docker/start_controller.sh index e5b164a394..ca8f04ebf2 100755 --- a/docker/start_controller.sh +++ b/docker/start_controller.sh @@ -80,7 +80,7 @@ RUN tar -zxvf \$(find ./core/build/distributions/ -maxdepth 1 -type f \( -iname FROM ubuntu:22.04 # install tools -RUN apt-get update && apt-get install -y openjdk-11-jre +RUN apt-get update && apt-get install -y openjdk-17-jre # copy kafka COPY --from=build /opt/jmx_exporter /opt/jmx_exporter @@ -122,7 +122,7 @@ WORKDIR /opt/kafka FROM ubuntu:22.04 # install tools -RUN apt-get update && apt-get install -y openjdk-11-jre +RUN apt-get update && apt-get install -y openjdk-17-jre # copy kafka COPY --from=build /opt/jmx_exporter /opt/jmx_exporter diff --git a/docker/start_hadoop.sh b/docker/start_hadoop.sh index 539c07b1e3..b121b52913 100755 --- a/docker/start_hadoop.sh +++ b/docker/start_hadoop.sh @@ -78,6 +78,7 @@ RUN tar -zxvf hadoop-${VERSION}.tar.gz -C /opt/hadoop --strip-components=1 FROM ubuntu:22.04 #install tools +# TODO: upgrade to jdk 11 (https://github.com/skiptests/astraea/issues/1681) RUN apt-get update && apt-get install -y openjdk-11-jre #copy hadoop diff --git a/docker/start_worker.sh b/docker/start_worker.sh index 2b5d98178a..566a4930e6 100755 --- a/docker/start_worker.sh +++ b/docker/start_worker.sh @@ -96,7 +96,7 @@ RUN cp /tmp/astraea/connector/build/libs/astraea-*-all.jar /opt/kafka/libs/ FROM ubuntu:22.04 # install tools -RUN apt-get update && apt-get install -y openjdk-11-jre +RUN apt-get update && apt-get install -y openjdk-17-jre # copy kafka COPY --from=build /opt/kafka /opt/kafka @@ -135,7 +135,7 @@ RUN cp /tmp/astraea/connector/build/libs/astraea-*-all.jar /opt/kafka/libs/ FROM ubuntu:22.04 # install tools -RUN apt-get update && apt-get install -y openjdk-11-jre +RUN apt-get update && apt-get install -y openjdk-17-jre # copy kafka COPY --from=build /opt/kafka /opt/kafka diff --git a/docker/start_zookeeper.sh b/docker/start_zookeeper.sh index b74dc30d4f..1c90b74fbe 100755 --- a/docker/start_zookeeper.sh +++ b/docker/start_zookeeper.sh @@ -62,7 +62,7 @@ RUN tar -zxvf apache-zookeeper-${VERSION}-bin.tar.gz -C /opt/zookeeper --strip-c FROM ubuntu:22.04 # install tools -RUN apt-get update && apt-get install -y openjdk-11-jre +RUN apt-get update && apt-get install -y openjdk-17-jre # copy zookeeper COPY --from=build /opt/zookeeper /opt/zookeeper diff --git a/etl/build.gradle b/etl/build.gradle index 8620d18496..eed8dca287 100644 --- a/etl/build.gradle +++ b/etl/build.gradle @@ -58,6 +58,9 @@ ext { archivesBaseName = "astraea-etl" tasks.named('test') { + // spark can't run with JDK 17 as it uses internal class + // see https://lists.apache.org/thread/814cpb1rpp73zkhtv9t4mkzzrznl82yn + jvmArgs '--add-opens=java.base/sun.nio.ch=ALL-UNNAMED' // Use JUnit Platform for unit tests. useJUnitPlatform() diff --git a/fs/build.gradle b/fs/build.gradle index bb491272fc..4c9d3db81d 100644 --- a/fs/build.gradle +++ b/fs/build.gradle @@ -48,8 +48,8 @@ dependencies { } java { - sourceCompatibility = 11 - targetCompatibility = 11 + sourceCompatibility = 17 + targetCompatibility = 17 } ext { diff --git a/gui/build.gradle b/gui/build.gradle index 6619b72141..5e6956f18f 100644 --- a/gui/build.gradle +++ b/gui/build.gradle @@ -27,8 +27,8 @@ repositories { } java { - sourceCompatibility = 11 - targetCompatibility = 11 + sourceCompatibility = 17 + targetCompatibility = 17 } javafx { diff --git a/it/build.gradle b/it/build.gradle index 9085302397..bd227622fa 100644 --- a/it/build.gradle +++ b/it/build.gradle @@ -38,8 +38,8 @@ dependencies { } java { - sourceCompatibility = 11 - targetCompatibility = 11 + sourceCompatibility = 17 + targetCompatibility = 17 } ext {