-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
80 lines (66 loc) · 2.27 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
buildscript {
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
classpath group: 'org.gradlefx', name: 'gradlefx', version: '1.3.3'
classpath 'de.undercouch:gradle-download-task:2.0.0'
}
}
apply plugin: 'gradlefx'
apply plugin: 'de.undercouch.download'
version = '1.0-SNAPSHOT'
repositories {
maven {
name 'hamcrest-as3-repo'
url "https://repository.sonatype.org/content/groups/forge"
}
mavenLocal()
mavenCentral()
}
//dependency versions
ext.hamcrest_as3_version = '1.1.0'
dependencies {
test group: 'hamcrest-as3', name: 'hamcrest-as3', version: hamcrest_as3_version, ext: 'swc'
//test fileTree(dir: "libs/new", include: '*.swc')
//test fileTree(dir: "libs/new", include: '*.jar')
//test files( project.file('libs/new/flexUnitTasks-4.2.0-20140410.jar').absolutePath,
// project.file('libs/new/flexUnitTasks-4.2.0-20140410-javadoc.jar').absolutePath,
// project.file('libs/new/flexUnitTasks-4.2.0-20140410-sources.jar').absolutePath,
// project.file('libs/new/flexunit-4.2.0-20140410-as3_4.12.0.swc').absolutePath,
// project.file('libs/new/flexunit-aircilistener-4.2.0-20140410-4.12.0.swc').absolutePath,
// project.file('libs/new/flexunit-flexcoverlistener-4.2.0-20140410-4.12.0.swc').absolutePath,
// project.file('libs/new/fluint-extensions-4.2.0-20140410-4.12.0.swc').absolutePath,
// project.file('libs/new/flexunit-cilistener-4.2.0-20140410-4.12.0.swc').absolutePath
// )
test fileTree(dir: "$LIB_FLEXUNIT/flexunit", include: '*.swc')
test fileTree(dir: "$LIB_FLEXUNIT/flexunit", include: '*.jar')
}
flexHome = FLEX_HOME
frameworkLinkage = 'none'
type = 'swc'
additionalCompilerOptions = [
"-target-player=$TARGET_PLAYER",
"-inline=true"
]
flexUnit {
template = 'src/test/resources/FlexUnitRunner.as'
verbose = 'true'
additionalCompilerOptions = [
"-target-player=$TARGET_PLAYER",
'+configname=air'
]
}
task downloadFlexUnit(type: de.undercouch.gradle.tasks.download.Download) {
src URL_FLEXUNIT
dest new java.io.File(TMP_DIR, "flexunit.zip")
}
task downloadAndUnzipFlexUnit(type: Copy) {
if (!file("$LIB_FLEXUNIT/flexunit").exists()) {
dependsOn downloadFlexUnit
from zipTree(downloadFlexUnit.dest)
into LIB_FLEXUNIT
}
}
test.dependsOn downloadAndUnzipFlexUnit