From 25c1c45818f28e9c7a4157b03a6c4474586d7a9b Mon Sep 17 00:00:00 2001 From: Iaroslav Postovalov Date: Tue, 8 Mar 2022 16:04:18 +0700 Subject: [PATCH] Fix suffix removal for release task --- src/main/kotlin/ru/mipt/npm/gradle/KScienceProjectPlugin.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/ru/mipt/npm/gradle/KScienceProjectPlugin.kt b/src/main/kotlin/ru/mipt/npm/gradle/KScienceProjectPlugin.kt index 867ff02..d9749c8 100644 --- a/src/main/kotlin/ru/mipt/npm/gradle/KScienceProjectPlugin.kt +++ b/src/main/kotlin/ru/mipt/npm/gradle/KScienceProjectPlugin.kt @@ -57,7 +57,7 @@ public class KSciencePublishingExtension(public val project: Project) { allTasks() .filter { it.name.startsWith("publish") && it.name.endsWith("To${name.capitalize()}Repository") } .forEach { - val theName = "release${it.name.removePrefix("publish").removeSuffix("")}" + val theName = "release${it.name.removePrefix("publish").removeSuffix("To${name.capitalize()}Repository")}" logger.info("Making $theName task depend on ${it.name}") val releaseTask = project.tasks.findByName(theName) ?: project.tasks.create(theName) {