-
Notifications
You must be signed in to change notification settings - Fork 11
/
build.gradle
100 lines (86 loc) · 2.57 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
buildscript {
repositories {
mavenLocal()
jcenter()
}
dependencies {
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:+'
classpath 'com.ofg:uptodate-gradle-plugin:1.5.2'
if (project.hasProperty('coverage')) {
classpath 'org.kt3k.gradle.plugin:coveralls-gradle-plugin:1.0.2'
}
classpath 'nu.studer:gradle-plugindev-plugin:1.0.3'
}
}
apply plugin: 'com.jfrog.bintray'
apply plugin: 'com.ofg.uptodate'
apply plugin: 'maven-publish'
apply plugin: 'groovy'
apply plugin: 'nu.studer.plugindev'
sourceCompatibility = 1.7
targetCompatibility = 1.7
repositories {
mavenLocal()
jcenter()
}
dependencies {
compile gradleApi()
compile localGroovy()
compile "org.slf4j:slf4j-api:1.7.12"
compile 'org.javassist:javassist:3.20.0-GA'
compile('org.spockframework:spock-core:1.0-groovy-2.3') {
exclude module: 'groovy-all'
}
testRuntime 'org.slf4j:slf4j-log4j12:1.7.12'
testRuntime 'cglib:cglib-nodep:3.1'
testRuntime 'org.objenesis:objenesis:2.1'
testCompile('com.netflix.nebula:nebula-test:2.2.2') {
exclude group: 'org.codehaus.groovy', module: 'groovy-all'
}
}
uptodate {
addExcludedVersionPatterns '^1.*-groovy-2.[3-4]$'
}
sourceSets.main.java.srcDirs = []
sourceSets.main.groovy.srcDirs += ["src/main/java"]
test {
maxParallelForks = 8
testLogging {
exceptionFormat = 'full'
}
}
bintrayUpload.dependsOn 'build'
plugindev {
pluginId ='com.blogspot.toomuchcoding.testprofiler'
pluginImplementationClass 'com.blogspot.toomuchcoding.testprofiler.TestProfilerPlugin'
pluginDescription 'Gradle plugin that profiles your tests. Gives you a CSV file sorted by tests execution time.'
pluginLicenses 'Apache-2.0'
pluginTags 'gradle', 'plugin', 'testing'
authorId 'marcingrzejszczak'
authorName 'Marcin Grzejszczak'
authorEmail 'marcin@grzejszczak.pl'
projectUrl 'https://github.com/marcingrzejszczak/gradle-test-profiler'
projectInceptionYear '2015'
done() // do not omit this
}
bintray {
user = System.getProperty('bintrayUser')
key = System.getProperty('bintrayKey')
pkg.repo = 'com-blogspot-toomuchcoding'
}
if (project.hasProperty('coverage')) {
apply plugin: 'jacoco'
apply plugin: 'com.github.kt3k.coveralls'
jacoco {
toolVersion = '0.7.1.201405082137'
}
jacocoTestReport {
reports {
xml.enabled = true // coveralls plugin depends on xml format report
html.enabled = true
}
}
test {
ignoreFailures = true
}
}