Skip to content

Commit

Permalink
ci: update to using version 2.0.0 of self
Browse files Browse the repository at this point in the history
  • Loading branch information
stempler committed Apr 17, 2024
1 parent 169d0b6 commit 16d5263
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
20 changes: 11 additions & 9 deletions .releaserc.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,26 @@
---
preset: conventionalcommits
branches: main

plugins:
# https://github.com/semantic-release/commit-analyzer?tab=readme-ov-file#configuration
- - "@semantic-release/commit-analyzer"
- preset: conventionalcommits
- - "@semantic-release/release-notes-generator"
- preset: conventionalcommits
- "@semantic-release/changelog"
- - "@semantic-release/exec"
- # verifyRelease - Tag has not been created (is cretaed after prepare) and version
# has not been set at this point, so verification is not possible
# verifyReleaseCmd: ./gradlew verifyReleaseVersion
- # verifyRelease - Tag has not been created (is created after prepare) and version
# has not been set at this point, so verification of the version is not possible,
# but verification of dependencies
# TODO uncomment after switching to 2.1
# verifyReleaseCmd: ./gradlew verifyNoSnapshotDependencies

# prepare - set release version
prepareCmd: ./gradlew "-PnewVersion=${nextRelease.version}" setReleaseVersion
# prepare - set release version (if using version file)
# prepareCmd: ./gradlew "-PnewVersion=${nextRelease.version}" setReleaseVersion

# publish - verify that version is release version and perform publishing tasks
publishCmd: ./gradlew verifyReleaseVersion publishPlugins
publishCmd: ./gradlew showVersion verifyReleaseVersion publishPlugins
- - "@semantic-release/git"
- assets:
- CHANGELOG.md
- version.txt
# - version.txt # (if using version file)
- "@semantic-release/github"
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ plugins {
id 'java-gradle-plugin'
id 'groovy'
id 'com.gradle.plugin-publish' version "1.2.1"
id 'to.wetransform.semantic-release-version' version '1.1.0'
id 'to.wetransform.semantic-release-version' version '2.0.0'
}

repositories {
Expand Down
1 change: 0 additions & 1 deletion version.txt

This file was deleted.

0 comments on commit 16d5263

Please # to comment.