-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
38 lines (30 loc) · 1.26 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
apply plugin : 'groovy'
apply plugin : 'eclipse'
repositories { mavenCentral() }
dependencies {
compile fileTree(dir: 'lib', include: '*.jar')
groovy 'org.codehaus.groovy:groovy-all:1.8.5'
compile "org.spockframework:spock-core:0.5-groovy-1.8", {
transitive = false
}
compile 'com.sun.jersey:jersey-server:1.11'
compile 'com.sun.jersey:jersey-core:1.11'
compile 'com.sun.jersey:jersey-json:1.11'
// For testing
testCompile "org.hamcrest:hamcrest-core:1.2" // Hamcrest matchers
testRuntime "cglib:cglib-nodep:2.2" // enables mocking of classes (in addition to interfaces)
testRuntime "org.objenesis:objenesis:1.2" // enables mocking of classes without default constructor (together with CGLIB)
testCompile 'junit:junit:4.8.2'
testCompile "org.hamcrest:hamcrest-core:1.2.1"
testCompile "org.hamcrest:hamcrest-library:1.2.1", { transitive = false }
}
task makeDirs(description : 'make all dirs for project setup') << {
def sources = [sourceSets.main, sourceSets.test]
sources*.allSource*.srcDirs.flatten().each { File srcDir ->
println "making $srcDir"
srcDir.mkdirs()
}
}
task wrap(type : Wrapper, description : "create a gradlew") {
gradleVersion = '1.0-milestone-6'
}