From a8b0752617b54b68a8957622dca86bb74724d3b5 Mon Sep 17 00:00:00 2001 From: Iurii Ignatko Date: Mon, 28 Oct 2024 22:20:04 +0100 Subject: [PATCH] Fix LICENSE file packaging in the JAR --- .../adapters/develocity.adapters-library.gradle.kts | 3 +++ develocity-gradle-plugin-adapters/build.gradle.kts | 6 ------ develocity-maven-extension-adapters/build.gradle.kts | 6 ------ 3 files changed, 3 insertions(+), 12 deletions(-) diff --git a/buildSrc/src/main/kotlin/develocity/adapters/develocity.adapters-library.gradle.kts b/buildSrc/src/main/kotlin/develocity/adapters/develocity.adapters-library.gradle.kts index bc0504a..3b5765f 100644 --- a/buildSrc/src/main/kotlin/develocity/adapters/develocity.adapters-library.gradle.kts +++ b/buildSrc/src/main/kotlin/develocity/adapters/develocity.adapters-library.gradle.kts @@ -38,6 +38,9 @@ tasks.jar { from(sourceSetOutput("compatibilityApi")) from(sourceSetOutput("enterpriseCompatibility")) from(sourceSetOutput("develocityCompatibility")) + into(".") { + from(rootProject.layout.projectDirectory.file("LICENSE")) + } } val javaComponent = components["java"] as AdhocComponentWithVariants diff --git a/develocity-gradle-plugin-adapters/build.gradle.kts b/develocity-gradle-plugin-adapters/build.gradle.kts index 0cb3f6d..e6abf0b 100644 --- a/develocity-gradle-plugin-adapters/build.gradle.kts +++ b/develocity-gradle-plugin-adapters/build.gradle.kts @@ -32,9 +32,3 @@ develocityAdaptersPublication { name = "Develocity Gradle API adapters for Develocity and Gradle Enterprise Gradle plugins" description = "Adapter interfaces for interacting with the Develocity and Gradle Enterprise Gradle plugins" } - -tasks.withType().configureEach { - into(".") { - from(rootProject.layout.projectDirectory.file("../LICENSE")) - } -} diff --git a/develocity-maven-extension-adapters/build.gradle.kts b/develocity-maven-extension-adapters/build.gradle.kts index 18ae7ad..14209af 100644 --- a/develocity-maven-extension-adapters/build.gradle.kts +++ b/develocity-maven-extension-adapters/build.gradle.kts @@ -32,9 +32,3 @@ develocityAdaptersPublication { name = "Develocity API adapters for Develocity and Gradle Enterprise Maven extensions" description = "Adapter interfaces for interacting with the Develocity and Gradle Enterprise Maven extension APIs" } - -tasks.withType().configureEach { - into(".") { - from(rootProject.layout.projectDirectory.file("../LICENSE")) - } -}