-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathbuild.gradle
More file actions
42 lines (32 loc) · 925 Bytes
/
build.gradle
File metadata and controls
42 lines (32 loc) · 925 Bytes
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
apply plugin: 'java'
defaultTasks 'build'
archivesBaseName = 'parallel-ant'
version = '0.9-beta'
repositories {
mavenCentral()
}
configurations {
provided
}
dependencies {
provided 'org.apache.ant:ant:1.8.1'
testCompile 'junit:junit:4.8.2', 'org.jmock:jmock:2.5.1', 'org.jmock:jmock-legacy:2.5.1'
testCompile('org.jmock:jmock-junit4:2.5.1'){
exclude module: 'junit-dep'
}
}
sourceSets.main.compileClasspath += configurations.provided
sourceSets.test.compileClasspath += configurations.provided
sourceSets.test.runtimeClasspath += configurations.provided
tasks.withType(Compile) {
options.compilerArgs << "-Xlint:unchecked"
}
task srcZip(type: Zip) {
classifier = 'src'
from projectDir
include 'src/**/*'
include 'etc/**/*'
include 'LICENCE', 'README', 'NOTICE', 'build.*', 'gradlew*'
exclude 'etc/eclipse'
}
assemble.dependsOn(srcZip)