forked from feathersui/feathersui-starling
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
123 lines (97 loc) · 3.74 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
// =================================================================================================
//
// Feathers Build including two themese
//
// This program is free software. You can redistribute and/or modify it
// in accordance with the terms of the accompanying license agreement.
//
// =================================================================================================
buildscript {
repositories {
mavenCentral()
maven { url 'https://raw.githubusercontent.com/vpmedia/mvnrepository/master'}
}
dependencies {
classpath group: 'org.gradlefx', name: 'gradlefx', version: '1.3.2'
}
}
apply plugin: 'gradlefx'
apply plugin: 'flashbuilder'
// --------------------------------------------
// OS type needed for AdobeAIR resolution
// --------------------------------------------
import org.apache.tools.ant.taskdefs.condition.Os
def os = ""
if(Os.isFamily(Os.FAMILY_WINDOWS)){ os = "win" }
if(Os.isFamily(Os.FAMILY_UNIX)) { os = "unix" }
if(Os.isFamily(Os.FAMILY_MAC)) { os = "mac" }
// --------------------------------------------
// Repositories and dependencies for build
// --------------------------------------------
repositories {
ivy {
url "s3://maven.crazyroosters.com/maven"
credentials(AwsCredentials) {
accessKey 'AKIAIDUYTCXG4CCQSPOA'
secretKey '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'
}
}
ivy {
name 'Apache Flex'
artifactPattern 'http://archive.apache.org/dist/flex/[revision]/binaries/[module]-[revision]-bin.[ext]'
}
ivy {
name 'Adobe Air SDK'
artifactPattern 'http://download.macromedia.com/air/mac/download/[revision]/[module].[ext]'
}
ivy
{
name 'Apache FlexUnit'
artifactPattern 'http://s3-us-west-1.amazonaws.com/crazyroosters.maven-public/flexunit/[module]-[revision].[ext]'
}
}
dependencies {
flexSDK group: 'org.apache', name: 'apache-flex-sdk', version: '4.15.0', ext: Os.isFamily(Os.FAMILY_WINDOWS) ? 'zip' : 'tar.gz'
airSDK group: 'com.adobe', name: 'AdobeAIRSDK',version: '20.0', ext: Os.isFamily(Os.FAMILY_WINDOWS) ? 'zip' : 'tbz2'
external group: 'com.crazyroosters', name: 'starling', version:"1.7.1-SNAPSHOT",ext:'swc', changing: true
test group: 'org.flexunit', name: 'flexunit', version: '4.2.0-20140410-as3_4.12.0', ext: 'swc'
test group: 'org.flexunit', name: 'flexUnitTasks', version: '4.2.0-20140410', ext: 'jar'
test group: 'org.flexunit', name: 'flexunit-cilistener', version: '4.2.0-20140410-4.12.0', ext: 'swc'
test group: 'org.flexunit', name: 'flexunit-uilistener', version: '4.2.0-20140410-4.12.0', ext: 'swc'
test group: 'org.flexunit', name: 'hamcrest-as3-only', version: '1.1.3', ext: 'swc'
}
// Aggressively renew
configurations.all {
resolutionStrategy {
cacheChangingModulesFor 0, 'seconds'
}
}
sdkAutoInstall {
showPrompts = false
}
// --------------------------------------------
// Build Variables
// --------------------------------------------
version= '2.3.1-SNAPSHOT'
group = 'com.crazyroosters'
type = 'swc'
srcDirs = ['source', 'themes/MetalWorksDesktopTheme/source', 'themes/MetalWorksMobileTheme/source']
additionalCompilerOptions = [
'-target-player=20.0',
'-strict=false'
]
// --------------------------------------------
// Tasks
// --------------------------------------------
defaultTasks 'clean', 'compileFlex', 'uploadArchives'
uploadArchives {
repositories {
ivy {
url "s3://maven.crazyroosters.com/maven"
credentials(AwsCredentials) {
accessKey 'AKIAIDUYTCXG4CCQSPOA'
secretKey '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'
}
}
}
}