Skip to content

Commit e03b196

Browse files
authored
jdk 23 (#2515)
1 parent 4ec4d3b commit e03b196

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ To build the jar files, you must use minimum version of Java 11 with Maven. You
4646
* Maven:
4747
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.
4848
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.
49-
* Run `mvn install -Pjre22`. This creates JRE 22 compatible jar in `\target` directory which is JDBC 4.3 compliant (Build with JDK 22).
49+
* Run `mvn install -Pjre23`. This creates JRE 23 compatible jar in `\target` directory which is JDBC 4.3 compliant (Build with JDK 23).
5050
* Run `mvn install -Pjre21`. This creates JRE 21 compatible jar in `\target` directory which is JDBC 4.3 compliant (Build with JDK 21+).
5151
* Run `mvn install -Pjre17`. This creates JRE 17 compatible jar in `\target` directory which is JDBC 4.3 compliant (Build with JDK 17+).
5252
* 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
5555
* Gradle:
5656
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.
5757
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.
58-
* 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).
58+
* 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).
5959
* 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+).
6060
* 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+).
6161
* 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+).

build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,17 +33,17 @@ test {
3333
}
3434
}
3535

36-
if (!hasProperty('buildProfile') || (hasProperty('buildProfile') && buildProfile == "jre22")) {
36+
if (!hasProperty('buildProfile') || (hasProperty('buildProfile') && buildProfile == "jre23")) {
3737

38-
jreVersion = "jre22"
38+
jreVersion = "jre23"
3939
excludedFile = 'com/microsoft/sqlserver/jdbc/SQLServerJdbc42.java'
4040
jar {
4141
manifest {
4242
attributes 'Automatic-Module-Name': 'com.microsoft.sqlserver.jdbc'
4343
}
4444
}
45-
sourceCompatibility = 22
46-
targetCompatibility = 22
45+
sourceCompatibility = 23
46+
targetCompatibility = 23
4747
}
4848

4949
if (hasProperty('buildProfile') && buildProfile == "jre21") {

pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -403,12 +403,12 @@
403403
</build>
404404
</profile>
405405
<profile>
406-
<id>jre22</id>
406+
<id>jre23</id>
407407
<activation>
408408
<activeByDefault>true</activeByDefault>
409409
</activation>
410410
<build>
411-
<finalName>${project.artifactId}-${project.version}.jre22${releaseExt}</finalName>
411+
<finalName>${project.artifactId}-${project.version}.jre23${releaseExt}</finalName>
412412
<plugins>
413413
<plugin>
414414
<groupId>org.apache.maven.plugins</groupId>
@@ -418,8 +418,8 @@
418418
<excludes>
419419
<exclude>**/com/microsoft/sqlserver/jdbc/SQLServerJdbc42.java</exclude>
420420
</excludes>
421-
<source>22</source>
422-
<target>22</target>
421+
<source>23</source>
422+
<target>23</target>
423423
</configuration>
424424
</plugin>
425425
<plugin>

0 commit comments

Comments
 (0)