-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
49 lines (41 loc) · 1.35 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
import java.util.regex.Matcher
plugins {
id 'org.springframework.boot' version "2.5.5"
id 'io.spring.dependency-management' version "1.0.11.RELEASE"
id 'org.jetbrains.kotlin.jvm' version "1.5.31"
id 'org.jetbrains.kotlin.plugin.spring' version "1.5.31"
id 'net.researchgate.release' version '2.8.1'
}
group = "de.pixel"
sourceCompatibility = JavaVersion.VERSION_16
repositories {
mavenCentral()
}
dependencies {
implementation("org.springframework.boot:spring-boot-starter-web")
implementation("com.fasterxml.jackson.module:jackson-module-kotlin")
implementation("org.jetbrains.kotlin:kotlin-reflect")
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
testImplementation("org.springframework.boot:spring-boot-starter-test")
}
compileKotlin {
kotlinOptions.jvmTarget = JavaVersion.VERSION_16
}
compileTestKotlin {
kotlinOptions.jvmTarget = JavaVersion.VERSION_16
}
test {
useJUnitPlatform()
}
release {
buildTasks = []
preTagCommitMessage = ':bookmark: pre tag commit: '
tagCommitMessage = ':bookmark: creating tag: '
newVersionCommitMessage = ':bookmark: new version commit: '
git {
requireBranch = 'master'
}
versionPatterns = [
/(\d+)\.(\d+)\.(\d+)([^\d]*$)/: { Matcher m, Project p -> m.replaceAll("${m[0][1]}.${(m[0][2] as int) + 1}.${m[0][3]}${m[0][4]}") }
]
}