forked from concordion/concordion
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
143 lines (125 loc) · 3.97 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
buildscript {
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath 'org.gradle.api.plugins:gradle-nexus-plugin:0.7'
classpath 'com.github.townsfolk:gradle-release:1.2'
}
}
apply plugin: 'java'
apply plugin: 'java-library-distribution'
apply plugin: 'nexus'
apply plugin: 'release'
apply plugin: 'wrapper'
wrapper {
gradleVersion = "2.2"
}
repositories {
mavenCentral()
}
dependencies {
compile 'junit:junit:4.11',
'ognl:ognl:2.6.9'
compile ('xom:xom:1.2.5') {
exclude group: 'xalan', module: 'xalan'
exclude group: 'xerces', module: 'xercesImpl'
exclude group: 'xml-apis', module: 'xml-apis'
}
}
sourceSets {
testDummies { // "crash test dummies" - specs+fixtures that are used by the tests but aren't run as tests themselves
java {
srcDir 'src/test-dummies/java'
}
resources {
srcDir 'src/test-dummies/resources'
}
compileClasspath = sourceSets.main.output + configurations.compile
}
}
compileJava.sourceCompatibility = 1.5
compileJava.targetCompatibility = 1.5
// In order to verify that the build works with JDK5, run this task before compileJava
task setJava5ClassPath << {
def java5BootClassPath = System.env.JAVA5_BOOTCLASSPATH
if (!(java5BootClassPath)) {
throw new TaskInstantiationException('''ERROR:
The environment variable JAVA5_BOOTCLASSPATH must be set to a Java 5 rt.jar.
While the test classes require Java 6 or later, this variable must be set to
ensure compatibility with Java 5 libraries for the main classes.''')
}
compileJava.options.bootClasspath = java5BootClassPath
}
test {
systemProperties['concordion.output.dir'] = "${reporting.baseDir}"
}
compileTestJava.dependsOn compileTestDummiesJava
release.dependsOn clean
release.dependsOn setJava5ClassPath
distributions {
main {
contents {
from ('.') { include '*.txt','build.gradle','src/**' }
into ('lib') {
from 'licenses'
}
}
}
}
// 'gradle release' will also upload release to Nexus
createReleaseTag.dependsOn uploadArchives
release.dependsOn
modifyPom {
project {
name 'Concordion'
description 'Concordion is an open source framework for Java that lets you turn a plain English description of a requirement into an automated test.'
url 'http://www.concordion.org'
packaging 'jar'
inceptionYear '2008'
scm {
url 'https://github.com/concordion/concordion.git'
connection 'scm:git:git://github.com/concordion/concordion.git'
developerConnection 'scm:git:git@github.com:concordion/concordion.git'
}
licenses {
license {
name 'The Apache Software License, Version 2.0'
url 'http://www.apache.org/licenses/LICENSE-2.0.html'
distribution 'repo'
}
}
issueManagement{
system 'GoogleCode'
url 'http://code.google.com/p/concordion/issues/list'
}
developers {
developer {
id 'peterson3'
name 'David Peterson'
roles { role 'Project Owner' }
}
developer {
id 'jose.m.beas'
roles { role 'Developer' }
}
developer {
id 'nigel.charman.nz'
roles { role 'Developer' }
}
developer {
id 'habuma'
roles { role 'Developer' }
}
developer {
id 'pinfieldharm'
roles { role 'Developer' }
}
developer {
id 'wangyizhuo'
roles { role 'Developer' }
}
}
}
}