From e03b19684dc6c3e0066ea5b1a8d2a5e0808e63e5 Mon Sep 17 00:00:00 2001 From: lilgreenbird Date: Mon, 23 Sep 2024 14:49:17 -0700 Subject: [PATCH] jdk 23 (#2515) --- README.md | 4 ++-- build.gradle | 8 ++++---- pom.xml | 8 ++++---- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 687962432..7423adff1 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,7 @@ To build the jar files, you must use minimum version of Java 11 with Maven. You * Maven: 1. If you have not already done so, add the environment variable `mssql_jdbc_test_connection_properties` in your system with the connection properties for your SQL Server or SQL DB instance. 2. Run one of the commands below to build a JRE 11 and newer versions compatible jar or JRE 8 compatible jar in the `\target` directory. - * Run `mvn install -Pjre22`. This creates JRE 22 compatible jar in `\target` directory which is JDBC 4.3 compliant (Build with JDK 22). + * Run `mvn install -Pjre23`. This creates JRE 23 compatible jar in `\target` directory which is JDBC 4.3 compliant (Build with JDK 23). * Run `mvn install -Pjre21`. This creates JRE 21 compatible jar in `\target` directory which is JDBC 4.3 compliant (Build with JDK 21+). * Run `mvn install -Pjre17`. This creates JRE 17 compatible jar in `\target` directory which is JDBC 4.3 compliant (Build with JDK 17+). * Run `mvn install -Pjre11`. This creates JRE 11 compatible jar in `\target` directory which is JDBC 4.3 compliant (Build with JDK 11+). @@ -55,7 +55,7 @@ To build the jar files, you must use minimum version of Java 11 with Maven. You * Gradle: 1. If you have not already done so, add the environment variable `mssql_jdbc_test_connection_properties` in your system with the connection properties for your SQL Server or SQL DB instance. 2. Run one of the commands below to build a JRE 11 and newer versions compatible jar or JRE 8 compatible jar in the `\build\libs` directory. - * Run `gradle build -PbuildProfile=jre22`. This creates JRE 22 compatible jar in `\build\libs` directory which is JDBC 4.3 compliant (Build with JDK 22). + * Run `gradle build -PbuildProfile=jre23`. This creates JRE 23 compatible jar in `\build\libs` directory which is JDBC 4.3 compliant (Build with JDK 23). * Run `gradle build -PbuildProfile=jre21`. This creates JRE 21 compatible jar in `\build\libs` directory which is JDBC 4.3 compliant (Build with JDK 21+). * Run `gradle build -PbuildProfile=jre17`. This creates JRE 17 compatible jar in `\build\libs` directory which is JDBC 4.3 compliant (Build with JDK 17+). * Run `gradle build -PbuildProfile=jre11`. This creates JRE 11 compatible jar in `\build\libs` directory which is JDBC 4.3 compliant (Build with JDK 11+). diff --git a/build.gradle b/build.gradle index 5ee38e905..3e5d87a9e 100644 --- a/build.gradle +++ b/build.gradle @@ -33,17 +33,17 @@ test { } } -if (!hasProperty('buildProfile') || (hasProperty('buildProfile') && buildProfile == "jre22")) { +if (!hasProperty('buildProfile') || (hasProperty('buildProfile') && buildProfile == "jre23")) { - jreVersion = "jre22" + jreVersion = "jre23" excludedFile = 'com/microsoft/sqlserver/jdbc/SQLServerJdbc42.java' jar { manifest { attributes 'Automatic-Module-Name': 'com.microsoft.sqlserver.jdbc' } } - sourceCompatibility = 22 - targetCompatibility = 22 + sourceCompatibility = 23 + targetCompatibility = 23 } if (hasProperty('buildProfile') && buildProfile == "jre21") { diff --git a/pom.xml b/pom.xml index 32fe5f812..026144f46 100644 --- a/pom.xml +++ b/pom.xml @@ -403,12 +403,12 @@ - jre22 + jre23 true - ${project.artifactId}-${project.version}.jre22${releaseExt} + ${project.artifactId}-${project.version}.jre23${releaseExt} org.apache.maven.plugins @@ -418,8 +418,8 @@ **/com/microsoft/sqlserver/jdbc/SQLServerJdbc42.java - 22 - 22 + 23 + 23