Skip to content

Commit c474bca

Browse files
committed
GH-1852: Fix Incorrect Kotlin Dependency
Resolves #1852 Configure the Gradle Kotlin Plugin to not add the stdlib as a compile dependency, it is only used for Kotlin tests.
1 parent eab4a67 commit c474bca

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,7 @@ project ('spring-kafka-docs') {
356356
dependencies {
357357
api "org.springframework.boot:spring-boot-starter:$springBootVersion"
358358
api project (':spring-kafka')
359+
optionalApi 'org.jetbrains.kotlin:kotlin-stdlib'
359360
optionalApi 'com.fasterxml.jackson.core:jackson-core'
360361
optionalApi 'com.fasterxml.jackson.core:jackson-databind'
361362
}

gradle.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
version=2.7.4-SNAPSHOT
22
org.gradle.caching=true
33
org.gradle.parallel=true
4+
5+
kotlin.stdlib.default.dependency=false

0 commit comments

Comments
 (0)