From b5263c7a5ceb90801eb7ba444c0409d67bf3e625 Mon Sep 17 00:00:00 2001 From: Siphalor Date: Mon, 28 Jul 2025 23:06:58 +0200 Subject: [PATCH] [build] Rename task for expanded sources jar --- .../de.siphalor.tweed5.expanded-sources-jar.gradle.kts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/buildSrc/src/main/kotlin/de.siphalor.tweed5.expanded-sources-jar.gradle.kts b/buildSrc/src/main/kotlin/de.siphalor.tweed5.expanded-sources-jar.gradle.kts index ad8cd87..7169c17 100644 --- a/buildSrc/src/main/kotlin/de.siphalor.tweed5.expanded-sources-jar.gradle.kts +++ b/buildSrc/src/main/kotlin/de.siphalor.tweed5.expanded-sources-jar.gradle.kts @@ -14,14 +14,14 @@ val expandedSourcesElements = configurations.consumable("expandedSourcesElements val delombok = tasks.getByName("delombok") -val sourcesJarTask by tasks.registering(Jar::class) { +val sourcesJar by tasks.registering(Jar::class) { dependsOn(delombok) from(delombok.target) archiveClassifier.set("sources") } -artifacts.add(expandedSourcesElements.name, sourcesJarTask) +artifacts.add(expandedSourcesElements.name, sourcesJar) -tasks.named("build") { dependsOn(sourcesJarTask) } +tasks.named("build") { dependsOn(sourcesJar) } components.named("java") { addVariantsFromConfiguration(expandedSourcesElements.get()) {}