Skip to content

Commit

Permalink
Add parent validatePlugins task
Browse files Browse the repository at this point in the history
  • Loading branch information
IgnatBeresnev committed Oct 31, 2023
1 parent f90f681 commit e369c6f
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ plugins {
}

val publishedIncludedBuilds = listOf("runner-cli", "runner-gradle-classic", "runner-maven")
val gradlePluginIncludedBuilds = listOf("runner-gradle-classic")

addDependencyOnSameTaskOfIncludedBuilds("assemble")
addDependencyOnSameTaskOfIncludedBuilds("build")
Expand All @@ -25,9 +26,8 @@ registerParentTaskOfPublishedIncludedBuilds("publishAllPublicationsToSpaceDevRep
registerParentTaskOfPublishedIncludedBuilds("publishAllPublicationsToSpaceTestRepository", groupName = "publication")
registerParentTaskOfPublishedIncludedBuilds("publishToMavenLocal", groupName = "publication")

registerParentTaskOfIncludedBuilds("publishPlugins", groupName = "publication") {
it.name == "runner-gradle-classic"
}
registerParentTaskOfGradlePluginIncludedBuilds("publishPlugins", groupName = "publication")
registerParentTaskOfGradlePluginIncludedBuilds("validatePlugins", groupName = "plugin development")

tasks.register("integrationTest") {
group = "verification"
Expand All @@ -48,6 +48,13 @@ fun registerParentTaskOfPublishedIncludedBuilds(
it.name in publishedIncludedBuilds
}

fun registerParentTaskOfGradlePluginIncludedBuilds(
taskName: String,
groupName: String
) = registerParentTaskOfIncludedBuilds(taskName, groupName) {
it.name in gradlePluginIncludedBuilds
}

fun registerParentTaskOfIncludedBuilds(
taskName: String,
groupName: String,
Expand Down

0 comments on commit e369c6f

Please sign in to comment.