Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import org.apache.tools.ant.taskdefs.condition.Os
- //allprojects {
- // group = 'mcm'
- // version = 'current'
- // //mcm.root
- //}
- buildscript {
- repositories {
- mavenCentral()
- maven {
- url "https://oss.sonatype.org/content/repositories/snapshots"
- }
- }
- dependencies {
- classpath group: 'org.gradlefx', name: 'gradlefx', version: '0.8.3'
- }
- }
- subprojects {
- apply plugin: 'gradlefx'
- version = 'current'
- def airSDKOS = Os.isFamily(Os.FAMILY_WINDOWS) ? 'win' : 'mac'
- // to use wine on linux: def airSDKExt = os.contains("mac os") ? 'tbz2' : 'zip'
- // to use wine on linux: def airSDKOS = os.contains("mac os") ? 'mac' : 'win'
- repositories {
- mavenCentral()
- mavenLocal()
- maven {
- name 'yoolab-releases'
- url 'http://projects.yoolab.org/maven/content/repositories/releases'
- }
- maven {
- name 'yoolab-snapshots'
- url 'http://projects.yoolab.org/maven/content/repositories/snapshots'
- }
- 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/' + airSDKOS + '/download/[revision]/[module].[ext]'
- }
- }
- playerVersion = "17.0"
- dependencies {
- flexSDK group: 'org.apache', name: 'apache-flex-sdk', version: '4.13.0', ext: Os.isFamily(Os.FAMILY_WINDOWS) ? 'zip' : 'tar.gz'
- airSDK group: 'com.adobe', name: 'AdobeAIRSDK', version: '17.0', ext: Os.isFamily(Os.FAMILY_WINDOWS) ? 'zip' : 'tbz2'
- }
- // publishDir = 'publishDirectory'
- additionalCompilerOptions = [
- '-debug=false',
- '-optimize=true',
- '-target-player=17.0',
- ]
- jvmArguments = [
- '-Xmx1024m',
- '-Xms512m'
- ]
- sdkAutoInstall {
- showPrompts = false
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement