-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
92 lines (80 loc) · 2.68 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
plugins {
id 'com.jfrog.bintray' version '1.8.4'
id 'maven-publish'
}
group 'com.swedbank'
version project.hasProperty('version') ? project.property('version') : 'unspecified'
String vcsUrl = 'https://github.com/swedbank/jenkins-stargate.git'
apply plugin: 'groovy'
apply plugin: 'jacoco'
apply plugin: 'com.jfrog.bintray'
repositories {
jcenter()
}
dependencies {
compile 'org.codehaus.groovy:groovy-all:2.3.11'
compile 'com.lesfurets:jenkins-pipeline-unit:1.1'
compile group: 'org.apache.logging.log4j', name: 'log4j-api', version: '2.12.0'
compile group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.12.0'
testCompile 'org.hamcrest:hamcrest-core:1.3'
testCompile ('org.spockframework:spock-core:1.1-groovy-2.4') {
exclude group: 'org.codehaus.groovy'
}
}
jacocoTestReport {
reports {
xml.enabled = true
}
}
publishing {
publications {
mavenPublication(MavenPublication) {
artifact jar
groupId group
artifactId rootProject.name
version version
pom {
licenses {
license {
name = 'The Apache Software License, Version 2.0'
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
developers {
developer {
id = 'obaranov'
name = 'Oleksii Baranov'
email = '[email protected]'
}
}
scm {
url = vcsUrl
}
withXml {
def dependenciesNode = asNode().appendNode('dependencies')
configurations.compile.allDependencies.each {
def dependencyNode = dependenciesNode.appendNode('dependency')
dependencyNode.appendNode('groupId', it.group)
dependencyNode.appendNode('artifactId', it.name)
dependencyNode.appendNode('version', it.version)
}
}
}
}
}
}
bintray {
user = project.hasProperty('bintrayUser') ? project.property('bintrayUser') : System.getenv('BINTRAY_USER')
key = project.hasProperty('bintrayApiKey') ? project.property('bintrayApiKey') : System.getenv('BINTRAY_API_KEY')
publications = ['mavenPublication']
pkg {
repo = group
name = rootProject.name
userOrg = 'swedbank-test-org'
licenses = ['Apache-2.0']
vcsUrl = vcsUrl
version {
released = new Date()
}
}
}