-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
48 lines (43 loc) · 1.29 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
buildscript {
ext.versions = [kotlin: '1.3.50',
ktlint: '0.31.0',]
repositories {
gradlePluginPortal()
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${versions.kotlin}"
classpath 'com.github.ben-manes:gradle-versions-plugin:0.22.0'
classpath 'pl.allegro.tech.build:axion-release-plugin:1.10.2'
}
}
apply plugin: 'com.github.ben-manes.versions'
apply plugin: 'pl.allegro.tech.build.axion-release'
scmVersion {
tag {
prefix = ''
}
hooks {
pre 'fileUpdate', [file : 'README.md',
pattern : { v, p -> /([-\/:])$v([-\/'])/ },
replacement: { v, p -> "\$1$v\$2" }]
pre 'fileUpdate', [file : 'README.md',
pattern : { v, p -> /(\/Kotlin-)[\d.]+/ },
replacement: { v, p -> "\$1${versions.kotlin}" }]
pre 'commit'
}
}
allprojects {
repositories {
mavenCentral()
}
}
subprojects {
version = scmVersion.version
group = 'com.github.tmurakami.btkt'
}
dependencyUpdates.resolutionStrategy {
componentSelection.all {
if (candidate.version =~ /(?i)-(?:alpha|beta|rc)[-\d]?/) reject('Release candidate')
}
}