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