-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
65 lines (52 loc) · 1.6 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
plugins {
id 'groovy'
id 'maven-publish'
id 'java-gradle-plugin'
id 'com.gradle.plugin-publish' version '0.12.0'
id "pl.allegro.tech.build.axion-release" version "1.12.1"
id "com.github.ben-manes.versions" version "0.36.0"
}
group = "com.kdabir.mksrc"
repositories {
mavenCentral()
jcenter()
}
dependencies {
implementation localGroovy()
testImplementation platform("org.spockframework:spock-bom:2.0-M4-groovy-3.0")
testImplementation 'org.spockframework:spock-core'
testImplementation 'org.spockframework:spock-junit4'
testImplementation 'junit:junit:4.13.1'
testImplementation "io.github.kdabir.directree:directree:0.3.2", {
exclude group: 'org.codehaus.groovy'
}
}
pluginBundle {
website = 'https://github.com/kdabir/mksrc'
vcsUrl = 'https://github.com/kdabir/mksrc'
description = 'Generate source directories and settings.gradle file'
tags = ['create', 'dirs', 'mkdir', 'sourcesets', 'settings.gradle']
plugins {
mksrc {
id = 'com.kdabir.mksrc'
displayName = 'Gradle plugin to create source directories'
}
}
}
scmVersion {
tag {
prefix = 'v'
versionSeparator = ''
}
localOnly = true
hooks {
post { context ->
/// Pushing tags manually thru native git client because jgit requires authentication via a pop-up
println "pushing tag: v${context.currentVersion}"
exec {
commandLine 'git', 'push', 'origin', "v${context.currentVersion}"
}
}
}
}
project.version = scmVersion.version