Skip to content

Commit

Permalink
Disable the Gradle plugin publishing.
Browse files Browse the repository at this point in the history
  • Loading branch information
Artem-Semenov-dev committed Oct 1, 2024
1 parent f2c89e1 commit a223e3b
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions codegen/gradle-plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import io.spine.internal.gradle.publish.SpinePublishing
plugins {
`java-gradle-plugin`
`maven-publish`
id("com.gradle.plugin-publish") version "0.12.0"
// id("com.gradle.plugin-publish") version "0.12.0"
id("com.github.johnrengelman.shadow").version("6.1.0")
}

Expand Down Expand Up @@ -78,17 +78,17 @@ tasks.named("test") {
dependsOn(functionalTestTask)
}

pluginBundle {
website = "https://spine.io"
vcsUrl = "https://github.com/SpineEventEngine/Chords/tree/master/codegen/gradle-plugin"
tags = listOf("spine", "chords", "gradle", "plugin", "codegen")

mavenCoordinates {
groupId = "io.spine.chords"
artifactId = "spine-chords-gradle-plugin"
version = versionToPublish
}
}
//pluginBundle {
// website = "https://spine.io"
// vcsUrl = "https://github.com/SpineEventEngine/Chords/tree/master/codegen/gradle-plugin"
// tags = listOf("spine", "chords", "gradle", "plugin", "codegen")
//
// mavenCoordinates {
// groupId = "io.spine.chords"
// artifactId = "spine-chords-gradle-plugin"
// version = versionToPublish
// }
//}

gradlePlugin {
plugins {
Expand Down Expand Up @@ -216,13 +216,13 @@ project.afterEvaluate {

// Do not attempt to publish snapshot versions to comply with publishing rules.
// See: https://plugins.gradle.org/docs/publish-plugin#approval
val publishPlugins: Task by tasks.getting {
enabled = !versionToPublish.isSnapshot()
}

val publish: Task by tasks.getting {
dependsOn(publishPlugins)
}
//val publishPlugins: Task by tasks.getting {
// enabled = !versionToPublish.isSnapshot()
//}
//
//val publish: Task by tasks.getting {
// dependsOn(publishPlugins)
//}

configureTaskDependencies()

Expand Down

0 comments on commit a223e3b

Please sign in to comment.