Skip to content
  • 3 commits
  • 11 files changed
  • 0 commit comments
  • 1 contributor
View
1 air-single-project/build.gradle
@@ -24,3 +24,4 @@ dependencies {
}
air.storepass = 'gradlefx'
+air.includeFileTrees = [fileTree(dir: 'src/main/actionscript/', include: 'assets/appIcon.png')]
View
5 air-single-project/src/main/actionscript/air-single-project.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
-<application xmlns="http://ns.adobe.com/air/application/2.6">
+<application xmlns="http://ns.adobe.com/air/application/3.1">
<id>org.gradlefx.examples.airsingleproject</id>
<filename>AirSingleProject</filename>
<name>Air Single Project Example</name>
@@ -9,4 +9,7 @@
<width>800</width>
<height>600</height>
</initialWindow>
+ <icon>
+ <image32x32>assets/appIcon.png</image32x32>
+ </icon>
</application>
View
BIN air-single-project/src/main/actionscript/assets/appIcon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
6 flexunit-single-project/build.gradle
@@ -13,14 +13,14 @@ version = '1.0-SNAPSHOT'
type = 'swc'
repositories {
- mavenRepo name: 'glassfish-releases', url: "http://maven.glassfish.org/content/groups/public"
+ mavenRepo name: 'glassfish-releases', url: "http://opensource.adobe.com/svn/opensource/cairngorm3/maven-repository"
}
//dependency versions
-hamcrest_as3_version = '1.1.0'
+hamcrest_as3_version = '1.1'
dependencies {
- test group: 'hamcrest-as3', name: 'hamcrest-as3', version: hamcrest_as3_version, ext: 'swc'
+ test group: 'org.hamcrest', name: 'hamcrest-as3', version: hamcrest_as3_version, ext: 'swc'
test files("${flexUnit.home}/flexunit-4.1.0-8-flex_4.1.0.16076.swc",
"${flexUnit.home}/flexunit-uilistener-4.1.0-8-4.1.0.16076.swc",
"${flexUnit.home}/flexunit-cilistener-4.1.0-8-4.1.0.16076.swc")
View
6 merge-swc-packages/README.txt
@@ -0,0 +1,6 @@
+This sample project shows you how to merge swc's into one swc.
+The root project compiles the combined swc wich contains the sources of 'domain' and 'util'
+
+It consists of 2 projects:
+ * domain: compiles to a SWC. Depends on the util project
+ * util: compiles to a SWC.
View
39 merge-swc-packages/build.gradle
@@ -0,0 +1,39 @@
+defaultTasks 'clean', 'test', 'compile'
+
+apply plugin: 'gradlefx'
+type = 'swc'
+
+dependencies {
+ internal project(':merge-swc-packages:util')
+ internal project(':merge-swc-packages:domain')
+}
+
+subprojects {
+
+ apply plugin: 'gradlefx'
+
+ version = '1.0-SNAPSHOT'
+
+ repositories {
+ mavenCentral()
+ mavenLocal()
+ mavenRepo name: 'yoolab-releases', url: "http://projects.yoolab.org/maven/content/repositories/releases"
+ mavenRepo name: 'yoolab-snapshots', url: "http://projects.yoolab.org/maven/content/repositories/snapshots"
+ }
+
+ //dependency versions
+ spring_actionscript_core_version = '1.2-SNAPSHOT'
+ as3commons_collections_version = '1.1'
+ as3commons_lang_version = '0.3.2'
+ graniteds_version = '2.2.0.SP1'
+
+ dependencies {
+ external group: 'org.springextensions.actionscript', name: 'spring-actionscript-core', version: spring_actionscript_core_version, ext: 'swc'
+ external group: 'org.as3commons', name: 'as3commons-collections', version: as3commons_collections_version, ext: 'swc'
+ external group: 'org.as3commons', name: 'as3commons-lang', version: as3commons_lang_version, ext: 'swc'
+
+ external group: 'org.graniteds', name: 'granite-swc', version: graniteds_version, ext: 'swc'
+ external group: 'org.graniteds', name: 'granite-essentials-swc', version: graniteds_version, ext: 'swc'
+ }
+
+}
View
5 merge-swc-packages/domain/build.gradle
@@ -0,0 +1,5 @@
+type = 'swc'
+
+dependencies {
+ external project(':multiproject-all-conventions:util')
+}
View
11 merge-swc-packages/domain/src/main/actionscript/org/gradlefx/domain/Person.as
@@ -0,0 +1,11 @@
+package org.gradlefx.domain {
+public class Person {
+
+ public var firstname:String;
+ public var lastname:String;
+
+
+ public function Person() {
+ }
+}
+}
View
0 merge-swc-packages/domain/src/main/resources/test.txt
No changes.
View
1 merge-swc-packages/util/build.gradle
@@ -0,0 +1 @@
+type = 'swc'
View
8 merge-swc-packages/util/src/main/actionscript/org/gradlefx/util/CalculateUtil.as
@@ -0,0 +1,8 @@
+package org.gradlefx.util {
+public class CalculateUtil {
+
+ public static function add(number1:int, number2:int):int {
+ return number1 + number2;
+ }
+}
+}

No commit comments for this range

Something went wrong with that request. Please try again.