diff --git a/README.md b/README.md index 4f3f01687..5142d26ce 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 -Pjre21`. This creates JRE 21 compatible jar in `\target` directory which is JDBC 4.3 compliant (Build with JDK 21). + * 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 -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+). * Run `mvn install -Pjre8`. This creates JRE 8 compatible jar in `\target` directory which is JDBC 4.2 compliant (Build with JDK 11+). @@ -54,7 +54,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=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=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=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+). * Run `gradle build -PbuildProfile=jre8`. This creates JRE 8 compatible jar in `\build\libs` directory which is JDBC 4.2 compliant (Build with JDK 11+). diff --git a/build.gradle b/build.gradle index f862b13d4..f7d7bbcd8 100644 --- a/build.gradle +++ b/build.gradle @@ -33,17 +33,17 @@ test { } } -if (!hasProperty('buildProfile') || (hasProperty('buildProfile') && buildProfile == "jre21")) { +if (!hasProperty('buildProfile') || (hasProperty('buildProfile') && buildProfile == "jre22")) { - jreVersion = "jre21" + jreVersion = "jre22" excludedFile = 'com/microsoft/sqlserver/jdbc/SQLServerJdbc42.java' jar { manifest { attributes 'Automatic-Module-Name': 'com.microsoft.sqlserver.jdbc' } } - sourceCompatibility = 21 - targetCompatibility = 21 + sourceCompatibility = 22 + targetCompatibility = 22 } if (hasProperty('buildProfile') && buildProfile == "jre17") { diff --git a/pom.xml b/pom.xml index 4db973b56..46395c9a7 100644 --- a/pom.xml +++ b/pom.xml @@ -346,12 +346,12 @@ - jre21 + jre22 true - ${project.artifactId}-${project.version}.jre21${releaseExt} + ${project.artifactId}-${project.version}.jre22${releaseExt} org.apache.maven.plugins @@ -361,8 +361,8 @@ **/com/microsoft/sqlserver/jdbc/SQLServerJdbc42.java - 21 - 21 + 22 + 22 @@ -522,7 +522,7 @@ org.jacoco jacoco-maven-plugin - 0.8.9 + 0.8.12 pre-test