Do not store release tasks
This commit is contained in:
parent
dd5a9f75c4
commit
137299b615
@ -53,8 +53,6 @@ public class KSciencePublishingExtension(public val project: Project) {
|
||||
}
|
||||
}
|
||||
|
||||
private val releaseTasks = mutableSetOf<Task>()
|
||||
|
||||
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)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user