Skip to content

Commit 641b0f0

Browse files
committed
Align Kotlin dependency on Spring Framework 5.3.x
Prior to this commit, spring-graphql would depend on Kotlin 1.6, which is not in line with Spring Framework 5.3.x requirements. This commit realigns our dependency management on Kotlin 1.5.x. Also, this commit configures the build to not publish a kotlin-stdlib runtime dependency in our POM. Closes gh-265
1 parent 410e7e6 commit 641b0f0

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
plugins {
22
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
3-
id 'org.jetbrains.kotlin.jvm' version '1.6.0' apply false
3+
id 'org.jetbrains.kotlin.jvm' version '1.5.32' apply false
44
}
55

66
ext {
@@ -63,7 +63,7 @@ configure(moduleProjects) {
6363
mavenBom "org.springframework.data:spring-data-bom:2021.1.0"
6464
mavenBom "org.springframework.security:spring-security-bom:5.6.0"
6565
mavenBom "com.querydsl:querydsl-bom:5.0.0"
66-
mavenBom "org.jetbrains.kotlin:kotlin-bom:1.6.0"
66+
mavenBom "org.jetbrains.kotlin:kotlin-bom:1.5.32"
6767
mavenBom "org.jetbrains.kotlinx:kotlinx-coroutines-bom:1.5.2"
6868
mavenBom "org.junit:junit-bom:5.8.1"
6969
mavenBom "org.testcontainers:testcontainers-bom:1.16.2"

gradle.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ org.gradle.caching=true
44
org.gradle.daemon=true
55
org.gradle.parallel=true
66
org.gradle.jvmargs=-Dfile.encoding=UTF-8
7+
8+
kotlin.stdlib.default.dependency=false

spring-graphql/build.gradle

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ dependencies {
1919
compileOnly 'org.springframework.data:spring-data-commons'
2020

2121
compileOnly 'com.google.code.findbugs:jsr305'
22-
compileOnly 'org.jetbrains.kotlinx:kotlinx-coroutines-core'
2322
compileOnly 'org.jetbrains.kotlin:kotlin-stdlib'
23+
compileOnly 'org.jetbrains.kotlinx:kotlinx-coroutines-core'
2424

2525
compileOnly 'javax.validation:validation-api'
2626

@@ -54,7 +54,6 @@ dependencies {
5454

5555
testRuntimeOnly 'org.apache.logging.log4j:log4j-core'
5656
testRuntimeOnly 'org.apache.logging.log4j:log4j-slf4j-impl'
57-
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
5857
}
5958

6059
test {

0 commit comments

Comments
 (0)