To use the plugin in your project, you’ll have to add the following to your build.gradle file:
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath group: 'org.gradlefx', name: 'gradlefx', version: '0.5'
}
}
apply plugin: 'gradlefx'
Make sure that the buildscript structure is at the top of your build file.
set the FLEX_HOME environment variable (convention), this should point to your Flex/AIR SDK installation.
set the flexHome convention property to the location of your Flex/AIR SDK
flexHome = "C:/my/path/to/the/flex/sdk"
specify the Flex/AIR SDK as a dependency. See Flex/AIR SDK Auto Install
example project type definition:
type = 'swc'