Skip to content

Commit 655a5fa

Browse files
committed
Use researchgate's release plugin
1 parent c606f88 commit 655a5fa

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

build.gradle

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ plugins {
1717
// Gradle dependency update checker; run by "dependencyUpdates" task
1818
id "com.github.ben-manes.versions" version "0.20.0"
1919

20+
// Release version with "gradle release"
21+
id 'net.researchgate.release' version '2.6.0'
22+
2023
// Create start scripts
2124
// Is executed on "build" task but not on e.g. "jar" task
2225
id 'application'
@@ -27,13 +30,11 @@ plugins {
2730
}
2831

2932
group 'de.debuglevel.greeting'
30-
version '0.0.2-SNAPSHOT'
3133

3234
// application plugin configuration
3335
applicationName = "Greeting Microservice"
3436
mainClassName = "de.debuglevel.greeting.rest.MainKt"
3537

36-
3738
repositories {
3839
jcenter()
3940
maven {
@@ -110,6 +111,12 @@ buildScan {
110111
publishAlways()
111112
}
112113

114+
// Configuration of net.researchgate.release plugin
115+
release {
116+
failOnCommitNeeded = false
117+
failOnUnversionedFiles = false
118+
}
119+
113120
test {
114121
useJUnitPlatform()
115122

gradle.properties

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1+
# Application version
2+
version=0.0.2-SNAPSHOT
3+
# other settings
14
kotlin.code.style=official

0 commit comments

Comments
 (0)