-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
74 lines (62 loc) · 1.92 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
import java.util.regex.Matcher
plugins {
id 'java'
id 'idea'
id 'jacoco'
id 'org.jetbrains.kotlin.jvm' version '1.6.10'
id 'org.jetbrains.kotlin.plugin.serialization' version '1.6.10'
id 'com.github.johnrengelman.shadow' version '7.1.2'
id 'net.researchgate.release' version '2.8.1'
}
group 'xyz.poeschl.tools.obsstamper'
sourceCompatibility = JavaVersion.VERSION_1_8
repositories {
mavenCentral()
}
dependencies {
implementation 'org.jetbrains.kotlin:kotlin-stdlib'
implementation 'io.github.microutils:kotlin-logging-jvm:2.1.21'
implementation 'ch.qos.logback:logback-classic:1.2.10'
implementation ('net.twasi:obs-websocket-java:1.2.0') {
exclude group: 'org.slf4j', module: 'slf4j-simple'
}
implementation 'com.xenomachina:kotlin-argparser:2.0.7'
testImplementation(platform('org.junit:junit-bom:5.8.2'))
testImplementation 'org.junit.jupiter:junit-jupiter'
testImplementation "io.mockk:mockk:1.12.2"
testImplementation 'com.willowtreeapps.assertk:assertk-jvm:0.25'
}
compileKotlin {
kotlinOptions.jvmTarget = project.sourceCompatibility
}
compileTestKotlin {
kotlinOptions.jvmTarget = project.sourceCompatibility
}
test {
useJUnitPlatform()
testLogging {
events 'failed', 'passed', 'skipped', 'started'
exceptionFormat 'full'
showStackTraces true
}
}
jar {
manifest {
attributes 'Main-Class': 'xyz.poeschl.tools.obsstamper.ApplicationKt'
}
}
shadowJar{
archiveClassifier.set('')
}
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]}") }
]
}