Dev #41

Merged
altavir merged 17 commits from dev into master 2022-03-15 13:06:15 +03:00
Showing only changes of commit 137299b615 - Show all commits

View File

@ -53,8 +53,6 @@ public class KSciencePublishingExtension(public val project: Project) {
} }
} }
private val releaseTasks = mutableSetOf<Task>()
private fun linkPublicationsToReleaseTask(name: String) = project.afterEvaluate { private fun linkPublicationsToReleaseTask(name: String) = project.afterEvaluate {
allTasks() allTasks()
.filter { it.name.startsWith("publish") && it.name.endsWith("To${name.capitalize()}Repository") } .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" description = "Publish development or production release based on version suffix"
} }
releaseTasks += releaseTask
releaseTask.dependsOn(it) releaseTask.dependsOn(it)
} }
} }