From 6fcd66a956e489ee42045956164945f080ae772d Mon Sep 17 00:00:00 2001 From: aSemy <897017+aSemy@users.noreply.github.com> Date: Thu, 9 Mar 2023 14:44:14 +0100 Subject: Remove unused `sourceJar` tasks (#2909) Sources JAR is auto-enabled using `withSourcesJar()` in `base-java` convention plugin --- runners/gradle-plugin/build.gradle.kts | 5 ----- runners/maven-plugin/build.gradle.kts | 5 ----- 2 files changed, 10 deletions(-) diff --git a/runners/gradle-plugin/build.gradle.kts b/runners/gradle-plugin/build.gradle.kts index 89601c69..0b6908d4 100644 --- a/runners/gradle-plugin/build.gradle.kts +++ b/runners/gradle-plugin/build.gradle.kts @@ -43,11 +43,6 @@ fun Configuration.excludeGradleCommonDependencies() { } } -val sourceJar by tasks.registering(Jar::class) { - archiveClassifier.set("sources") - from(sourceSets["main"].allSource) -} - gradlePlugin { plugins { create("dokkaGradlePlugin") { diff --git a/runners/maven-plugin/build.gradle.kts b/runners/maven-plugin/build.gradle.kts index e6aab8eb..6cd0395e 100644 --- a/runners/maven-plugin/build.gradle.kts +++ b/runners/maven-plugin/build.gradle.kts @@ -81,11 +81,6 @@ val pluginDescriptor by tasks.registering(CrossPlatformExec::class) { outputs.dir(layout.buildDirectory.dir("maven/classes/java/main/META-INF/maven")) } -val sourceJar by tasks.registering(Jar::class) { - archiveClassifier.set("sources") - from(java.sourceSets["main"].allSource) -} - tasks.jar { dependsOn(pluginDescriptor, helpMojo) metaInf { -- cgit