Skip to content

Commit

Permalink
fix(release): release the plugin with both the IDs it had
Browse files Browse the repository at this point in the history
  • Loading branch information
DanySK committed Jan 5, 2023
1 parent a68462b commit 18d9664
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
8 changes: 7 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,17 @@ pluginBundle {

gradlePlugin {
plugins {
create(project.name) {
create("long") {
id = projectId
displayName = fullName
description = projectDetails
implementationClass = pluginImplementationClass
}
create("short") {
id = "$group.git-sensitive-semantic-versioning"
displayName = fullName
description = projectDetails
implementationClass = pluginImplementationClass
}
}
}
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ kotlin-testing = [ "kotest-junit5-jvm", "kotest-assertions-core-jvm" ]

[plugins]
dokka = { id = "org.jetbrains.dokka", version.ref = "dokka" }
gitSemVer = { id = "org.danilopianini.git-sensitive-semantic-versioning", version = "0.3.0" }
gitSemVer = { id = "org.danilopianini.git-sensitive-semantic-versioning-gradle-plugin", version = "1.0.0" }
gradle-plugin-publish = { id = "com.gradle.plugin-publish", version = "1.0.0" }
kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
kotlin-qa = { id = "org.danilopianini.gradle-kotlin-qa", version = "0.29.2" }
Expand Down
2 changes: 0 additions & 2 deletions release.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
var publishCmd = `
git tag -a -f \${nextRelease.version} \${nextRelease.version} -F CHANGELOG.md
git push --force origin \${nextRelease.version}
./gradlew uploadKotlin uploadPluginMavenToMavenCentralNexus uploadGit --parallel || exit 1
./gradlew publishPlugins -Pgradle.publish.key=$GRADLE_PUBLISH_KEY -Pgradle.publish.secret=$GRADLE_PUBLISH_SECRET || exit 2
./gradlew publishKotlinMavenPublicationToGithubRepository || true
Expand Down

0 comments on commit 18d9664

Please sign in to comment.