Skip to content

Commit

Permalink
GH-1852: Fix Incorrect Kotlin Dependency
Browse files Browse the repository at this point in the history
Resolves #1852

Configure the Gradle Kotlin Plugin to not add the stdlib as a compile dependency,
it is only used for Kotlin tests.
  • Loading branch information
garyrussell committed Jun 30, 2021
1 parent eab4a67 commit c474bca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,7 @@ project ('spring-kafka-docs') {
dependencies {
api "org.springframework.boot:spring-boot-starter:$springBootVersion"
api project (':spring-kafka')
optionalApi 'org.jetbrains.kotlin:kotlin-stdlib'
optionalApi 'com.fasterxml.jackson.core:jackson-core'
optionalApi 'com.fasterxml.jackson.core:jackson-databind'
}
Expand Down
2 changes: 2 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
version=2.7.4-SNAPSHOT
org.gradle.caching=true
org.gradle.parallel=true

kotlin.stdlib.default.dependency=false

0 comments on commit c474bca

Please sign in to comment.