forked from TWChennai/gocd-git-path-material-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
100 lines (85 loc) · 2.94 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
group 'com.thoughtworks.com'
apply plugin: 'java'
apply plugin: "jacoco"
sourceCompatibility = 1.7
targetCompatibility = 1.7
// these values that go into plugin.xml
project.ext.pluginDesc = [
id : 'com.thoughtworks.gocd',
version : project.version,
goCdVersion: '15.1.0',
name : 'Git Path Material',
description: 'Git Path Material plugin for GoCD',
vendorName : 'GoCd Contributors',
vendorUrl : 'https://github.com/TWChennai/gocd-git-path-material-plugin'
]
repositories {
jcenter()
mavenLocal()
}
jacoco {
toolVersion = "0.7.6.201602180812"
reportsDir = file("$buildDir/reports")
}
jacocoTestReport {
reports {
xml.enabled false
csv.enabled false
html.destination "${buildDir}/jacocoHtml"
}
}
dependencies {
compile group: 'cd.go.plugin', name: 'go-plugin-api', version: project.pluginDesc.goCdVersion
compile group: 'org.codehaus.jackson', name: 'jackson-mapper-asl', version: '1.9.13'
compile group: 'commons-validator', name: 'commons-validator', version: '1.4.0'
compile group: 'org.eclipse.jgit', name: 'org.eclipse.jgit', version: '4.5.0.201609210915-r'
compile group: 'joda-time', name: 'joda-time', version: '2.3'
compile group: 'commons-io', name: 'commons-io', version: '2.4'
compile group: 'org.projectlombok', name: 'lombok', version: '1.16.10'
compile group: 'ch.qos.logback', name: 'logback-classic', version: '1.1.7'
compile group: 'org.apache.commons', name: 'commons-lang3', version: '3.4'
testCompile group: 'junit', name: 'junit', version: '4.11'
testCompile group: 'org.hamcrest', name: 'hamcrest-all', version: '1.3'
testCompile group: 'org.mockito', name: 'mockito-all', version: '1.10.19'
testCompile group: 'org.powermock', name: 'powermock-module-junit4', version: '1.6.2'
testCompile group: 'org.powermock', name: 'powermock-core', version: '1.6.2'
testCompile group: 'org.powermock', name: 'powermock-api-mockito', version: '1.6.2'
}
jar {
from(configurations.compile) {
into "lib/"
}
}
test {
jacoco {
append = false
destinationFile = file("$buildDir/jacoco/jacocoTest.exec")
classDumpFile = file("$buildDir/jacoco/classpathdumps")
}
}
task startGoCd(dependsOn: build, type: Exec) {
commandLine "docker-compose", "up", "-d"
}
task restartGoCd(dependsOn: build, type: Exec) {
commandLine "docker-compose", "restart"
}
task stopGoCd(type: Exec) {
commandLine "docker-compose", "stop"
}
buildscript {
repositories {
maven {
url 'https://plugins.gradle.org/m2/'
}
}
dependencies {
classpath 'net.researchgate:gradle-release:2.4.0'
}
}
apply plugin: 'net.researchgate.release'
release {
preTagCommitMessage = 'pre release tag commit: '
tagCommitMessage = 'creating new release tag: '
newVersionCommitMessage = 'new release version commit: '
buildTasks = ['build']
}