forked from spockframework/spock
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
executable file
·86 lines (71 loc) · 2.17 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
description = "Spock Framework"
libs = [
ant: "org.apache.ant:ant:1.8.1", // use same version as Groovy 1.7
asm: "asm:asm:3.2", // use same version as Groovy 1.7
cglib: "cglib:cglib-nodep:2.2",
easymock: "org.easymock:easymock:3.0",
groovy: "org.codehaus.groovy:groovy-all:1.7.10",
h2database: "com.h2database:h2:1.2.147",
hamcrest_core: "org.hamcrest:hamcrest-core:1.2",
jmock: "org.jmock:jmock:2.5.1",
jmock_junit4: "org.jmock:jmock-junit4:2.5.1",
junit: "junit:junit-dep:4.9",
log4j: "log4j:log4j:1.2.16",
mockito: "org.mockito:mockito-all:1.8.5",
objenesis: "org.objenesis:objenesis:1.2",
slf4j: "org.slf4j:slf4j-log4j12:1.5.5"
]
allprojects {
group = "org.spockframework"
// Whenever this is changed, also need to change the version information in
// SpockGrailsPlugin.groovy and BuildConfig.groovy in the Grails plugin to stay in sync.
version = "0.6-groovy-1.7-SNAPSHOT"
apply from: profile("common")
repositories {
mavenCentral()
if (isSnapshotVersion) {
mavenRepo(url: "http://snapshots.repository.codehaus.org")
}
}
if (!isGrailsPlugin) {
apply plugin: "idea"
apply plugin: "eclipse"
apply plugin: "groovy"
sourceCompatibility = 1.5
targetCompatibility = 1.5
idea {
project {
jdkName = "1.6"
}
}
configurations {
all*.exclude module: "junit" // we use junit-dep instead
}
dependencies {
groovy libs.groovy
}
javadoc {
include "spock/**"
configure(options) {
links "http://download.oracle.com/javase/1.5.0/docs/api/"
links "http://groovy.codehaus.org/gapi"
links "http://kentbeck.github.com/junit/javadoc/4.9"
links "http://www.jarvana.com/jarvana/inspect/org/hamcrest/hamcrest-core/1.2/hamcrest-core-1.2-javadoc.jar"
}
}
task sourcesJar(type: Jar) {
classifier = "sources"
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = "javadoc"
from javadoc.destinationDir
}
}
}
File profile(String name) {
project.file("gradle/${name}.gradle")
}
task wrapper(type: Wrapper) {
gradleVersion = "1.0-milestone-5"
}