Failed to apply plugin [class 'org.gradlefx.plugins.GradleFxPlugin']

Qian's Avatar

Qian

04 Aug, 2017 03:06 AM

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

  1. Support Staff 1 Posted by Yennick Trevels on 10 Sep, 2017 04:09 PM

    Yennick Trevels's Avatar

    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:

     apply plugin: 'ideafx'
    
    This works on my local machine with GradleFx 1.5.0
  2. 2 Posted by Niddhi on 27 Feb, 2019 07:40 PM

    Niddhi's Avatar

    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,

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

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