-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.gradle
55 lines (42 loc) · 1.15 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
apply plugin: 'groovy'
apply plugin: 'idea'
apply plugin: "eclipse"
def spockVersion = '1.0-groovy-2.0-SNAPSHOT'
def groovyVersion = '2.3.6'
repositories {
mavenCentral()
// sonatype repo to get spock snapshots
maven {
url "https://oss.sonatype.org/content/groups/public/"
}
}
dependencies {
groovy "org.codehaus.groovy:groovy-all:$groovyVersion"
compile 'commons-lang:commons-lang:2.6'
testCompile 'junit:junit:4.10'
// jar for latest spock
testCompile 'cglib:cglib-nodep:2.2.2' // need to mock classes
testCompile "org.spockframework:spock-core:$spockVersion"
// testCompile "org.spockframework:spock-spring:$spockVersion" //need if you are doing spring... fails without the spring dependencies
testRuntime "com.h2database:h2:1.2.147"
testRuntime "org.hamcrest:hamcrest-core:1.3"
}
sourceSets {
main {
java { srcDirs = [] }
groovy { srcDir 'src' }
}
test {
java { srcDirs = [] }
groovy { srcDir 'test' }
}
}
idea {
project {
javaVersion = 1.7
jdkName = '1.7'
}
}
task wrapper(type: Wrapper) {
gradleVersion = '1.12'
}