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")) - } -}