Skip to content

Commit

Permalink
chore(deps): update plugin publishoncentral to v8 (#803)
Browse files Browse the repository at this point in the history
* chore(deps): update plugin publishoncentral to v8

* build: remove work-around for script-level classes

* ci: update the task names

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Danilo Pianini <[email protected]>
  • Loading branch information
renovate[bot] and DanySK authored Jan 13, 2025
1 parent 70bbd55 commit 9fbafd2
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 14 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,9 @@ jobs:
with:
deploy-command: >-
./gradlew
uploadKotlin
uploadPluginMavenToMavenCentralNexus
uploadGitHooksPluginMarkerMavenToMavenCentralNexus
close
dropStagingRepositoryOnMavenCentral
--parallel
uploadAll
closeStaging
dropStaging
should-run-codecov: ${{ runner.os == 'Linux' }}
codecov-token: ${{ secrets.CODECOV_TOKEN }}
should-deploy: >-
Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ plugins {
group = "org.danilopianini"
description = "A Gradle plugin enforcing pre-commit and commit-msg Git hooks configuration. Conventional-commits-ready."

inner class ProjectInfo {
class ProjectInfo {
val longName = "Gradle pre-commit Git Hooks"
val website = "https://github.com/DanySK/$name"
val vcsUrl = "$website.git"
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ gradlePluginPublish = { id = "com.gradle.plugin-publish", version = "1.3.0" }
kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
kotlin-qa = { id = "org.danilopianini.gradle-kotlin-qa", version = "0.78.0" }
multiJvmTesting = { id = "org.danilopianini.multi-jvm-test-plugin", version = "3.1.2" }
publishOnCentral = { id = "org.danilopianini.publish-on-central", version = "7.0.4" }
publishOnCentral = { id = "org.danilopianini.publish-on-central", version = "8.0.1" }
taskTree = { id = "com.dorongold.task-tree", version = "4.0.0" }
8 changes: 2 additions & 6 deletions release.config.mjs
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
const publishCmd = `
git tag -a -f \${nextRelease.version} \${nextRelease.version} -F CHANGELOG.md
git push --force origin \${nextRelease.version}
./gradlew \
uploadKotlin \
uploadPluginMavenToMavenCentralNexus \
uploadGitHooksPluginMarkerMavenToMavenCentralNexus \
releaseStagingRepositoryOnMavenCentral || exit 1
./gradlew uploadAll releaseStagingRepositoryOnMavenCentral || exit 1
./gradlew \
publishPlugins \
-Pgradle.publish.key=$GRADLE_PUBLISH_KEY \
-Pgradle.publish.secret=$GRADLE_PUBLISH_SECRET || exit 2
./gradlew publishKotlinMavenPublicationToGithubRepository || true
./gradlew publishAllToGithubRepository || true
`
import config from 'semantic-release-preconfigured-conventional-commits' with { type: "json" };
config.plugins.push(
Expand Down

0 comments on commit 9fbafd2

Please sign in to comment.