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()) {}