-
Notifications
You must be signed in to change notification settings - Fork 108
/
build.gradle
48 lines (40 loc) · 1.21 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
buildscript {
repositories {
mavenCentral()
maven { url "https://oss.sonatype.org/content/groups/public"}
}
dependencies {
classpath group: 'org.gradlefx', name: 'gradlefx', version: '0.8.1'
classpath 'com.github.townsfolk:gradle-release:1.2'
}
}
apply plugin: 'release'
task wrapper(type: Wrapper) {
gradleVersion = '1.10'
}
apply plugin: 'gradlefx'
def libTestDir = "lib/test"
dependencies {
test files(
"${libTestDir}/hamcrest-as3-only-1.1.3.swc",
"${libTestDir}/mockolate-0.12.4-flex.swc",
"${libTestDir}/flexunit-4.1.0-x-as3_4.6.0.swc",
"${libTestDir}/flexunit-cilistener-4.1.0-x-4.6.0.swc",
"${libTestDir}/flexUnitTasks-4.1.0-x.jar",
"${libTestDir}/flexunit-uilistener-4.1.0-x-4.6.0.swc")
}
flexUnit {
command = "${flexHome}/runtimes/player/11.1/win/FlashPlayerDebugger.exe"
}
srcDirs = ['src/main']
testDirs = ['src/test']
mainClass = 'flashwavrecorder/Recorder.as'
output='recorder'
type = 'swf'
frameworkLinkage = 'merged'
task dist( dependsOn: [test, build], type: Copy ) {
configure {
from file("${buildDir}/${output}.swf")
into "html/"
}
}