Skip to content

Commit

Permalink
Remove unused & redundant dependencies for Gradle runner (#2502)
Browse files Browse the repository at this point in the history
* Remove unused jackson-annotations dependency

* Remove redundant `kotlin-reflect`  dependency constraint

kotlin-reflect is provided as part of the Gradle API at compile & runtime.

* Remove redundant dependencies on gradleApi

This dependency is added to the "api" configuration by java-gradle-plugin,
so is already available in all compile & runtime classpaths.
  • Loading branch information
3flex committed May 27, 2022
1 parent ad5f857 commit 8913c97
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions runners/gradle-plugin/build.gradle.kts
Expand Up @@ -13,14 +13,10 @@ repositories {
dependencies {
api(project(":core"))

val jackson_version: String by project
compileOnly("com.fasterxml.jackson.core:jackson-annotations:$jackson_version")
compileOnly("org.jetbrains.kotlin:kotlin-gradle-plugin")
compileOnly("com.android.tools.build:gradle:4.0.1")
compileOnly(gradleApi())
compileOnly(gradleKotlinDsl())
testImplementation(project(":test-utils"))
testImplementation(gradleApi())
testImplementation(gradleKotlinDsl())
testImplementation("org.jetbrains.kotlin:kotlin-gradle-plugin")
testImplementation("com.android.tools.build:gradle:4.0.1")
Expand All @@ -32,13 +28,6 @@ dependencies {
.classpath.asFiles.first()
)
)

constraints {
val kotlin_version: String by project
compileOnly("org.jetbrains.kotlin:kotlin-reflect:${kotlin_version}") {
because("kotlin-gradle-plugin and :core both depend on this")
}
}
}

val sourceJar by tasks.registering(Jar::class) {
Expand Down

0 comments on commit 8913c97

Please sign in to comment.