This is an automated email from the ASF dual-hosted git repository.
zstan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ignite.git
The following commit(s) were added to refs/heads/master by this push:
new 6b172a8bd79 IGNITE-28531 Change Maven compiler source/target to 17
(#13201)
6b172a8bd79 is described below
commit 6b172a8bd7996073ca098ccf322f75d35a1bfd05
Author: Dmitry Werner <[email protected]>
AuthorDate: Thu Jun 11 15:50:50 2026 +0500
IGNITE-28531 Change Maven compiler source/target to 17 (#13201)
---
bin/control.bat | 8 +-
bin/ignite.bat | 8 +-
bin/include/functions.sh | 6 +-
bin/include/jvmdefaults.bat | 31 +--
bin/include/jvmdefaults.sh | 29 +--
bin/index-reader.bat | 8 +-
deliveries/docker/apache-ignite-net/Dockerfile | 2 +-
deliveries/docker/apache-ignite/arm64/Dockerfile | 4 +-
deliveries/docker/apache-ignite/run.sh | 32 ++-
deliveries/docker/apache-ignite/s390x/Dockerfile | 8 +-
deliveries/docker/apache-ignite/x86_64/Dockerfile | 4 +-
.../includes/cpp-linux-build-prerequisites.adoc | 6 +-
docs/_docs/includes/cpp-prerequisites.adoc | 2 +-
docs/_docs/includes/dotnet-prerequisites.adoc | 2 +-
docs/_docs/includes/{java9.adoc => java.adoc} | 17 +-
docs/_docs/includes/prereqs.adoc | 2 +-
.../net-specific/net-cross-platform-support.adoc | 2 +-
.../perf-and-troubleshooting/memory-tuning.adoc | 1 -
docs/_docs/quick-start/java.adoc | 12 +-
docs/_docs/setup.adoc | 4 +-
docs/_docs/tools/informatica.adoc | 2 +-
examples/README.md | 2 +-
examples/pom-standalone-lgpl.xml | 4 +-
examples/pom-standalone.xml | 4 +-
modules/checkstyle/pom.xml | 4 +-
.../cache/transactions/TxRollbackAsyncTest.java | 3 +-
.../TxRollbackOnTopologyChangeTest.java | 3 +-
.../tcp/TcpDiscoverySslParametersTest.java | 3 +-
modules/dev-utils/ignite-modules-test/README.md | 4 +-
modules/dev-utils/ignite-modules-test/build.gradle | 6 +-
modules/ducktests/tests/docker/Dockerfile | 2 +-
modules/ducktests/tests/docker/ducker-ignite | 2 +-
modules/ducktests/tests/docker/run_tests.sh | 4 +-
modules/kubernetes/config/Dockerfile | 6 +-
modules/numa-allocator/README.md | 4 +-
.../Apache.Ignite.Core.Tests/JavaServer/pom.xml | 4 +-
.../Impl/Unmanaged/Jni/ConsoleWriter.cs | 4 +-
.../Impl/Unmanaged/Jni/JvmDll.cs | 6 +-
modules/platforms/dotnet/DEVNOTES.txt | 2 +-
modules/platforms/dotnet/build.ps1 | 2 +-
modules/platforms/dotnet/examples/README.md | 2 +-
modules/platforms/dotnet/release/verify-nuget.ps1 | 2 +-
modules/sqlline/bin/sqlline.bat | 4 +-
modules/tools/pom.xml | 40 ---
.../tools/ant/beautifier/GridJavadocAntTask.java | 29 +--
.../ignite/tools/javadoc/IgniteLinkTaglet.java | 0
.../ignite/tools/javadoc/IgniteLinkTaglet.java | 126 ----------
.../ignite/internal/util/FeatureChecker.java | 21 +-
packaging/deb/control | 2 +-
packaging/rpm/apache-ignite.spec | 2 +-
parent/pom.xml | 268 ++++++---------------
51 files changed, 195 insertions(+), 560 deletions(-)
diff --git a/bin/control.bat b/bin/control.bat
index 135329331e9..3459966b55a 100644
--- a/bin/control.bat
+++ b/bin/control.bat
@@ -28,7 +28,7 @@ if "%OS%" == "Windows_NT" setlocal
if defined JAVA_HOME goto checkJdk
echo %0, ERROR:
echo JAVA_HOME environment variable is not found.
- echo Please point JAVA_HOME variable to location of JDK 11 or later.
+ echo Please point JAVA_HOME variable to location of JDK 17 or later.
echo You can also download latest JDK at http://java.com/download.
goto error_finish
@@ -37,7 +37,7 @@ goto error_finish
if exist "%JAVA_HOME%\bin\java.exe" goto checkJdkVersion
echo %0, ERROR:
echo JAVA is not found in JAVA_HOME=%JAVA_HOME%.
- echo Please point JAVA_HOME variable to installation of JDK 11 or later.
+ echo Please point JAVA_HOME variable to installation of JDK 17 or later.
echo You can also download latest JDK at http://java.com/download.
goto error_finish
@@ -55,10 +55,10 @@ set JAVA_VER_STR=%JAVA_VER_STR:"=%
for /f "tokens=1,2 delims=." %%a in ("%JAVA_VER_STR%.x") do set
MAJOR_JAVA_VER=%%a& set MINOR_JAVA_VER=%%b
if %MAJOR_JAVA_VER% == 1 set MAJOR_JAVA_VER=%MINOR_JAVA_VER%
-if %MAJOR_JAVA_VER% LSS 11 (
+if %MAJOR_JAVA_VER% LSS 17 (
echo %0, ERROR:
echo The version of JAVA installed in %JAVA_HOME% is incorrect.
- echo Please point JAVA_HOME variable to installation of JDK 11 or later.
+ echo Please point JAVA_HOME variable to installation of JDK 17 or later.
echo You can also download latest JDK at http://java.com/download.
goto error_finish
)
diff --git a/bin/ignite.bat b/bin/ignite.bat
index 1368fc39a45..e163e8535ff 100644
--- a/bin/ignite.bat
+++ b/bin/ignite.bat
@@ -28,7 +28,7 @@ if "%OS%" == "Windows_NT" setlocal
if defined JAVA_HOME goto checkJdk
echo %0, ERROR:
echo JAVA_HOME environment variable is not found.
- echo Please point JAVA_HOME variable to location of JDK 11 or later.
+ echo Please point JAVA_HOME variable to location of JDK 17 or later.
echo You can also download latest JDK at http://java.com/download.
goto error_finish
@@ -37,7 +37,7 @@ goto error_finish
if exist "%JAVA_HOME%\bin\java.exe" goto checkJdkVersion
echo %0, ERROR:
echo JAVA is not found in JAVA_HOME=%JAVA_HOME%.
- echo Please point JAVA_HOME variable to installation of JDK 11 or later.
+ echo Please point JAVA_HOME variable to installation of JDK 17 or later.
echo You can also download latest JDK at http://java.com/download.
goto error_finish
@@ -55,10 +55,10 @@ set JAVA_VER_STR=%JAVA_VER_STR:"=%
for /f "tokens=1,2 delims=." %%a in ("%JAVA_VER_STR%.x") do set
MAJOR_JAVA_VER=%%a& set MINOR_JAVA_VER=%%b
if %MAJOR_JAVA_VER% == 1 set MAJOR_JAVA_VER=%MINOR_JAVA_VER%
-if %MAJOR_JAVA_VER% LSS 11 (
+if %MAJOR_JAVA_VER% LSS 17 (
echo %0, ERROR:
echo The version of JAVA installed in %JAVA_HOME% is incorrect.
- echo Please point JAVA_HOME variable to installation of JDK 11 or later.
+ echo Please point JAVA_HOME variable to installation of JDK 17 or later.
echo You can also download latest JDK at http://java.com/download.
goto error_finish
)
diff --git a/bin/include/functions.sh b/bin/include/functions.sh
index 0016e447e87..4a1e18db8d2 100755
--- a/bin/include/functions.sh
+++ b/bin/include/functions.sh
@@ -66,7 +66,7 @@ checkJava() {
if [ $RETCODE -ne 0 ]; then
echo $0", ERROR:"
echo "JAVA_HOME environment variable is not found."
- echo "Please point JAVA_HOME variable to location of JDK 11 or
later."
+ echo "Please point JAVA_HOME variable to location of JDK 17 or
later."
echo "You can also download latest JDK at http://java.com/download"
exit 1
@@ -82,10 +82,10 @@ checkJava() {
#
javaMajorVersion "$JAVA"
- if [ $version -lt 11 ]; then
+ if [ $version -lt 17 ]; then
echo "$0, ERROR:"
echo "The $version version of JAVA installed in JAVA_HOME=$JAVA_HOME
is incompatible."
- echo "Please point JAVA_HOME variable to installation of JDK 11 or
later."
+ echo "Please point JAVA_HOME variable to installation of JDK 17 or
later."
echo "You can also download latest JDK at http://java.com/download"
exit 1
fi
diff --git a/bin/include/jvmdefaults.bat b/bin/include/jvmdefaults.bat
index b66ef082a87..13ad5e9896c 100644
--- a/bin/include/jvmdefaults.bat
+++ b/bin/include/jvmdefaults.bat
@@ -24,34 +24,7 @@ set value=""
:: First argument is the version of the java
:: Second argument is the current value of the jvm options
:: Third value is the name of the environment variable that jvm options should
be set to
-if %java_version% GEQ 11 if %java_version% LSS 14 (
- set value= ^
- --add-exports=java.base/jdk.internal.misc=ALL-UNNAMED ^
- --add-exports=java.base/sun.nio.ch=ALL-UNNAMED ^
- --add-exports=java.management/com.sun.jmx.mbeanserver=ALL-UNNAMED ^
- --add-exports=jdk.internal.jvmstat/sun.jvmstat.monitor=ALL-UNNAMED ^
- --add-exports=java.base/sun.reflect.generics.reflectiveObjects=ALL-UNNAMED
^
- --add-opens=jdk.management/com.sun.management.internal=ALL-UNNAMED ^
- --add-opens=java.base/java.nio=ALL-UNNAMED ^
- --illegal-access=permit ^
- %current_value%
-)
-
-if %java_version% GEQ 14 if %java_version% LSS 15 (
- set value= ^
- --add-exports=java.base/jdk.internal.misc=ALL-UNNAMED ^
- --add-exports=java.base/sun.nio.ch=ALL-UNNAMED ^
- --add-exports=java.management/com.sun.jmx.mbeanserver=ALL-UNNAMED ^
- --add-exports=jdk.internal.jvmstat/sun.jvmstat.monitor=ALL-UNNAMED ^
- --add-exports=java.base/sun.reflect.generics.reflectiveObjects=ALL-UNNAMED
^
- --add-opens=java.base/jdk.internal.access=ALL-UNNAMED ^
- --add-opens=jdk.management/com.sun.management.internal=ALL-UNNAMED ^
- --add-opens=java.base/java.nio=ALL-UNNAMED ^
- --illegal-access=permit ^
- %current_value%
-)
-
-if %java_version% GEQ 15 (
+if %java_version% GEQ 17 (
set value= ^
--add-opens=java.base/jdk.internal.access=ALL-UNNAMED ^
--add-opens=java.base/jdk.internal.misc=ALL-UNNAMED ^
@@ -77,7 +50,7 @@ if %java_version% GEQ 15 (
--add-opens=java.base/java.text=ALL-UNNAMED ^
--add-opens=java.logging/java.util.logging=ALL-UNNAMED ^
--add-opens=java.management/sun.management=ALL-UNNAMED ^
- --add-opens java.desktop/java.awt.font=ALL-UNNAMED ^
+ --add-opens=java.desktop/java.awt.font=ALL-UNNAMED ^
%current_value%
)
diff --git a/bin/include/jvmdefaults.sh b/bin/include/jvmdefaults.sh
index 2277fc6370b..079ad5f8326 100644
--- a/bin/include/jvmdefaults.sh
+++ b/bin/include/jvmdefaults.sh
@@ -24,32 +24,7 @@ getJavaSpecificOpts() {
current_value=$2
value=""
- if [ "${version}" -ge 11 ] && [ "${version}" -lt 14 ]; then
- value="\
- --add-exports=java.base/jdk.internal.misc=ALL-UNNAMED \
- --add-exports=java.base/sun.nio.ch=ALL-UNNAMED \
- --add-exports=java.management/com.sun.jmx.mbeanserver=ALL-UNNAMED \
- --add-exports=jdk.internal.jvmstat/sun.jvmstat.monitor=ALL-UNNAMED \
-
--add-exports=java.base/sun.reflect.generics.reflectiveObjects=ALL-UNNAMED \
- --add-opens=jdk.management/com.sun.management.internal=ALL-UNNAMED \
- --add-opens=java.base/java.nio=ALL-UNNAMED \
- --illegal-access=permit \
- ${current_value}"
-
- elif [ "${version}" -ge 14 ] && [ "${version}" -lt 15 ]; then
- value="\
- --add-exports=java.base/jdk.internal.misc=ALL-UNNAMED \
- --add-exports=java.base/sun.nio.ch=ALL-UNNAMED \
- --add-exports=java.management/com.sun.jmx.mbeanserver=ALL-UNNAMED \
- --add-exports=jdk.internal.jvmstat/sun.jvmstat.monitor=ALL-UNNAMED
\
-
--add-exports=java.base/sun.reflect.generics.reflectiveObjects=ALL-UNNAMED \
- --add-opens=java.base/jdk.internal.access=ALL-UNNAMED \
- --add-opens=jdk.management/com.sun.management.internal=ALL-UNNAMED
\
- --add-opens=java.base/java.nio=ALL-UNNAMED \
- --illegal-access=permit \
- ${current_value}"
-
- elif [ "${version}" -ge 15 ] ; then
+ if [ "${version}" -ge 17 ] ; then
value="\
--add-opens=java.base/jdk.internal.access=ALL-UNNAMED \
--add-opens=java.base/jdk.internal.misc=ALL-UNNAMED \
@@ -75,7 +50,7 @@ getJavaSpecificOpts() {
--add-opens=java.base/java.text=ALL-UNNAMED \
--add-opens=java.logging/java.util.logging=ALL-UNNAMED \
--add-opens=java.management/sun.management=ALL-UNNAMED \
- --add-opens java.desktop/java.awt.font=ALL-UNNAMED \
+ --add-opens=java.desktop/java.awt.font=ALL-UNNAMED \
${current_value}"
fi
diff --git a/bin/index-reader.bat b/bin/index-reader.bat
index afb1b89ace0..a246b17ae40 100644
--- a/bin/index-reader.bat
+++ b/bin/index-reader.bat
@@ -27,7 +27,7 @@ if "%OS%" == "Windows_NT" setlocal
if defined JAVA_HOME goto checkJdk
echo %0, ERROR:
echo JAVA_HOME environment variable is not found.
- echo Please point JAVA_HOME variable to location of JDK 11 or later.
+ echo Please point JAVA_HOME variable to location of JDK 17 or later.
echo You can also download latest JDK at http://java.com/download.
goto error_finish
@@ -36,7 +36,7 @@ goto error_finish
if exist "%JAVA_HOME%\bin\java.exe" goto checkJdkVersion
echo %0, ERROR:
echo JAVA is not found in JAVA_HOME=%JAVA_HOME%.
- echo Please point JAVA_HOME variable to installation of JDK 11 or later.
+ echo Please point JAVA_HOME variable to installation of JDK 17 or later.
echo You can also download latest JDK at http://java.com/download.
goto error_finish
@@ -54,10 +54,10 @@ set JAVA_VER_STR=%JAVA_VER_STR:"=%
for /f "tokens=1,2 delims=." %%a in ("%JAVA_VER_STR%.x") do set
MAJOR_JAVA_VER=%%a& set MINOR_JAVA_VER=%%b
if %MAJOR_JAVA_VER% == 1 set MAJOR_JAVA_VER=%MINOR_JAVA_VER%
-if %MAJOR_JAVA_VER% LSS 11 (
+if %MAJOR_JAVA_VER% LSS 17 (
echo %0, ERROR:
echo The version of JAVA installed in %JAVA_HOME% is incorrect.
- echo Please point JAVA_HOME variable to installation of JDK 11 or later.
+ echo Please point JAVA_HOME variable to installation of JDK 17 or later.
echo You can also download latest JDK at http://java.com/download.
goto error_finish
)
diff --git a/deliveries/docker/apache-ignite-net/Dockerfile
b/deliveries/docker/apache-ignite-net/Dockerfile
index ac6e118e3f1..268838910c5 100644
--- a/deliveries/docker/apache-ignite-net/Dockerfile
+++ b/deliveries/docker/apache-ignite-net/Dockerfile
@@ -23,7 +23,7 @@ RUN mkdir -p /usr/share/man/man1
RUN apt update && apt install apt-utils -y --no-install-recommends
## Install JRE
-RUN apt update && apt install openjdk-11-jre-headless -y
--no-install-recommends
+RUN apt update && apt install openjdk-17-jre-headless -y
--no-install-recommends
WORKDIR /app
diff --git a/deliveries/docker/apache-ignite/arm64/Dockerfile
b/deliveries/docker/apache-ignite/arm64/Dockerfile
index 1e1098c0ba8..29ce7ee4050 100644
--- a/deliveries/docker/apache-ignite/arm64/Dockerfile
+++ b/deliveries/docker/apache-ignite/arm64/Dockerfile
@@ -15,8 +15,8 @@
# limitations under the License.
#
-# Start from Java 11 based on Ubuntu Focal Linux image (there is no Alpine
Linux image with Java 11 on ARM64)
-ARG JDK_VERSION=11
+# Start from Java 17 based on Ubuntu Focal Linux image (there is no Alpine
Linux image with Java 17 on ARM64)
+ARG JDK_VERSION=17
FROM eclipse-temurin:${JDK_VERSION}-jre-focal
# Settings
diff --git a/deliveries/docker/apache-ignite/run.sh
b/deliveries/docker/apache-ignite/run.sh
index 29746eff375..53df3c44f0a 100755
--- a/deliveries/docker/apache-ignite/run.sh
+++ b/deliveries/docker/apache-ignite/run.sh
@@ -75,17 +75,33 @@ fi
#
# Add Java extra option
#
-if [ "${version}" -ge 11 ] ; then
+if [ "${version}" -ge 17 ] ; then
JVM_OPTS="\
- --add-exports=java.base/jdk.internal.misc=ALL-UNNAMED \
- --add-exports=java.base/sun.nio.ch=ALL-UNNAMED \
- --add-exports=java.management/com.sun.jmx.mbeanserver=ALL-UNNAMED \
- --add-exports=jdk.internal.jvmstat/sun.jvmstat.monitor=ALL-UNNAMED \
-
--add-exports=java.base/sun.reflect.generics.reflectiveObjects=ALL-UNNAMED \
- --add-opens=jdk.management/com.sun.management.internal=ALL-UNNAMED \
--add-opens=java.base/jdk.internal.access=ALL-UNNAMED \
+ --add-opens=java.base/jdk.internal.misc=ALL-UNNAMED \
+ --add-opens=java.base/sun.nio.ch=ALL-UNNAMED \
+ --add-opens=java.base/sun.util.calendar=ALL-UNNAMED \
+ --add-opens=java.management/com.sun.jmx.mbeanserver=ALL-UNNAMED \
+ --add-opens=jdk.internal.jvmstat/sun.jvmstat.monitor=ALL-UNNAMED \
+
--add-opens=java.base/sun.reflect.generics.reflectiveObjects=ALL-UNNAMED \
+ --add-opens=jdk.management/com.sun.management.internal=ALL-UNNAMED \
+ --add-opens=java.base/java.io=ALL-UNNAMED \
+ --add-opens=java.base/java.nio=ALL-UNNAMED \
+ --add-opens=java.base/java.net=ALL-UNNAMED \
+ --add-opens=java.base/java.util=ALL-UNNAMED \
+ --add-opens=java.base/java.util.concurrent=ALL-UNNAMED \
+ --add-opens=java.base/java.util.concurrent.locks=ALL-UNNAMED \
+ --add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED \
+ --add-opens=java.base/java.lang=ALL-UNNAMED \
+ --add-opens=java.base/java.lang.invoke=ALL-UNNAMED \
+ --add-opens=java.base/java.math=ALL-UNNAMED \
+ --add-opens=java.sql/java.sql=ALL-UNNAMED \
+ --add-opens=java.base/java.lang.reflect=ALL-UNNAMED \
+ --add-opens=java.base/java.time=ALL-UNNAMED \
+ --add-opens=java.base/java.text=ALL-UNNAMED \
--add-opens=java.logging/java.util.logging=ALL-UNNAMED \
- --illegal-access=permit \
+ --add-opens=java.management/sun.management=ALL-UNNAMED \
+ --add-opens=java.desktop/java.awt.font=ALL-UNNAMED \
${JVM_OPTS}"
fi
diff --git a/deliveries/docker/apache-ignite/s390x/Dockerfile
b/deliveries/docker/apache-ignite/s390x/Dockerfile
index 8b2bb77b7b9..a33c3061075 100644
--- a/deliveries/docker/apache-ignite/s390x/Dockerfile
+++ b/deliveries/docker/apache-ignite/s390x/Dockerfile
@@ -23,10 +23,10 @@ FROM s390x/ubuntu:20.04
ARG IGNITE_VER
# Set Environment Variables
-ENV JAVA_HOME="/opt/jdk-11.0.14.1+1"
+ENV JAVA_HOME="/opt/jdk-17.0.19.0"
ENV IGNITE_HOME="/opt/apache-ignite-${IGNITE_VER}-bin"
ENV PATH="${JAVA_HOME}/bin:/opt/apache-ignite-${IGNITE_VER}-bin/bin:${PATH}"
-ENV JDK_FILE="ibm-semeru-open-jdk_s390x_linux_11.0.14.1_1_openj9-0.30.1.tar.gz"
+ENV JDK_FILE="ibm-semeru-open-jdk_s390x_linux_17.0.19.0.tar.gz"
# The Author
LABEL maintainer="LoZ Open Source Ecosystem
(https://www.ibm.com/community/z/usergroups/opensource)"
@@ -44,8 +44,8 @@ RUN apt-get update && \
apt-get -y clean autoremove && \
rm -rf /var/lib/apt/lists/*
-# Download JDK 11
-RUN wget
https://github.com/ibmruntimes/semeru11-binaries/releases/download/jdk-11.0.14.1%2B1_openj9-0.30.1/${JDK_FILE}
&& \
+# Download JDK 17
+RUN wget
https://github.com/ibmruntimes/semeru17-binaries/releases/download/jdk-17.0.19.0/${JDK_FILE}
&& \
tar xvf ${JDK_FILE} && \
rm -rf ${JDK_FILE}
diff --git a/deliveries/docker/apache-ignite/x86_64/Dockerfile
b/deliveries/docker/apache-ignite/x86_64/Dockerfile
index 3e1b1aebd07..7e6d23aa39a 100644
--- a/deliveries/docker/apache-ignite/x86_64/Dockerfile
+++ b/deliveries/docker/apache-ignite/x86_64/Dockerfile
@@ -15,8 +15,8 @@
# limitations under the License.
#
-# Start from Java 11 based on Alpine Linux image
-ARG JDK_VERSION=11
+# Start from Java 17 based on Alpine Linux image
+ARG JDK_VERSION=17
FROM eclipse-temurin:${JDK_VERSION}-jre-alpine
# Settings
diff --git a/docs/_docs/includes/cpp-linux-build-prerequisites.adoc
b/docs/_docs/includes/cpp-linux-build-prerequisites.adoc
index 581a52fe8b4..0900b2acbe1 100644
--- a/docs/_docs/includes/cpp-linux-build-prerequisites.adoc
+++ b/docs/_docs/includes/cpp-linux-build-prerequisites.adoc
@@ -26,20 +26,20 @@ Installation instructions for several popular distributions
are listed below:
tab:Ubuntu 18.04/20.04[]
[source,bash,subs="attributes,specialchars"]
----
-sudo apt-get install -y build-essential cmake openjdk-11-jdk unixodbc-dev
libssl-dev
+sudo apt-get install -y build-essential cmake openjdk-17-jdk unixodbc-dev
libssl-dev
----
tab:CentOS/RHEL 7[]
[source,shell,subs="attributes,specialchars"]
----
sudo yum install -y epel-release
-sudo yum install -y java-11-openjdk-devel cmake3 unixODBC-devel openssl-devel
make gcc-c++
+sudo yum install -y java-17-openjdk-devel cmake3 unixODBC-devel openssl-devel
make gcc-c++
----
tab:CentOS/RHEL 8[]
[source,shell,subs="attributes,specialchars"]
----
-sudo yum install -y java-11-openjdk-devel cmake3 unixODBC-devel openssl-devel
make gcc-c++
+sudo yum install -y java-17-openjdk-devel cmake3 unixODBC-devel openssl-devel
make gcc-c++
----
--
diff --git a/docs/_docs/includes/cpp-prerequisites.adoc
b/docs/_docs/includes/cpp-prerequisites.adoc
index cbb169f4a4a..88da890917b 100644
--- a/docs/_docs/includes/cpp-prerequisites.adoc
+++ b/docs/_docs/includes/cpp-prerequisites.adoc
@@ -14,7 +14,7 @@
// limitations under the License.
[width="100%",cols="1,3"]
|===
-|JDK|Oracle JDK 11 or 17, Open JDK 11 or 17, IBM JDK 11 or 17
+|JDK|Oracle JDK 17, Open JDK 17, IBM JDK 17
|OS|Windows Vista, Windows Server 2008 and later versions, Ubuntu (18.04 64
bit)
|Network|No restrictions (10G recommended)
|Hardware|No restrictions
diff --git a/docs/_docs/includes/dotnet-prerequisites.adoc
b/docs/_docs/includes/dotnet-prerequisites.adoc
index c9b2feeb51a..82b9eb9f973 100644
--- a/docs/_docs/includes/dotnet-prerequisites.adoc
+++ b/docs/_docs/includes/dotnet-prerequisites.adoc
@@ -14,7 +14,7 @@
// limitations under the License.
[width="100%",cols="1,3"]
|===
-|JDK |Oracle JDK 11 or 17, Open JDK 11 or 17, IBM JDK 11 or 17
+|JDK |Oracle JDK 17, Open JDK 17, IBM JDK 17
|.NET Framework |.NET 4.0+, .NET Core 2.0+
//|IDE |Visual Studio 2010+, Rider, Visual Studio Code
|===
diff --git a/docs/_docs/includes/java9.adoc b/docs/_docs/includes/java.adoc
similarity index 81%
rename from docs/_docs/includes/java9.adoc
rename to docs/_docs/includes/java.adoc
index 2a44392764a..84a55f89f55 100644
--- a/docs/_docs/includes/java9.adoc
+++ b/docs/_docs/includes/java.adoc
@@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-To run Ignite with Java 11 or later, follow these steps:
+To run Ignite with Java 17 or later, follow these steps:
1. Set the `JAVA_HOME` environment variable to point to the Java installation
directory.
@@ -26,19 +26,6 @@ application:
+
[tabs]
--
-tab:Java 11[]
-[source,shell]
-----
---add-exports=java.base/jdk.internal.misc=ALL-UNNAMED
---add-exports=java.base/sun.nio.ch=ALL-UNNAMED
---add-exports=java.management/com.sun.jmx.mbeanserver=ALL-UNNAMED
---add-exports=jdk.internal.jvmstat/sun.jvmstat.monitor=ALL-UNNAMED
---add-exports=java.base/sun.reflect.generics.reflectiveObjects=ALL-UNNAMED
---add-opens=jdk.management/com.sun.management.internal=ALL-UNNAMED
---add-opens=java.base/java.nio=ALL-UNNAMED
---illegal-access=permit
-----
-
tab:Java 17[]
[source,shell]
----
@@ -66,6 +53,6 @@ tab:Java 17[]
--add-opens=java.base/java.text=ALL-UNNAMED
--add-opens=java.logging/java.util.logging=ALL-UNNAMED
--add-opens=java.management/sun.management=ALL-UNNAMED
---add-opens java.desktop/java.awt.font=ALL-UNNAMED
+--add-opens=java.desktop/java.awt.font=ALL-UNNAMED
----
--
diff --git a/docs/_docs/includes/prereqs.adoc b/docs/_docs/includes/prereqs.adoc
index 6964c1d19c2..9bcd77464f7 100644
--- a/docs/_docs/includes/prereqs.adoc
+++ b/docs/_docs/includes/prereqs.adoc
@@ -14,7 +14,7 @@
// limitations under the License.
[width="100%",cols="1,3"]
|===
-|JDK |Oracle JDK 11 or 17 Open JDK 11 or 17, IBM JDK 11 or 17
+|JDK |Oracle JDK 17, Open JDK 17, IBM JDK 17
|OS |Linux (any flavor), Mac OSX (10.6 and up), Windows (XP and up),
Windows Server (2008 and up), Oracle Solaris
|ISA |x86, x64, SPARC, PowerPC, ARM64
diff --git a/docs/_docs/net-specific/net-cross-platform-support.adoc
b/docs/_docs/net-specific/net-cross-platform-support.adoc
index abd05f5ea6b..436789c0965 100644
--- a/docs/_docs/net-specific/net-cross-platform-support.adoc
+++ b/docs/_docs/net-specific/net-cross-platform-support.adoc
@@ -24,7 +24,7 @@ applications for Linux and macOS, as well as Windows.
*Requirements:*
* https://www.microsoft.com/net/download/[.NET Core SDK 2.0+, window=_blank]
-* http://www.oracle.com/technetwork/java/javase/downloads/index.html[Java 11+,
window=_blank] (macOS requires JDK, otherwise JRE works)
+* http://www.oracle.com/technetwork/java/javase/downloads/index.html[Java 17+,
window=_blank] (macOS requires JDK, otherwise JRE works)
*Running Examples*
https://ignite.apache.org/download.cgi#binaries[Binary distribution,
window=_blank] includes .NET Core examples:
diff --git a/docs/_docs/perf-and-troubleshooting/memory-tuning.adoc
b/docs/_docs/perf-and-troubleshooting/memory-tuning.adoc
index 5b792d271fa..01c0c0dad37 100644
--- a/docs/_docs/perf-and-troubleshooting/memory-tuning.adoc
+++ b/docs/_docs/perf-and-troubleshooting/memory-tuning.adoc
@@ -90,7 +90,6 @@ practices on GC logs and heap dumps collection.
Below are sets of example JVM configurations for applications that can utilize
Java Heap on server nodes heavily, thus
triggering long — or frequent, short — stop-the-world GC pauses.
-For JDK 11+ deployments you should use G1 garbage collector.
The settings below are a good starting point if 10GB heap is more than enough
for your server nodes:
[source,shell]
diff --git a/docs/_docs/quick-start/java.adoc b/docs/_docs/quick-start/java.adoc
index fbea06636da..99bf305e18c 100644
--- a/docs/_docs/quick-start/java.adoc
+++ b/docs/_docs/quick-start/java.adoc
@@ -22,7 +22,7 @@ Ignite was officially tested on:
include::includes/prereqs.adoc[]
-See <<Running Ignite with Java 11 or later>> for additional JVM parameters.
+See <<Running Ignite with Java 17 or later>> for additional JVM parameters.
== Installing Ignite
@@ -136,7 +136,7 @@ public class HelloWorld {
====
Don't forget to add imports for HelloWorld.java. It should be trivial as long
as Maven solves all of the dependencies.
-Plus, you might need to add these settings to your pom.xml if the IDE keeps
using Java compiler from a version earlier than 11:
+Plus, you might need to add these settings to your pom.xml if the IDE keeps
using Java compiler from a version earlier than 17:
[source,xml]
----
<build>
@@ -145,8 +145,8 @@ Plus, you might need to add these settings to your pom.xml
if the IDE keeps usin
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
- <source>11</source>
- <target>11</target>
+ <source>17</source>
+ <target>17</target>
</configuration>
</plugin>
</plugins>
@@ -165,7 +165,7 @@ Run HelloWorld.java. You will see 'Hello World!' and other
environment details p
include::includes/exampleprojects.adoc[]
-== Running Ignite with Java 11 or later
+== Running Ignite with Java 17 or later
-include::includes/java9.adoc[]
+include::includes/java.adoc[]
diff --git a/docs/_docs/setup.adoc b/docs/_docs/setup.adoc
index ae27ce2af98..e3178beb778 100644
--- a/docs/_docs/setup.adoc
+++ b/docs/_docs/setup.adoc
@@ -31,9 +31,9 @@ Ignite was tested on:
include::includes/prereqs.adoc[]
-== Running Ignite with Java 11 or later
+== Running Ignite with Java 17 or later
-include::includes/java9.adoc[]
+include::includes/java.adoc[]
== Using Binary Distribution
diff --git a/docs/_docs/tools/informatica.adoc
b/docs/_docs/tools/informatica.adoc
index c0a098a6a99..d5c39de5bce 100644
--- a/docs/_docs/tools/informatica.adoc
+++ b/docs/_docs/tools/informatica.adoc
@@ -270,7 +270,7 @@ automake (GNU automake) 1.16.1
OpenSSL 1.0.0c 2 Dec 2010
6. g++ --version
g++ (SUSE Linux) 5.5.0 20171010 [gcc-5-branch revision 253640]
-7. JDK 11
+7. JDK 17
----
--
diff --git a/examples/README.md b/examples/README.md
index fb560302c87..82f275aa387 100644
--- a/examples/README.md
+++ b/examples/README.md
@@ -7,7 +7,7 @@ Instructions on how to start examples can be found in
[README.txt](README.txt).
How to start examples in the developer's environment, please see
[DEVNOTES.txt](DEVNOTES.txt).
## Running examples
-Ignite uses proprietary SDK APIs that are not available by default. See also
[How to run
Ignite](https://ignite.apache.org/docs/latest/setup#running-ignite-with-java-11-or-later)
+Ignite uses proprietary SDK APIs that are not available by default. See also
[How to run
Ignite](https://ignite.apache.org/docs/latest/setup#running-ignite-with-java-17-or-later)
To set up local IDE to easier access to examples, it is possible to add
following options as default for all applications
diff --git a/examples/pom-standalone-lgpl.xml b/examples/pom-standalone-lgpl.xml
index 5027387e58a..22f06f48449 100644
--- a/examples/pom-standalone-lgpl.xml
+++ b/examples/pom-standalone-lgpl.xml
@@ -27,8 +27,8 @@
<modelVersion>4.0.0</modelVersion>
<properties>
- <maven.compiler.source>11</maven.compiler.source>
- <maven.compiler.target>11</maven.compiler.target>
+ <maven.compiler.source>17</maven.compiler.source>
+ <maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
diff --git a/examples/pom-standalone.xml b/examples/pom-standalone.xml
index 5027387e58a..22f06f48449 100644
--- a/examples/pom-standalone.xml
+++ b/examples/pom-standalone.xml
@@ -27,8 +27,8 @@
<modelVersion>4.0.0</modelVersion>
<properties>
- <maven.compiler.source>11</maven.compiler.source>
- <maven.compiler.target>11</maven.compiler.target>
+ <maven.compiler.source>17</maven.compiler.source>
+ <maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
diff --git a/modules/checkstyle/pom.xml b/modules/checkstyle/pom.xml
index 589a354960c..49246c6b9c3 100644
--- a/modules/checkstyle/pom.xml
+++ b/modules/checkstyle/pom.xml
@@ -37,8 +37,8 @@
<version>${revision}</version>
<properties>
- <maven.compiler.source>11</maven.compiler.source>
- <maven.compiler.target>11</maven.compiler.target>
+ <maven.compiler.source>17</maven.compiler.source>
+ <maven.compiler.target>17</maven.compiler.target>
<maven.flatten.file.name>pom-installed.xml</maven.flatten.file.name>
<revision>2.19.0-SNAPSHOT</revision>
<checkstyle.puppycrawl.version>8.45</checkstyle.puppycrawl.version>
diff --git
a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/transactions/TxRollbackAsyncTest.java
b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/transactions/TxRollbackAsyncTest.java
index 79f9acfc9ff..91a53e1ef35 100644
---
a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/transactions/TxRollbackAsyncTest.java
+++
b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/transactions/TxRollbackAsyncTest.java
@@ -86,7 +86,6 @@ import
org.apache.ignite.transactions.TransactionRollbackException;
import org.junit.Test;
import static java.lang.Thread.interrupted;
-import static java.lang.Thread.yield;
import static org.apache.ignite.cache.CacheAtomicityMode.TRANSACTIONAL;
import static org.apache.ignite.cache.CacheWriteSynchronizationMode.FULL_SYNC;
import static org.apache.ignite.configuration.WALMode.LOG_ONLY;
@@ -745,7 +744,7 @@ public class TxRollbackAsyncTest extends
GridCommonAbstractTest {
// Reserve node for rollback.
if (!idx.compareAndSet(nodeId, 0, 1)) {
- yield();
+ Thread.yield();
continue;
}
diff --git
a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/transactions/TxRollbackOnTopologyChangeTest.java
b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/transactions/TxRollbackOnTopologyChangeTest.java
index eb82374c32e..175d64578df 100644
---
a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/transactions/TxRollbackOnTopologyChangeTest.java
+++
b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/transactions/TxRollbackOnTopologyChangeTest.java
@@ -36,7 +36,6 @@ import
org.apache.ignite.testframework.junits.common.GridCommonAbstractTest;
import org.apache.ignite.transactions.Transaction;
import org.junit.Test;
-import static java.lang.Thread.yield;
import static org.apache.ignite.cache.CacheAtomicityMode.TRANSACTIONAL;
import static org.apache.ignite.cache.CacheWriteSynchronizationMode.FULL_SYNC;
import static
org.apache.ignite.transactions.TransactionConcurrency.PESSIMISTIC;
@@ -173,7 +172,7 @@ public class TxRollbackOnTopologyChangeTest extends
GridCommonAbstractTest {
final int nodeId = r.nextInt(TOTAL_CNT);
if (!reservedIdx.compareAndSet(nodeId, 0, 1)) {
- yield();
+ Thread.yield();
continue;
}
diff --git
a/modules/core/src/test/java/org/apache/ignite/spi/discovery/tcp/TcpDiscoverySslParametersTest.java
b/modules/core/src/test/java/org/apache/ignite/spi/discovery/tcp/TcpDiscoverySslParametersTest.java
index 45bfc011f2f..70a4312aa92 100644
---
a/modules/core/src/test/java/org/apache/ignite/spi/discovery/tcp/TcpDiscoverySslParametersTest.java
+++
b/modules/core/src/test/java/org/apache/ignite/spi/discovery/tcp/TcpDiscoverySslParametersTest.java
@@ -136,8 +136,7 @@ public class TcpDiscoverySslParametersTest extends
GridCommonAbstractTest {
},
null,
IgniteCheckedException.class,
- // Java 8 has "Unsupported ciphersuite", Java 11 has "Unsupported
CipherSuite"
- "Unsupported"
+ "Unsupported CipherSuite"
);
}
diff --git a/modules/dev-utils/ignite-modules-test/README.md
b/modules/dev-utils/ignite-modules-test/README.md
index 3f04de49652..c4402711e52 100644
--- a/modules/dev-utils/ignite-modules-test/README.md
+++ b/modules/dev-utils/ignite-modules-test/README.md
@@ -6,10 +6,10 @@ This project intended for testing Ignite artifacts separately
from main project.
To import project use Import from existing sources, use gradle option:
[modules\dev-utils\ignite-modules-test\build.gradle](build.gradle)
-After imoport of gradle, it may require resync.
+After import of gradle, it may require resync.
Use latest gradle distribution, because older versions may not support modules.
-This project is compatible only with Java 11.
+This project is compatible only with Java 17.
## Used Ignite version
By default this project uses Ignite version of previous released Ignite, but
it can be switched to snapshot version if needed.
diff --git a/modules/dev-utils/ignite-modules-test/build.gradle
b/modules/dev-utils/ignite-modules-test/build.gradle
index ea0a0077e85..5174c249bdf 100644
--- a/modules/dev-utils/ignite-modules-test/build.gradle
+++ b/modules/dev-utils/ignite-modules-test/build.gradle
@@ -20,10 +20,10 @@ plugins {
}
group 'org.apache.ignite'
-version '1.0'
+version '1.1'
-sourceCompatibility = 11
-targetCompatibility = 11
+sourceCompatibility = 17
+targetCompatibility = 17
ext {
ignVer = '2.19.0-SNAPSHOT'
diff --git a/modules/ducktests/tests/docker/Dockerfile
b/modules/ducktests/tests/docker/Dockerfile
index 2c6289f9ea3..a88d0a969e9 100644
--- a/modules/ducktests/tests/docker/Dockerfile
+++ b/modules/ducktests/tests/docker/Dockerfile
@@ -13,7 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-ARG jdk_version=eclipse-temurin:11
+ARG jdk_version=eclipse-temurin:17
FROM $jdk_version
MAINTAINER Apache Ignite [email protected]
diff --git a/modules/ducktests/tests/docker/ducker-ignite
b/modules/ducktests/tests/docker/ducker-ignite
index 10d2b8f7a6d..da6cc205c98 100755
--- a/modules/ducktests/tests/docker/ducker-ignite
+++ b/modules/ducktests/tests/docker/ducker-ignite
@@ -42,7 +42,7 @@ docker_run_memory_limit="8000m"
default_num_nodes=4
# The default OpenJDK base image.
-default_jdk="openjdk:11"
+default_jdk="openjdk:17"
# The default ducker-ignite image name.
default_image_name="ducker-ignite"
diff --git a/modules/ducktests/tests/docker/run_tests.sh
b/modules/ducktests/tests/docker/run_tests.sh
index 697d1e8d33c..d22d53e6f72 100755
--- a/modules/ducktests/tests/docker/run_tests.sh
+++ b/modules/ducktests/tests/docker/run_tests.sh
@@ -24,7 +24,7 @@ SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
IGNITE_NUM_CONTAINERS=${IGNITE_NUM_CONTAINERS:-13}
# Image name to run nodes
-JDK_VERSION="${JDK_VERSION:-11}"
+JDK_VERSION="${JDK_VERSION:-17}"
IMAGE_PREFIX="ducker-ignite-eclipse-temurin"
###
@@ -79,7 +79,7 @@ The options are as follows:
Subnet to assign nodes IP addresses, like --subnet 172.20.0.0/16
--jdk
- Set jdk version to build, default is 11
+ Set jdk version to build, default is 17
--image
Set custom docker image to run tests on.
diff --git a/modules/kubernetes/config/Dockerfile
b/modules/kubernetes/config/Dockerfile
index c8ff40b04ba..09fb5bc2072 100644
--- a/modules/kubernetes/config/Dockerfile
+++ b/modules/kubernetes/config/Dockerfile
@@ -15,14 +15,14 @@
# limitations under the License.
#
-# Use Java 8 image as default one.
-FROM openjdk:11
+# Use Java 17 image as default one.
+FROM openjdk:17
# Set Apache Ignite configuration file name.
ARG IGNITE_CFG_XML="example-kube.xml"
# Set Apache Ignite version.
-ARG IGNITE_VERSION="2.0.0"
+ARG IGNITE_VERSION="2.18.0"
# Set IGNITE_HOME variable.
ENV IGNITE_HOME /opt/ignite/apache-ignite-${IGNITE_VERSION}-bin
diff --git a/modules/numa-allocator/README.md b/modules/numa-allocator/README.md
index 5d5937a2508..082cbcd6d38 100644
--- a/modules/numa-allocator/README.md
+++ b/modules/numa-allocator/README.md
@@ -17,11 +17,11 @@ $ sudo apt install numactl
1. `RHEL` or `Cent OS`
```bash
$ sudo yum groupinstall 'Development Tools'
-$ sudo yum install java-11-openjdk numactl-devel libstdc++-static
+$ sudo yum install java-17-openjdk numactl-devel libstdc++-static
```
2. `Ubuntu` or `Debian`
```bash
-$ sudo apt install build-essential libnuma-dev openjdk-11-jdk
+$ sudo apt install build-essential libnuma-dev openjdk-17-jdk
```
## Usage
### Simple allocation strategy
diff --git
a/modules/platforms/dotnet/Apache.Ignite.Core.Tests/JavaServer/pom.xml
b/modules/platforms/dotnet/Apache.Ignite.Core.Tests/JavaServer/pom.xml
index 0fd7218da2c..79734f09304 100644
--- a/modules/platforms/dotnet/Apache.Ignite.Core.Tests/JavaServer/pom.xml
+++ b/modules/platforms/dotnet/Apache.Ignite.Core.Tests/JavaServer/pom.xml
@@ -27,8 +27,8 @@
<version>1.0-SNAPSHOT</version>
<properties>
- <maven.compiler.source>1.7</maven.compiler.source>
- <maven.compiler.target>1.7</maven.compiler.target>
+ <maven.compiler.source>17</maven.compiler.source>
+ <maven.compiler.target>17</maven.compiler.target>
</properties>
<dependencies>
diff --git
a/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/Jni/ConsoleWriter.cs
b/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/Jni/ConsoleWriter.cs
index 512afede51d..a48e980a433 100644
---
a/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/Jni/ConsoleWriter.cs
+++
b/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/Jni/ConsoleWriter.cs
@@ -26,7 +26,7 @@ namespace Apache.Ignite.Core.Impl.Unmanaged.Jni
/// </summary>
internal sealed class ConsoleWriter : MarshalByRefObject
{
- /** Environment variable: whether to suppress stderr warnings from
Java 11. */
+ /** Environment variable: whether to suppress stderr warnings from
Java 17. */
private const string EnvIgniteNetSuppressJavaIllegalAccessWarnings =
"IGNITE_NET_SUPPRESS_JAVA_ILLEGAL_ACCESS_WARNINGS";
@@ -40,7 +40,7 @@ namespace Apache.Ignite.Core.Impl.Unmanaged.Jni
"WARNING: All illegal access operations will be denied in a future
release"
};
- /** Flag: whether to suppress stderr warnings from Java 11. */
+ /** Flag: whether to suppress stderr warnings from Java 17. */
private readonly bool _suppressIllegalAccessWarnings;
public ConsoleWriter()
diff --git
a/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/Jni/JvmDll.cs
b/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/Jni/JvmDll.cs
index 1ea18c9cb80..126f90e9d84 100644
--- a/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/Jni/JvmDll.cs
+++ b/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/Jni/JvmDll.cs
@@ -368,7 +368,7 @@ namespace Apache.Ignite.Core.Impl.Unmanaged.Jni
}
var file = Shell.ExecuteSafe("/usr/bin/readlink", "-f
/usr/bin/java", log: log);
- // /usr/lib/jvm/java-11-openjdk-amd64/jre/bin/java
+ // /usr/lib/jvm/java-17-openjdk-amd64/jre/bin/java
if (string.IsNullOrWhiteSpace(file))
{
@@ -384,7 +384,7 @@ namespace Apache.Ignite.Core.Impl.Unmanaged.Jni
log.Debug("/usr/bin/java resolved to '{0}'", file);
var dir = Path.GetDirectoryName(file);
- // /usr/lib/jvm/java-11-openjdk-amd64/jre/bin
+ // /usr/lib/jvm/java-17-openjdk-amd64/jre/bin
if (dir == null)
{
@@ -398,7 +398,7 @@ namespace Apache.Ignite.Core.Impl.Unmanaged.Jni
yield break;
}
- // Predefined path:
/usr/lib/jvm/java-11-openjdk-amd64/jre/lib/amd64/server/libjvm.so
+ // Predefined path:
/usr/lib/jvm/java-17-openjdk-amd64/jre/lib/amd64/server/libjvm.so
yield return new KeyValuePair<string, string>(javaExec,
Path.Combine(libFolder, "amd64", "server", FileJvmDll));
diff --git a/modules/platforms/dotnet/DEVNOTES.txt
b/modules/platforms/dotnet/DEVNOTES.txt
index 80d5c04d5cd..ea102c600a8 100644
--- a/modules/platforms/dotnet/DEVNOTES.txt
+++ b/modules/platforms/dotnet/DEVNOTES.txt
@@ -1,7 +1,7 @@
Requirements
============
-* Oracle JDK 8 or 11
+* Oracle JDK 17
* .NET 6 SDK
* JAVA_HOME environment variable set to the corresponding JDK (x64 or x86)
* Apache Maven bin directory in PATH, or MAVEN_HOME environment variable
diff --git a/modules/platforms/dotnet/build.ps1
b/modules/platforms/dotnet/build.ps1
index ca1503e8506..7dfbe8b7b4c 100644
--- a/modules/platforms/dotnet/build.ps1
+++ b/modules/platforms/dotnet/build.ps1
@@ -27,7 +27,7 @@ Builds all parts of Apache Ignite.NET: Java, .NET, NuGet.
Copies results to 'bin
Requirements:
* PowerShell 3
-* JDK 8 or JDK 11
+* JDK 17+
* MAVEN_HOME environment variable or mvn.bat in PATH
.PARAMETER skipJava
diff --git a/modules/platforms/dotnet/examples/README.md
b/modules/platforms/dotnet/examples/README.md
index 3d25a6335c7..84bc2f52f9f 100644
--- a/modules/platforms/dotnet/examples/README.md
+++ b/modules/platforms/dotnet/examples/README.md
@@ -7,7 +7,7 @@
# Requirements
* [.NET 6 SDK](https://dotnet.microsoft.com/download/dotnet-core)
-* [JDK
11](https://www.oracle.com/java/technologies/javase-jdk11-downloads.html)
+* [JDK 17](https://www.oracle.com/java/technologies/downloads/#java17)
Windows, Linux, and macOS are supported.
diff --git a/modules/platforms/dotnet/release/verify-nuget.ps1
b/modules/platforms/dotnet/release/verify-nuget.ps1
index 0ab5e2e25f2..8a8a40a6d11 100644
--- a/modules/platforms/dotnet/release/verify-nuget.ps1
+++ b/modules/platforms/dotnet/release/verify-nuget.ps1
@@ -27,7 +27,7 @@ Creates a project with .NET Core CLI, installs all packages,
runs simple code to
Requirements:
* .NET Core 2.0+
-* JDK 8 or JDK 11
+* JDK 17
.PARAMETER packageDir
Directory with nupkg files to verify, defaults to ..\nupkg.
diff --git a/modules/sqlline/bin/sqlline.bat b/modules/sqlline/bin/sqlline.bat
index b4aab31eafd..47d0c422cda 100644
--- a/modules/sqlline/bin/sqlline.bat
+++ b/modules/sqlline/bin/sqlline.bat
@@ -28,7 +28,7 @@ if "%OS%" == "Windows_NT" setlocal
if defined JAVA_HOME goto checkJdk
echo %0, ERROR:
echo JAVA_HOME environment variable is not found.
- echo Please point JAVA_HOME variable to location of JDK 1.8 or later.
+ echo Please point JAVA_HOME variable to location of JDK 17 or later.
echo You can also download latest JDK at http://java.com/download.
goto error_finish
@@ -37,7 +37,7 @@ goto error_finish
if exist "%JAVA_HOME%\bin\java.exe" goto checkJdkVersion
echo %0, ERROR:
echo JAVA is not found in JAVA_HOME=%JAVA_HOME%.
- echo Please point JAVA_HOME variable to installation of JDK 1.8 or later.
+ echo Please point JAVA_HOME variable to installation of JDK 17 or later.
echo You can also download latest JDK at http://java.com/download.
goto error_finish
diff --git a/modules/tools/pom.xml b/modules/tools/pom.xml
index 08f9d569717..c784858758a 100644
--- a/modules/tools/pom.xml
+++ b/modules/tools/pom.xml
@@ -35,26 +35,6 @@
<url>http://ignite.apache.org</url>
<profiles>
- <profile>
- <id>java-11+</id>
- <activation>
- <jdk>[11,15)</jdk>
- </activation>
- <properties>
- <src.javaspecific.dir>src/main/java11</src.javaspecific.dir>
- </properties>
- </profile>
-
- <profile>
- <id>java-15+</id>
- <activation>
- <jdk>[15,)</jdk>
- </activation>
- <properties>
- <src.javaspecific.dir>src/main/java15</src.javaspecific.dir>
- </properties>
- </profile>
-
<profile>
<!--
This profile is used to provide a check that all tests are defined
in at least one suite.
@@ -102,26 +82,6 @@
</resource>
</resources>
<plugins>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>build-helper-maven-plugin</artifactId>
- <version>${build.helper.maven.plugin.version}</version>
- <executions>
- <execution>
- <id>add-source</id>
- <phase>generate-sources</phase>
- <goals>
- <goal>add-source</goal>
- </goals>
- <configuration>
- <sources>
- <source>${src.javaspecific.dir}</source>
- </sources>
- </configuration>
- </execution>
- </executions>
- </plugin>
-
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
diff --git
a/modules/tools/src/main/java/org/apache/ignite/tools/ant/beautifier/GridJavadocAntTask.java
b/modules/tools/src/main/java/org/apache/ignite/tools/ant/beautifier/GridJavadocAntTask.java
index 97350f0250c..2dc1b6e211d 100644
---
a/modules/tools/src/main/java/org/apache/ignite/tools/ant/beautifier/GridJavadocAntTask.java
+++
b/modules/tools/src/main/java/org/apache/ignite/tools/ant/beautifier/GridJavadocAntTask.java
@@ -156,20 +156,17 @@ public class GridJavadocAntTask extends MatchingTask {
String javaVer = System.getProperty("java.specification.version");
- boolean jdk11 = "11".equals(javaVer);
boolean jdk17 = "17".equals(javaVer);
- if (!jdk11 && !jdk17) {
- throw new IllegalArgumentException("GridJavadocAntTask is only
tested for Java 11 and 17. " +
+ if (!jdk17) {
+ throw new IllegalArgumentException("GridJavadocAntTask is only
tested for Java 17. " +
"Current version: " + javaVer + ". " +
"Please check html rendering of documentation package
groups works correctly and add support then.");
}
if ("index.html".equals(file.getName())) {
// Try to find Other Packages section.
- Jerry otherPackages = jdk11
- ? doc.find("div.contentContainer table.overviewSummary
caption span:contains('Other Packages')")
- : doc.find("button.table-tab:contains('Other Packages')");
+ Jerry otherPackages =
doc.find("button.table-tab:contains('Other Packages')");
if (otherPackages.size() > 0) {
System.err.println("[ERROR]: 'Other Packages' section
should not be present, but found: " +
@@ -180,34 +177,18 @@ public class GridJavadocAntTask extends MatchingTask {
"<configuration> / <groups>");
}
- int pkgGrps = jdk11
- ? doc.find("div.contentContainer table.overviewSummary
caption span.tableTab").size()
- : doc.find("button.table-tab").size();
+ int pkgGrps = doc.find("button.table-tab").size();
if (pkgGrps == 0) {
throw new IllegalArgumentException("Documentation package
groups missed. Please add packages " +
"description to parent/pom.xml into
<plugin>(maven-javadoc-plugin) / " +
"<configuration> / <groups>");
}
-
- if (jdk11) {
- // This limit is set for JDK 11. Each group is represented
as a tab. Tabs are enumerated with
- // a number 2^N where N is a sequential number for a tab.
For 32 tabs (+ the "All Packages" tab)
- // the number is overflowed and the tabulation becomes
broken. See var data in "index.html".
- // JDK 17 uses CSS class-based tab switching, so this
limit does not apply.
- if (pkgGrps > 30) {
- throw new IllegalArgumentException("Too many package
groups: " + pkgGrps + ". The limit"
- + " is 30 due to the javadoc limitations. Please
reduce groups in parent/pom.xml"
- + " inside <plugin>(maven-javadoc-plugin) /
<configuration> / <groups>");
- }
- }
}
else if (!isViewHtml(file)) {
// TODO: fix the description block location IGNITE-22650
// Try to find a class description block.
- Jerry descBlock = jdk11
- ? doc.find("div.contentContainer .description")
- : doc.find("section.class-description");
+ Jerry descBlock = doc.find("section.class-description");
if (descBlock.size() == 0)
throw new IllegalArgumentException("Class doesn't have
description in file: " + file);
diff --git
a/modules/tools/src/main/java15/org/apache/ignite/tools/javadoc/IgniteLinkTaglet.java
b/modules/tools/src/main/java/org/apache/ignite/tools/javadoc/IgniteLinkTaglet.java
similarity index 100%
rename from
modules/tools/src/main/java15/org/apache/ignite/tools/javadoc/IgniteLinkTaglet.java
rename to
modules/tools/src/main/java/org/apache/ignite/tools/javadoc/IgniteLinkTaglet.java
diff --git
a/modules/tools/src/main/java11/org/apache/ignite/tools/javadoc/IgniteLinkTaglet.java
b/modules/tools/src/main/java11/org/apache/ignite/tools/javadoc/IgniteLinkTaglet.java
deleted file mode 100644
index 78663c6c8ca..00000000000
---
a/modules/tools/src/main/java11/org/apache/ignite/tools/javadoc/IgniteLinkTaglet.java
+++ /dev/null
@@ -1,126 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.ignite.tools.javadoc;
-
-import java.io.File;
-import java.util.HashSet;
-import java.util.List;
-import java.util.Set;
-import javax.lang.model.element.Element;
-import com.sun.source.doctree.DocTree;
-import com.sun.source.doctree.UnknownInlineTagTree;
-import com.sun.source.util.SimpleDocTreeVisitor;
-import jdk.javadoc.doclet.Doclet;
-import jdk.javadoc.doclet.DocletEnvironment;
-import jdk.javadoc.doclet.Taglet;
-
-/**
- * Represents {@ignitelink Class} tag. This tag can
- * be used as replacement of {@link Class} tag that references to the Ignite
class that is not in classpath.
- * Class and its arguments should have fully qualified names.
- */
-public class IgniteLinkTaglet implements Taglet {
- /** */
- private static final String NAME = "ignitelink";
-
- /** */
- private DocletEnvironment env;
-
- /** {@inheritDoc} */
- @Override public void init(DocletEnvironment env, Doclet doclet) {
- this.env = env;
- }
-
- /**
- * Return the name of this custom tag.
- */
- @Override public String getName() {
- return NAME;
- }
-
- /** {@inheritDoc} */
- @Override public Set<Location> getAllowedLocations() {
- return new HashSet<>();
- }
-
- /**
- * Will return true since this is an inline tag.
- *
- * @return true since this is an inline tag.
- */
- @Override public boolean isInlineTag() {
- return true;
- }
-
- /**
- * Given the <code>DocTree</code> representation of this custom tag,
return its string representation.
- * <p>
- * Input:
org.apache.ignite.grid.spi.indexing.h2.GridH2IndexingSpi#setIndexCustomFunctionClasses(Class[])
- * <p>
- * Output: <a
href="../../../../../org/apache/ignite/grid/spi/indexing/h2/GridH2IndexingSpi.html#
- * setIndexCustomFunctionClasses(java.lang.Class...)">
- *
<code>GridH2IndexingSpi.setIndexCustomFunctionClasses(java.lang.Class[])</code></a>
- *
- * @param tags <code>DocTree</code> representation of this custom tag.
- * @param element The element to which the enclosing comment belongs.
- */
- @Override public String toString(List<? extends DocTree> tags, Element
element) {
- for (DocTree tag : tags) {
- String text = new SimpleDocTreeVisitor<String, Void>() {
- @Override public String
visitUnknownInlineTag(UnknownInlineTagTree node, Void param) {
- return node.getContent().toString();
- }
- }.visit(tag, null);
-
- if (text == null || text.isEmpty())
- return "";
-
- File f = new
File(env.getDocTrees().getPath(element).getCompilationUnit().getSourceFile().toUri());
-
- String curCls = f == null ? "" :
f.getAbsolutePath().replace(File.separator, ".");
-
- String packPref = "src.main.java.";
-
- int idx = curCls.indexOf(packPref);
-
- StringBuilder path = new StringBuilder();
-
- if (idx != -1) {
- curCls = curCls.substring(idx + packPref.length());
-
- for (int i = 0, n = curCls.split("\\.").length - 2; i < n; i++)
- path.append("../");
- }
-
- String[] tokens = text.split("#");
-
- int lastIdx = tokens[0].lastIndexOf('.');
-
- String simpleClsName = lastIdx != -1 && lastIdx + 1 <
tokens[0].length() ?
- tokens[0].substring(lastIdx + 1) : tokens[0];
-
- String fullyQClsName = tokens[0].replace(".", "/");
-
- return "<a href=\"" + path + fullyQClsName + ".html" +
- (tokens.length > 1 ? ("#" + tokens[1].replace("[]", "...")) :
"") +
- "\"><code>" + simpleClsName + (tokens.length > 1 ? ("." +
tokens[1]) : "") + "</code></a>";
- }
-
- return "";
- }
-}
diff --git
a/modules/unsafe/src/main/java/org/apache/ignite/internal/util/FeatureChecker.java
b/modules/unsafe/src/main/java/org/apache/ignite/internal/util/FeatureChecker.java
index 1c8e9f784fe..d09bac8a069 100644
---
a/modules/unsafe/src/main/java/org/apache/ignite/internal/util/FeatureChecker.java
+++
b/modules/unsafe/src/main/java/org/apache/ignite/internal/util/FeatureChecker.java
@@ -21,19 +21,8 @@ package org.apache.ignite.internal.util;
* initialization effects.
*/
class FeatureChecker {
- /** Required Options to Run on Java 11. */
- public static final String JAVA_11_OPTIONS =
"--add-exports=java.base/jdk.internal.misc=ALL-UNNAMED\n" +
- "--add-exports=java.base/sun.nio.ch=ALL-UNNAMED\n" +
- "--add-exports=java.management/com.sun.jmx.mbeanserver=ALL-UNNAMED\n" +
- "--add-exports=jdk.internal.jvmstat/sun.jvmstat.monitor=ALL-UNNAMED\n"
+
-
"--add-exports=java.base/sun.reflect.generics.reflectiveObjects=ALL-UNNAMED\n" +
- "--add-opens=jdk.management/com.sun.management.internal=ALL-UNNAMED\n"
+
- "--add-opens=java.base/jdk.internal.access=ALL-UNNAMED\n" +
- "--add-opens=java.base/jdk.internal.loader=ALL-UNNAMED\n" +
- "--illegal-access=permit";
-
- /** Required Options to Run on Java 15 and higher. */
- public static final String JAVA_15_OPTIONS =
+ /** Required Options to Run on Java 17 and higher. */
+ public static final String JAVA_17_OPTIONS =
"--add-opens=java.base/jdk.internal.access=ALL-UNNAMED\n" +
"--add-opens=java.base/jdk.internal.misc=ALL-UNNAMED\n" +
"--add-opens=java.base/sun.nio.ch=ALL-UNNAMED\n" +
@@ -45,7 +34,7 @@ class FeatureChecker {
"--add-opens=java.base/java.io=ALL-UNNAMED\n" +
"--add-opens=java.base/java.nio=ALL-UNNAMED\n" +
"--add-opens=java.base/java.util=ALL-UNNAMED\n" +
- "--add-opens=java.base/java.net=ALL-UNNAMED\"" +
+ "--add-opens=java.base/java.net=ALL-UNNAMED\n" +
"--add-opens=java.base/java.util.concurrent=ALL-UNNAMED\n" +
"--add-opens=java.base/java.util.concurrent.locks=ALL-UNNAMED\n" +
"--add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED\n" +
@@ -57,7 +46,7 @@ class FeatureChecker {
/** Java version specific warning to be added in case access failed */
public static final String JAVA_VER_SPECIFIC_WARN =
"\nPlease add the following parameters to JVM startup settings and
restart the application: {parameters: " +
- JAVA_11_OPTIONS +
+ JAVA_17_OPTIONS +
"\n}" +
- "\nSee
https://ignite.apache.org/docs/latest/quick-start/java#running-ignite-with-java-11-or-later
for more information.";
+ "\nSee
https://ignite.apache.org/docs/latest/quick-start/java#running-ignite-with-java-17-or-later
for more information.";
}
diff --git a/packaging/deb/control b/packaging/deb/control
index 0201cd36358..9ab50eb31fc 100644
--- a/packaging/deb/control
+++ b/packaging/deb/control
@@ -8,7 +8,7 @@ Package: apache-ignite
Architecture: all
Section: misc
Priority: optional
-Depends: openjdk-11-jdk | default-jdk | java-sdk, systemd, passwd
+Depends: openjdk-17-jdk | default-jdk | java-sdk, systemd, passwd
Description: Apache Ignite In-Memory Computing, Database and Caching Platform
Ignite™ is a memory-centric distributed database, caching, and processing
platform for transactional, analytical, and streaming workloads, delivering
diff --git a/packaging/rpm/apache-ignite.spec b/packaging/rpm/apache-ignite.spec
index a7367c663f7..57a2e56bad5 100644
--- a/packaging/rpm/apache-ignite.spec
+++ b/packaging/rpm/apache-ignite.spec
@@ -19,7 +19,7 @@ Group: Development/System
License: ASF 2.0
URL: https://ignite.apache.org/
Source: %{name}-%{version}-bin.zip
-Requires: java-11, chkconfig
+Requires: java-17, chkconfig
Requires(pre): shadow-utils
Provides: %{name}
AutoReq: no
diff --git a/parent/pom.xml b/parent/pom.xml
index a0c3020b238..c6853896d2d 100644
--- a/parent/pom.xml
+++ b/parent/pom.xml
@@ -46,8 +46,8 @@
<packaging>pom</packaging>
<properties>
- <maven.compiler.source>11</maven.compiler.source>
- <maven.compiler.target>11</maven.compiler.target>
+ <maven.compiler.source>17</maven.compiler.source>
+ <maven.compiler.target>17</maven.compiler.target>
<revision>2.19.0-SNAPSHOT</revision>
<!-- Ignite version will be substituted with the flatten-maven-plugin
and used as
@@ -303,7 +303,7 @@
<use>true</use>
<author>false</author>
<version>false</version>
- <additionalOptions>${javadoc.opts}</additionalOptions>
+ <additionalOptions>${javadoc.opts}
--add-exports=java.base/sun.nio.ch=ALL-UNNAMED
--add-exports=java.management/com.sun.jmx.mbeanserver=ALL-UNNAMED</additionalOptions>
<bottom>
<![CDATA[
<table width="100%" border="0"
cellspacing=0 cellpadding=0 style="padding: 5px">
@@ -536,6 +536,40 @@
</pluginManagement>
<plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <version>${maven.compiler.plugin.version}</version>
+ <configuration>
+ <compilerArgs>
+ <arg>--add-exports</arg>
+ <arg>java.base/jdk.internal.misc=ALL-UNNAMED</arg>
+ <arg>--add-exports</arg>
+ <arg>java.base/jdk.internal.loader=ALL-UNNAMED</arg>
+ <arg>--add-exports</arg>
+ <arg>java.base/sun.nio.ch=ALL-UNNAMED</arg>
+ <arg>--add-exports</arg>
+ <arg>java.base/sun.net.util=ALL-UNNAMED</arg>
+ <arg>--add-exports</arg>
+
<arg>java.management/com.sun.jmx.mbeanserver=ALL-UNNAMED</arg>
+ <arg>--add-exports</arg>
+
<arg>jdk.internal.jvmstat/sun.jvmstat.monitor=ALL-UNNAMED</arg>
+ <arg>--add-exports</arg>
+ <arg>java.base/java.io=ALL-UNNAMED</arg>
+ <arg>--add-exports</arg>
+ <arg>java.base/java.nio=ALL-UNNAMED</arg>
+ <arg>--add-exports</arg>
+ <arg>java.base/java.util=ALL-UNNAMED</arg>
+ <arg>--add-exports</arg>
+ <arg>java.base/java.lang=ALL-UNNAMED</arg>
+ <arg>--add-exports</arg>
+ <arg>java.base/java.lang.invoke=ALL-UNNAMED</arg>
+ <arg>--add-exports</arg>
+ <arg>java.sql/java.sql=ALL-UNNAMED</arg>
+ </compilerArgs>
+ </configuration>
+ </plugin>
+
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
@@ -553,6 +587,44 @@
<!-- Check all classes that may have any test. -->
<include>**/*.java</include>
</includes>
+ <argLine>
+ --add-opens=java.base/jdk.internal.access=ALL-UNNAMED
+ --add-opens=java.base/jdk.internal.loader=ALL-UNNAMED
+ --add-opens=java.base/jdk.internal.misc=ALL-UNNAMED
+ --add-opens=java.base/sun.net.util=ALL-UNNAMED
+ --add-opens=java.base/sun.nio.ch=ALL-UNNAMED
+ --add-opens=java.base/sun.nio.fs=ALL-UNNAMED
+ --add-opens=java.base/sun.util.calendar=ALL-UNNAMED
+
--add-opens=java.management/com.sun.jmx.mbeanserver=ALL-UNNAMED
+
--add-opens=jdk.internal.jvmstat/sun.jvmstat.monitor=ALL-UNNAMED
+
--add-opens=java.base/sun.reflect.generics.reflectiveObjects=ALL-UNNAMED
+
--add-opens=jdk.management/com.sun.management.internal=ALL-UNNAMED
+ --add-opens=java.base/java.io=ALL-UNNAMED
+ --add-opens=java.base/java.nio=ALL-UNNAMED
+ --add-opens=java.base/java.net=ALL-UNNAMED
+ --add-opens=java.base/java.util=ALL-UNNAMED
+ --add-opens=java.base/java.util.concurrent=ALL-UNNAMED
+
--add-opens=java.base/java.util.concurrent.locks=ALL-UNNAMED
+
--add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED
+ --add-opens=java.base/java.lang=ALL-UNNAMED
+ --add-opens=java.base/java.lang.invoke=ALL-UNNAMED
+ --add-opens=java.base/java.math=ALL-UNNAMED
+ --add-opens=java.sql/java.sql=ALL-UNNAMED
+ --add-opens=java.base/java.lang.reflect=ALL-UNNAMED
+ --add-opens=java.base/java.time=ALL-UNNAMED
+ --add-opens=java.base/java.text=ALL-UNNAMED
+ --add-opens=java.base/java.security=ALL-UNNAMED
+ --add-opens=java.logging/java.util.logging=ALL-UNNAMED
+ --add-opens=java.management/sun.management=ALL-UNNAMED
+ --add-opens=java.desktop/java.awt.font=ALL-UNNAMED
+
--add-opens=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED
+
--add-opens=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED
+
--add-opens=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED
+
--add-opens=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED
+
--add-opens=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED
+
--add-opens=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED
+ --add-opens=java.base/java.util.regex=ALL-UNNAMED
+ </argLine>
</configuration>
</plugin>
@@ -682,7 +754,7 @@
<phase>validate</phase>
<configuration>
<name>ignite.buildNumber</name>
- <!-- See:
https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/text/SimpleDateFormat.html
-->
+ <!-- See:
https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/text/SimpleDateFormat.html
-->
<pattern>yywwu</pattern>
<locale>en_US</locale>
</configuration>
@@ -902,194 +974,6 @@
</build>
</profile>
- <profile>
- <id>java-11+</id>
- <activation>
- <jdk>[11,15)</jdk>
- </activation>
- <properties>
- <maven.compiler.source>11</maven.compiler.source>
- <maven.compiler.target>11</maven.compiler.target>
- </properties>
- <dependencies/>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <version>${maven.compiler.plugin.version}</version>
- <configuration>
- <compilerArgs>
-
<arg>--add-exports=java.base/jdk.internal.misc=ALL-UNNAMED</arg>
-
<arg>--add-exports=java.base/sun.nio.ch=ALL-UNNAMED</arg>
-
<arg>--add-exports=java.management/com.sun.jmx.mbeanserver=ALL-UNNAMED</arg>
-
<arg>--add-exports=jdk.internal.jvmstat/sun.jvmstat.monitor=ALL-UNNAMED</arg>
-
<arg>--add-exports=java.base/sun.net.util=ALL-UNNAMED</arg>
- </compilerArgs>
- </configuration>
- </plugin>
-
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <argLine>
-
--add-exports=java.base/jdk.internal.misc=ALL-UNNAMED
- --add-exports=java.base/sun.nio.ch=ALL-UNNAMED
-
--add-exports=java.base/jdk.internal.loader=ALL-UNNAMED
-
--add-exports=java.management/com.sun.jmx.mbeanserver=ALL-UNNAMED
-
--add-exports=jdk.internal.jvmstat/sun.jvmstat.monitor=ALL-UNNAMED
-
--add-exports=java.base/sun.reflect.generics.reflectiveObjects=ALL-UNNAMED
-
--add-opens=jdk.management/com.sun.management.internal=ALL-UNNAMED
-
--add-opens=java.base/jdk.internal.access=ALL-UNNAMED
-
--add-opens=java.base/jdk.internal.loader=ALL-UNNAMED
- --illegal-access=permit
- </argLine>
- </configuration>
- </plugin>
-
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-javadoc-plugin</artifactId>
- <configuration>
- <additionalOptions>${javadoc.opts}
--add-exports=java.base/sun.nio.ch=ALL-UNNAMED
--add-exports=java.management/com.sun.jmx.mbeanserver=ALL-UNNAMED</additionalOptions>
- </configuration>
- </plugin>
- </plugins>
- </build>
-
- <dependencyManagement>
- <dependencies>
- <dependency>
- <groupId>org.apache.hadoop</groupId>
- <artifactId>hadoop-common</artifactId>
- <exclusions>
- <exclusion>
- <!-- This dependency is not available with
java 9.-->
- <groupId>jdk.tools</groupId>
- <artifactId>jdk.tools</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
- <dependency>
- <groupId>org.apache.hadoop</groupId>
- <artifactId>hadoop-common</artifactId>
- <type>test-jar</type>
- <exclusions>
- <exclusion>
- <!-- This dependency is not available with
java 9.-->
- <groupId>jdk.tools</groupId>
- <artifactId>jdk.tools</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
- </dependencies>
- </dependencyManagement>
-
- </profile>
-
- <profile>
- <id>java-15+</id>
- <activation>
- <jdk>[15,)</jdk>
- </activation>
- <properties>
- <maven.compiler.source>11</maven.compiler.source>
- <maven.compiler.target>15</maven.compiler.target>
- </properties>
- <dependencies/>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <version>${maven.compiler.plugin.version}</version>
- <configuration>
- <compilerArgs>
- <arg>--add-exports</arg>
-
<arg>java.base/jdk.internal.misc=ALL-UNNAMED</arg>
- <arg>--add-exports</arg>
-
<arg>java.base/jdk.internal.loader=ALL-UNNAMED</arg>
- <arg>--add-exports</arg>
- <arg>java.base/sun.nio.ch=ALL-UNNAMED</arg>
- <arg>--add-exports</arg>
- <arg>java.base/sun.net.util=ALL-UNNAMED</arg>
- <arg>--add-exports</arg>
-
<arg>java.management/com.sun.jmx.mbeanserver=ALL-UNNAMED</arg>
- <arg>--add-exports</arg>
-
<arg>jdk.internal.jvmstat/sun.jvmstat.monitor=ALL-UNNAMED</arg>
- <arg>--add-exports</arg>
- <arg>java.base/java.io=ALL-UNNAMED</arg>
- <arg>--add-exports</arg>
- <arg>java.base/java.nio=ALL-UNNAMED</arg>
- <arg>--add-exports</arg>
- <arg>java.base/java.util=ALL-UNNAMED</arg>
- <arg>--add-exports</arg>
- <arg>java.base/java.lang=ALL-UNNAMED</arg>
- <arg>--add-exports</arg>
-
<arg>java.base/java.lang.invoke=ALL-UNNAMED</arg>
- <arg>--add-exports</arg>
- <arg>java.sql/java.sql=ALL-UNNAMED</arg>
- </compilerArgs>
- </configuration>
- </plugin>
-
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <argLine>
-
--add-opens=java.base/jdk.internal.access=ALL-UNNAMED
-
--add-opens=java.base/jdk.internal.loader=ALL-UNNAMED
-
--add-opens=java.base/jdk.internal.misc=ALL-UNNAMED
- --add-opens=java.base/sun.net.util=ALL-UNNAMED
- --add-opens=java.base/sun.nio.ch=ALL-UNNAMED
- --add-opens=java.base/sun.nio.fs=ALL-UNNAMED
-
--add-opens=java.base/sun.util.calendar=ALL-UNNAMED
-
--add-opens=java.management/com.sun.jmx.mbeanserver=ALL-UNNAMED
-
--add-opens=jdk.internal.jvmstat/sun.jvmstat.monitor=ALL-UNNAMED
-
--add-opens=java.base/sun.reflect.generics.reflectiveObjects=ALL-UNNAMED
-
--add-opens=jdk.management/com.sun.management.internal=ALL-UNNAMED
- --add-opens=java.base/java.io=ALL-UNNAMED
- --add-opens=java.base/java.nio=ALL-UNNAMED
- --add-opens=java.base/java.net=ALL-UNNAMED
- --add-opens=java.base/java.util=ALL-UNNAMED
-
--add-opens=java.base/java.util.concurrent=ALL-UNNAMED
-
--add-opens=java.base/java.util.concurrent.locks=ALL-UNNAMED
-
--add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED
- --add-opens=java.base/java.lang=ALL-UNNAMED
-
--add-opens=java.base/java.lang.invoke=ALL-UNNAMED
- --add-opens=java.base/java.math=ALL-UNNAMED
- --add-opens=java.sql/java.sql=ALL-UNNAMED
-
--add-opens=java.base/java.lang.reflect=ALL-UNNAMED
- --add-opens=java.base/java.time=ALL-UNNAMED
- --add-opens=java.base/java.text=ALL-UNNAMED
- --add-opens=java.base/java.security=ALL-UNNAMED
-
--add-opens=java.logging/java.util.logging=ALL-UNNAMED
-
--add-opens=java.management/sun.management=ALL-UNNAMED
-
--add-opens=java.desktop/java.awt.font=ALL-UNNAMED
-
--add-opens=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED
-
--add-opens=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED
-
--add-opens=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED
-
--add-opens=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED
-
--add-opens=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED
-
--add-opens=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED
-
--add-opens=java.base/java.util.regex=ALL-UNNAMED
- </argLine>
- </configuration>
- </plugin>
-
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-javadoc-plugin</artifactId>
- <configuration>
- <additionalOptions>${javadoc.opts}
--add-exports=java.base/sun.nio.ch=ALL-UNNAMED
--add-exports=java.management/com.sun.jmx.mbeanserver=ALL-UNNAMED</additionalOptions>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </profile>
-
<profile>
<id>tools.jar-default</id>
<activation>