forked from spockframework/spock
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
executable file
·104 lines (86 loc) · 2.55 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
antDep = "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.6"
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.8.2"
log4j = "log4j:log4j:1.2.16"
mockito = "org.mockito:mockito-all:1.8.5"
objenesis = "org.objenesis:objenesis:1.2"
allprojects {
group = "org.spockframework"
version = "0.6-groovy-1.7-SNAPSHOT"
apply plugin: "idea"
apply plugin: "eclipse"
apply plugin: "groovy"
sourceCompatibility = 1.5
targetCompatibility = 1.5
compileGroovy.options.fork = false
compileTestGroovy.options.fork = false
dependencies {
groovy groovy
}
repositories {
mavenCentral()
if (isSnapshotVersion(project)) {
mavenRepo(urls: "http://snapshots.repository.codehaus.org")
}
}
}
applyReleaseProfile(project)
install {
repositories.mavenInstaller {
pom {
name = "Spock Framework - Umbrella Project"
url = "http://spockframework.org"
packaging = "pom" // TODO: has no effect, need to find a workaround
project {
description "Spock is a testing and specification framework for Java and Groovy applications."
licenses {
license {
name "The Apache Software License, Version 2.0"
url "http://www.apache.org/licenses/LICENSE-2.0.txt"
distribution "repo"
}
}
scm {
connection "scm:git:git://github.com/spockframework/spock.git"
developerConnection "scm:git:ssh://git@github.com/spockframework/spock.git"
url "http://code.google.com/p/spock/source/browse"
}
developers {
developer {
id "pniederw"
name "Peter Niederwieser"
email "pniederw@gmail.com"
}
developer {
id "ldaley"
name "Luke Daley"
email "ld@ldaley.com"
}
}
}
}
}
}
task wrapper(type: Wrapper) {
gradleVersion = "0.9.1"
}
void applyReleaseProfile(project) {
configure(project) {
apply plugin: "maven"
uploadArchives {
repositories.mavenDeployer {
repository(url: isSnapshotVersion(project) ? "file:///var/www/m2repo/snapshots" : "file:///var/www/m2repo/release")
}
}
}
}
boolean isSnapshotVersion(project) {
project.version.endsWith("-SNAPSHOT")
}