Skip to content

Commit 1a8b619

Browse files
author
Hyunsik Kang
authored
Merge pull request #59 from cj848/feature/support-boot-2.7.0
Support Spring Boot 2.7.0
2 parents d395503 + 26bed47 commit 1a8b619

File tree

29 files changed

+534
-34
lines changed

29 files changed

+534
-34
lines changed

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ plugins {
1313

1414
allprojects {
1515
group = "com.linecorp.kotlin-jdsl"
16-
version = "2.0.2.RELEASE"
16+
version = "2.0.3.RELEASE"
1717

1818
repositories {
1919
mavenCentral()

buildSrc/src/main/kotlin/Dependencies.kt

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ import org.gradle.api.artifacts.dsl.DependencyHandler
44

55
object Dependencies {
66
const val kotlinVersion = "1.6.21"
7-
const val springCoreVersion = "5.3.19"
8-
const val springBootVersion = "2.6.7"
9-
const val springDataJpaVersion = "2.6.4"
7+
const val springCoreVersion = "5.3.20"
8+
const val springBootVersion = "2.7.0"
9+
const val springDataJpaVersion = "2.7.0"
1010
const val coroutineVersion = "1.6.1"
1111

1212
// kotlin
@@ -17,12 +17,12 @@ object Dependencies {
1717
const val javaPersistenceApi = "javax.persistence:javax.persistence-api:2.2"
1818
const val slf4j = "org.slf4j:slf4j-api:1.7.36"
1919
const val logback = "ch.qos.logback:logback-classic:1.2.11"
20-
const val hibernate = "org.hibernate:hibernate-core:5.6.8.Final"
21-
const val hibernateReactive = "org.hibernate.reactive:hibernate-reactive-core:1.1.4.Final"
20+
const val hibernate = "org.hibernate:hibernate-core:5.6.9.Final"
21+
const val hibernateReactive = "org.hibernate.reactive:hibernate-reactive-core:1.1.6.Final"
2222
const val eclipselink = "org.eclipse.persistence:org.eclipse.persistence.jpa:2.7.10"
2323
const val jacksonKotlinModule = "com.fasterxml.jackson.module:jackson-module-kotlin"
24-
const val agroalPool = "io.agroal:agroal-pool:1.14"
25-
const val vertxJdbcClient = "io.vertx:vertx-jdbc-client:4.2.7"
24+
const val agroalPool = "io.agroal:agroal-pool:2.0"
25+
const val vertxJdbcClient = "io.vertx:vertx-jdbc-client:4.3.1"
2626
const val coroutineJdk8 = "org.jetbrains.kotlinx:kotlinx-coroutines-jdk8:$coroutineVersion"
2727
const val coroutineReactor = "org.jetbrains.kotlinx:kotlinx-coroutines-reactor:$coroutineVersion"
2828

@@ -42,16 +42,16 @@ object Dependencies {
4242
const val springCore = "org.springframework:spring-core:${springCoreVersion}"
4343
const val springBeans = "org.springframework:spring-beans:${springCoreVersion}"
4444
const val springJpa = "org.springframework.data:spring-data-jpa:${springDataJpaVersion}"
45-
const val springBatchInfrastructure = "org.springframework.batch:spring-batch-infrastructure:4.3.5"
45+
const val springBatchInfrastructure = "org.springframework.batch:spring-batch-infrastructure:4.3.6"
4646

4747
// Test
4848
const val junit = "org.junit.jupiter:junit-jupiter:5.8.2"
4949
const val assertJ = "org.assertj:assertj-core:3.22.0"
50-
const val mockk = "io.mockk:mockk:1.12.3"
50+
const val mockk = "io.mockk:mockk:1.12.4"
5151

52-
const val h2 = "com.h2database:h2:1.4.200"
52+
const val h2 = "com.h2database:h2:2.1.212"
5353

54-
const val mutinyVersion = "1.4.0"
54+
const val mutinyVersion = "1.5.0"
5555
const val mutinyCore = "io.smallrye.reactive:mutiny:$mutinyVersion"
5656
const val mutinyKotlin = "io.smallrye.reactive:mutiny-kotlin:$mutinyVersion"
5757
val mutiny = listOf(mutinyCore, mutinyKotlin)

eclipselink/src/test/resources/META-INF/persistence.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,13 @@
2626
<properties>
2727
<property name="eclipselink.logging.level" value="INFO" />
2828
<property name="eclipselink.logging.level.sql" value="FINE" />
29-
<property name="javax.persistence.jdbc.url" value="jdbc:h2:mem:test;MODE=MYSQL"/>
29+
<property name="javax.persistence.jdbc.url" value="jdbc:h2:mem:test;MODE=MYSQL;DATABASE_TO_LOWER=TRUE"/>
3030
<property name="javax.persistence.jdbc.user" value="sa"/>
3131
<property name="javax.persistence.jdbc.password" value=""/>
3232
<property name="javax.persistence.jdbc.driver" value="org.h2.Driver"/>
3333
<property name="javax.persistence.schema-generation.database.action" value="drop-and-create"/>
34+
<property name="eclipselink.target-database" value="org.eclipse.persistence.platform.database.MySQLPlatform"/>
35+
<property name="eclipselink.target-database-properties" value="shouldBindLiterals=false"/>
3436
</properties>
3537
</persistence-unit>
3638

examples/eclipselink/src/main/resources/META-INF/persistence.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<class>com.linecorp.kotlinjdsl.eclipselink.example.entity.Book</class>
99

1010
<properties>
11-
<property name="javax.persistence.jdbc.url" value="jdbc:h2:mem:test;MODE=MYSQL"/>
11+
<property name="javax.persistence.jdbc.url" value="jdbc:h2:mem:test;MODE=MYSQL;DATABASE_TO_LOWER=TRUE"/>
1212
<property name="javax.persistence.jdbc.user" value="sa"/>
1313
<property name="javax.persistence.jdbc.password" value=""/>
1414
<property name="javax.persistence.jdbc.driver" value="org.h2.Driver"/>

examples/hibernate/src/main/resources/META-INF/persistence.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<class>com.linecorp.kotlinjdsl.hibernate.example.entity.Book</class>
99

1010
<properties>
11-
<property name="javax.persistence.jdbc.url" value="jdbc:h2:mem:test;MODE=MYSQL"/>
11+
<property name="javax.persistence.jdbc.url" value="jdbc:h2:mem:test;MODE=MYSQL;DATABASE_TO_LOWER=TRUE"/>
1212
<property name="javax.persistence.jdbc.user" value="sa"/>
1313
<property name="javax.persistence.jdbc.password" value=""/>
1414
<property name="javax.persistence.jdbc.driver" value="org.h2.Driver"/>

examples/spring-boot-2.3/src/main/resources/application.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
spring:
22
datasource:
33
driver-class-name: org.h2.Driver
4-
url: jdbc:h2:mem:test;MODE=MYSQL
4+
url: jdbc:h2:mem:test;MODE=MYSQL;DATABASE_TO_LOWER=TRUE
55
username: sa
66
password: password
77

examples/spring-boot-2.4/src/main/resources/application.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
spring:
22
datasource:
33
driver-class-name: org.h2.Driver
4-
url: jdbc:h2:mem:test;MODE=MYSQL
4+
url: jdbc:h2:mem:test;MODE=MYSQL;DATABASE_TO_LOWER=TRUE
55
username: sa
66
password: password
77

examples/spring-boot-2.5/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
plugins {
2-
id("org.springframework.boot") version "2.5.8"
2+
id("org.springframework.boot") version "2.5.14"
33
kotlin("plugin.spring")
44
kotlin("plugin.jpa")
55
}
@@ -24,7 +24,7 @@ dependencies {
2424
implementation("org.springframework.boot:spring-boot-starter-data-jpa")
2525
implementation(Dependencies.jacksonKotlinModule)
2626
implementation(Dependencies.h2)
27-
implementation(platform("org.springframework.boot:spring-boot-dependencies:2.5.8"))
27+
implementation(platform("org.springframework.boot:spring-boot-dependencies:2.5.14"))
2828

2929
testImplementation("org.springframework.boot:spring-boot-starter-test")
3030
}

examples/spring-boot-2.5/src/main/resources/application.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
spring:
22
datasource:
33
driver-class-name: org.h2.Driver
4-
url: jdbc:h2:mem:test;MODE=MYSQL
4+
url: jdbc:h2:mem:test;MODE=MYSQL;DATABASE_TO_LOWER=TRUE
55
username: sa
66
password: password
77

examples/spring-boot-2.6/build.gradle.kts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
plugins {
2-
id("org.springframework.boot") version Dependencies.springBootVersion
2+
id("org.springframework.boot") version "2.6.8"
33
kotlin("plugin.spring")
44
kotlin("plugin.jpa")
55
}
@@ -16,11 +16,11 @@ dependencies {
1616
// implementation("com.linecorp.kotlin-jdsl:spring-data-kotlin-jdsl-starter:x.y.z")
1717
implementation(Modules.springDataStarter)
1818

19-
implementation(Dependencies.springBootWeb)
20-
implementation(Dependencies.springBootJpa)
19+
implementation("org.springframework.boot:spring-boot-starter-web")
20+
implementation("org.springframework.boot:spring-boot-starter-data-jpa")
2121
implementation(Dependencies.jacksonKotlinModule)
2222
implementation(Dependencies.h2)
23-
implementation(platform(Dependencies.springBootBom))
23+
implementation(platform("org.springframework.boot:spring-boot-dependencies:2.6.8"))
2424

25-
testImplementation(Dependencies.springBootTest)
25+
testImplementation("org.springframework.boot:spring-boot-starter-test")
2626
}

0 commit comments

Comments
 (0)