From 137299b6156dd06db786271a5410869581b8d222 Mon Sep 17 00:00:00 2001 From: Iaroslav Postovalov Date: Mon, 7 Mar 2022 20:53:12 +0700 Subject: [PATCH] Do not store release tasks --- src/main/kotlin/ru/mipt/npm/gradle/KScienceProjectPlugin.kt | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/main/kotlin/ru/mipt/npm/gradle/KScienceProjectPlugin.kt b/src/main/kotlin/ru/mipt/npm/gradle/KScienceProjectPlugin.kt index abd369a..867ff02 100644 --- a/src/main/kotlin/ru/mipt/npm/gradle/KScienceProjectPlugin.kt +++ b/src/main/kotlin/ru/mipt/npm/gradle/KScienceProjectPlugin.kt @@ -53,8 +53,6 @@ public class KSciencePublishingExtension(public val project: Project) { } } - private val releaseTasks = mutableSetOf() - private fun linkPublicationsToReleaseTask(name: String) = project.afterEvaluate { allTasks() .filter { it.name.startsWith("publish") && it.name.endsWith("To${name.capitalize()}Repository") } @@ -67,7 +65,6 @@ public class KSciencePublishingExtension(public val project: Project) { description = "Publish development or production release based on version suffix" } - releaseTasks += releaseTask releaseTask.dependsOn(it) } }