Failed to apply plugin [class 'org.gradlefx.plugins.GradleFxPlugin']
I got a github project and it use IDEA gradle build that with GradleFx 1.2.0
the build script like this
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath group: 'org.gradlefx', name: 'gradlefx', version: '1.2.0'
}
}
repositories {
ivy {
name 'Apache Flex'
artifactPattern 'http://archive.apache.org/dist/flex/[revision]/binaries/[module]-[revision]-bin.[ext]'
}
ivy {
name 'Player Globals'
artifactPattern 'http://fpdownload.macromedia.com/get/flashplayer/installers/archive/[module]/[module][revision].[ext]'
}
}
apply plugin: org.gradlefx.plugins.GradleFxPlugin
It shows error :
* What went wrong:
A problem occurred evaluating script.
> Failed to apply plugin [class 'org.gradlefx.plugins.GradleFxPlugin']
> Declaring custom 'build' task when using the standard Gradle lifecycle plugins is not allowed.
So could you tell me how to setup this thing? I tried use 1.4.0 and alpply plugin: 'ideafx' , it does not work
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Yennick Trevels on 10 Sep, 2017 04:09 PM
Hi,
The error you got related to the custom 'build' task has been fixed GradleFx 1.4.0, but since 1.5.0 is already available I recommend upgrading to that version.
Maybe it was a spelling mistake in your post, but it should be:
This works on my local machine with GradleFx 1.5.02 Posted by Niddhi on 27 Feb, 2019 07:40 PM
I am using gradleFx and applying gradleFx plugin:
apply plugin: 'gradlefx'
and then defining attributes under task compileFlex
compileFlex {
flexHome = "${projectDir}/flex-sdk"
srcDirs = ["${projectDir}/locale/en_US/"]
localeDir = "${projectDir}/locale"
type = 'swf'
locales = ['en_US']
output = "${projectDir}/webapp/'locales'/"
}
I am getitng the following error:
Failed to notify project evaluation listener. org/apache/commons/lang/StringUtils
Any pointers are helpful.
Thanks,