forked from Unity-Technologies/kaizen
-
Notifications
You must be signed in to change notification settings - Fork 8
/
build.gradle
executable file
·45 lines (35 loc) · 874 Bytes
/
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
defaultTasks 'test'
version = '0.1.0'
allprojects {
apply plugin: 'idea'
apply plugin: 'base'
group = 'gradle-dotnet-plugins'
uploadArchives {
repositories {
ivy { url rootProject.file('../repository') }
}
}
repositories {
mavenCentral()
}
}
subprojects {
apply plugin: 'groovy'
dependencies {
compile gradleApi()
compile localGroovy()
def spockframework = 'org.spockframework:spock-core:0.7-groovy-1.8'
if (project.name == 'testing') {
compile spockframework
} else {
testCompile project(':testing')
}
testCompile spockframework
testRuntime "cglib:cglib-nodep:2.2" // enables mocking of classes (in addition to interfaces)
}
task publish(dependsOn: [test, uploadArchives])
}
dependencies {
'default' subprojects.findAll { it.name != 'testing' }.collect { project(it.path) }
}
task publish(dependsOn: uploadArchives)