From ae8cec75dd4b2b8871ed356f8ec86de069f7d20e Mon Sep 17 00:00:00 2001 From: Simon Templer Date: Sat, 30 Mar 2024 00:24:25 +0100 Subject: [PATCH] ci: use Gradle plugin for version --- .releaserc.yml | 4 ++-- build.gradle | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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'