/
build.gradle
70 lines (59 loc) · 2.05 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
buildscript {
repositories {
jcenter()
}
dependencies {
classpath(group: 'eu.appsatori', name: 'gradle-fatjar-plugin', version: '0.3')
}
}
apply plugin: 'java'
apply plugin: 'groovy'
apply plugin: 'eu.appsatori.fatjar'
version = '1.0'
description = 'Build Info itest'
println description
allprojects {
sourceCompatibility = 1.7
targetCompatibility = 1.7
repositories {
maven { url "https://oss.jfrog.org/jfrog-dependencies" }
jcenter()
}
/* task jarAll(type: Jar) {
dependsOn jar
//Add the directory of the archive as the input files for this task
classifier = 'uber'
}*/
/* fatJar{
classifier = 'all'
//from configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
}*/
dependencies {
testCompile(group: 'org.jfrog.buildinfo', name: 'build-info-extractor-ivy', version: '2.5.x-SNAPSHOT'){
exclude group: 'org.codehaus.groovy', module:'groovy-all'
}
testCompile(group: 'org.jfrog.buildinfo', name: 'build-info-extractor-maven3', version: '2.5.x-SNAPSHOT'){
exclude group: 'org.codehaus.groovy', module:'groovy-all'
}
testCompile 'org.jfrog.artifactory.client:artifactory-java-client-api:0.18-SNAPSHOT'
testCompile 'org.jfrog.artifactory.client:artifactory-java-client-services:0.18-SNAPSHOT'
testCompile(group: 'org.spockframework', name: 'spock-core', version: '1.0-groovy-2.3') {
exclude group: 'org.codehaus.groovy', module:'groovy-all'
}
testCompile(group: 'org.apache.ant', name: 'ant', version: '1.9.2')
testCompile 'org.codehaus.groovy:groovy-all:2.3.6'
}
}
test {
//Spoke run with JUnit (the parent uses TestNG)
test.useJUnit()
testLogging {
exceptionFormat "full"
events "started", "passed", "skipped", "failed", "standardOut", "standardError"
minGranularity 0
}
}
task wrapper(type: Wrapper) {
description = 'Generates gradlew[.bat] scripts'
gradleVersion = '2.1'
}