-
Notifications
You must be signed in to change notification settings - Fork 16
/
build.gradle
executable file
·71 lines (57 loc) · 1.41 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
version = '0.3.5'
allprojects {
apply plugin: 'idea'
apply plugin: 'eclipse'
apply plugin: 'base'
group = 'kaizen'
uploadArchives {
repositories {
ivy { url rootProject.file('../repository') }
}
}
repositories {
mavenCentral()
}
}
subprojects {
apply plugin: 'groovy'
dependencies {
compile gradleApi()
groovy 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 {
subprojects.findAll { it.name != 'testing' }.each {
'default' project(path: it.path)
}
}
task publish(dependsOn: uploadArchives)
task unityPackage <<{
def unityExecutable = project.hasProperty('unityExecutable') ?
project.property('unityExecutable') :
'/Applications/Unity/Unity.app/Contents/MacOS/Unity'
def logFile = file("$buildDir/unityPackage.log")
logFile.parentFile.mkdirs()
project.exec {
commandLine unityExecutable
args '-batchMode'
args '-quit'
args '-projectPath'
args file('templates/kaizen.unityPackage')
args '-exportPackage'
args 'Assets/kaizen'
args file("$buildDir/kaizen.unityPackage")
args '-cleanedLogFile'
args logFile
}
println logFile.text
}