forked from castlabs/dashas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
67 lines (55 loc) · 1.69 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
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath group: 'org.gradlefx', name: 'gradlefx', version: '0.8.2'
}
}
apply plugin: 'gradlefx'
apply plugin: 'flashbuilder'
type = 'swf'
version = '1.0'
mainClass = 'com/castlabs/dash/DashPlugin.as'
output = 'dashas'
repositories {
ivy {
name 'Castlabs'
artifactPattern 'http://dashas.castlabs.com/ivy/[module]-[revision].[ext]'
}
}
dependencies {
flexSDK group: 'org.apache', name: 'apache-flex-sdk', version: '4.12.1', ext: 'tar.gz'
test group: 'org.flexunit', name: 'flexUnitTasks', version: '4.2.0', ext: 'jar'
test group: 'org.flexunit', name: 'flexunit', version: '4.2.0', ext: 'swc'
test group: 'org.flexunit', name: 'flexunit-cilistener', version: '4.2.0', ext: 'swc'
test group: 'org.flexunit', name: 'flexunit-uilistener', version: '4.2.0', ext: 'swc'
test group: 'mockolate', name: 'mockolate', version: '0.12.4', ext: 'swc'
test group: 'org.hamcrest', name: 'hamcrest', version: '1.1.3', ext: 'swc'
}
sdkAutoInstall {
showPrompts = false
}
// if a profile isn't defined, a debug is default
if (!project.hasProperty("profile")) {
project.ext.profile = "debug"
}
apply from: "${profile}-profile.gradle"
task copySwfToDemo(type: Copy) {
mustRunAfter compileFlex
from file(project.copyFrom)
into project.copyTo
}
task compile {
dependsOn compileFlex
dependsOn copySwfToDemo
}
def libDir="${rootProject.projectDir}/lib"
task exportDependencies << {
ant.delete (dir:libDir, failonerror:false)
configurations.each { config ->
config.each { f ->
ant.copy (file: f, overwrite:true, todir:libDir)
}
}
}