-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
46 lines (43 loc) · 1.33 KB
/
build.gradle.kts
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
import com.github.mfarsikov.kewt.versioning.plugin.Incrementer.MINOR
import com.github.mfarsikov.kewt.versioning.plugin.Incrementer.PATCH
plugins {
kotlin("jvm") version "1.4.10" apply false
id("com.jfrog.bintray") version "1.8.5" apply false
id("com.github.mfarsikov.kewt-versioning") version "0.6.0"
}
repositories {
mavenLocal()
mavenCentral()
}
kewtVersioning {
configuration {
branches {
clear()
add {
regexes = mutableListOf("master".toRegex())
incrementer = MINOR
stringify = stringifier(useBranch = false, useSha = false, useTimestamp = false)
}
add {
regexes = mutableListOf("fix/.*".toRegex())
incrementer = PATCH
stringify = stringifier(useSha = false, useTimestamp = false)
}
add {
regexes = mutableListOf(".*".toRegex())
incrementer = MINOR
stringify = { version ->
stringifier(
useBranch = version.isSnapshot,
useSha = false,
useTimestamp = false
)(version)
}
}
}
}
}
val v = kewtVersioning.version
subprojects {
version = v
}