From 8913c97b25ebf5061ea367129544d7e5186a738d Mon Sep 17 00:00:00 2001 From: Matthew Haughton <3flex@users.noreply.github.com> Date: Sat, 28 May 2022 05:49:27 +1000 Subject: [PATCH] Remove unused & redundant dependencies for Gradle runner (#2502) * 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. --- runners/gradle-plugin/build.gradle.kts | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/runners/gradle-plugin/build.gradle.kts b/runners/gradle-plugin/build.gradle.kts index 95ffd9ef36..07f29ae038 100644 --- a/runners/gradle-plugin/build.gradle.kts +++ b/runners/gradle-plugin/build.gradle.kts @@ -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") @@ -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) {