diff --git a/.releaserc.yml b/.releaserc.yml index cfb5a44..446250b 100644 --- a/.releaserc.yml +++ b/.releaserc.yml @@ -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" diff --git a/build.gradle b/build.gradle index 8e860cf..b8104ca 100644 --- a/build.gradle +++ b/build.gradle @@ -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 { @@ -15,7 +16,6 @@ java { } group = "to.wetransform" -version = "1.0.0" dependencies { implementation 'org.ajoberstar.grgit:grgit-core:5.2.2'