Advertisement
Guest User

Untitled

a guest
Apr 15th, 2015
314
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.03 KB | None | 0 0
  1. import org.apache.tools.ant.taskdefs.condition.Os
  2.  
  3. //allprojects {
  4. // group = 'mcm'
  5. // version = 'current'
  6. // //mcm.root
  7. //}
  8.  
  9. buildscript {
  10. repositories {
  11. mavenCentral()
  12. maven {
  13. url "https://oss.sonatype.org/content/repositories/snapshots"
  14. }
  15. }
  16. dependencies {
  17. classpath group: 'org.gradlefx', name: 'gradlefx', version: '0.8.3'
  18. }
  19. }
  20.  
  21. subprojects {
  22.  
  23. apply plugin: 'gradlefx'
  24.  
  25. version = 'current'
  26.  
  27. def airSDKOS = Os.isFamily(Os.FAMILY_WINDOWS) ? 'win' : 'mac'
  28. // to use wine on linux: def airSDKExt = os.contains("mac os") ? 'tbz2' : 'zip'
  29. // to use wine on linux: def airSDKOS = os.contains("mac os") ? 'mac' : 'win'
  30.  
  31. repositories {
  32. mavenCentral()
  33. mavenLocal()
  34. maven {
  35. name 'yoolab-releases'
  36. url 'http://projects.yoolab.org/maven/content/repositories/releases'
  37. }
  38. maven {
  39. name 'yoolab-snapshots'
  40. url 'http://projects.yoolab.org/maven/content/repositories/snapshots'
  41. }
  42. ivy {
  43. name = 'Apache Flex'
  44. artifactPattern 'http://archive.apache.org/dist/flex/[revision]/binaries/[module]-[revision]-bin.[ext]'
  45. }
  46. ivy {
  47. name = 'Adobe Air SDK'
  48. artifactPattern 'http://download.macromedia.com/air/' + airSDKOS + '/download/[revision]/[module].[ext]'
  49. }
  50. }
  51.  
  52. playerVersion = "17.0"
  53. dependencies {
  54. flexSDK group: 'org.apache', name: 'apache-flex-sdk', version: '4.13.0', ext: Os.isFamily(Os.FAMILY_WINDOWS) ? 'zip' : 'tar.gz'
  55. airSDK group: 'com.adobe', name: 'AdobeAIRSDK', version: '17.0', ext: Os.isFamily(Os.FAMILY_WINDOWS) ? 'zip' : 'tbz2'
  56. }
  57.  
  58. // publishDir = 'publishDirectory'
  59.  
  60. additionalCompilerOptions = [
  61. '-debug=false',
  62. '-optimize=true',
  63. '-target-player=17.0',
  64. ]
  65.  
  66. jvmArguments = [
  67. '-Xmx1024m',
  68. '-Xms512m'
  69. ]
  70.  
  71. sdkAutoInstall {
  72. showPrompts = false
  73. }
  74. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement