Skip to content

Commit

Permalink
ci: use Gradle plugin for version
Browse files Browse the repository at this point in the history
  • Loading branch information
stempler committed Mar 30, 2024
1 parent 6d730bb commit 2d4e865
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .releaserc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ plugins:
- "@semantic-release/changelog"
- - "@semantic-release/exec"
- publishCmd: ./gradlew publishPlugins
# prepareCmd: echo "${nextRelease.version}" > version.txt # TODO set via plugin
prepareCmd: ./gradlew "-PnewVersion=${nextRelease.version}" setReleaseVersion
- - "@semantic-release/git"
- assets:
- CHANGELOG.md
# - version.txt
- version.txt
- "@semantic-release/github"
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +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.0.0'
}

repositories {
Expand All @@ -15,7 +16,6 @@ java {
}

group = "to.wetransform"
version = "1.0.0"

dependencies {
implementation 'org.ajoberstar.grgit:grgit-core:5.2.2'
Expand Down
1 change: 1 addition & 0 deletions version.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.0.0

0 comments on commit 2d4e865

Please sign in to comment.