Skip to content

Commit a6eae6c

Browse files
committed
Gradle release plugin
1 parent bdf044a commit a6eae6c

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

CONTRIBUTING.adoc

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,13 @@ Releases are automatically built and published to Maven Central once a tag follo
4545

4646
The artifact version should correspond to the aforementioned tag, meaning tags such as `v1.0.0` should only be applied if the artifact version within the project's `build.gradle.kts` is `1.0.0`.
4747

48-
TODO: Gradle Release plugin
48+
To simplify the release process, this project uses the
49+
https://plugins.gradle.org/plugin/net.researchgate.release[`net.researchgate.release`]
50+
Gradle plugin.
51+
52+
The following command can be used to release a new version:
4953

5054
[,bash]
5155
----
52-
mvn release:prepare release:clean -B
56+
gradle release
5357
----

build.gradle.kts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ plugins {
1010
val kotlinVersion = "1.9.22"
1111
val adarshrTestLoggerVersion = "4.0.0"
1212
val sonarqubeVersion = "4.4.1.3373"
13+
val gradleReleasePluginVersion = "3.0.2"
1314

1415
id("io.spring.dependency-management") version springDependencyManagementVersion
1516
kotlin("jvm") version kotlinVersion
@@ -19,6 +20,7 @@ plugins {
1920
id("org.sonarqube") version sonarqubeVersion
2021
id("maven-publish")
2122
id("signing")
23+
id("net.researchgate.release") version gradleReleasePluginVersion
2224
}
2325

2426
group = "io.github.tobi-laa"

0 commit comments

Comments
 (0)