Minimal project fails

Roberto's Avatar

Roberto

22 Jul, 2012 08:46 PM

I'm trying to migrate to Gradle a Java/Flex project, and I'm doing some basic tests first.

I'm trying to compile a Flex library but I'm getting this error:

Could not find property 'compile' on task set.
groovy.lang.MissingPropertyException: Could not find property 'compile' on task set.
    at org.gradle.api.internal.AbstractDynamicObject.propertyMissingException(AbstractDynamicObject.java:43)
    at org.gradle.api.internal.AbstractDynamicObject.getProperty(AbstractDynamicObject.java:35)
    at org.gradle.api.internal.CompositeDynamicObject.getProperty(CompositeDynamicObject.java:60)
    at org.gradle.api.internal.tasks.DefaultTaskContainer_Decorated.getProperty(Unknown Source)
    at org.codehaus.groovy.runtime.callsite.PogoGetPropertySite.getProperty(PogoGetPropertySite.java:47)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGetProperty(AbstractCallSite.java:227)
    at org.gradlefx.plugins.GradleFxPlugin.addDependsOnOtherProjects(GradleFxPlugin.groovy:121)

I've reduced the build.gradle to the following and I still get the same error:

buildscript {
    repositories {
        mavenCentral()
    }

    dependencies {
        classpath "org.gradlefx:gradlefx:0.5"
    }
}

apply plugin: "gradlefx"

flexHome = "/opt/flex_sdk"

I'm using Gradle version 1.0.

Any clue of what might be happening??? Thanks.

  1. Support Staff 1 Posted by Yennick Trevels on 23 Jul, 2012 07:15 AM

    Yennick Trevels's Avatar

    Hi Roberto,

    Looks like you're missing the type property in your buildscript. This property has to be specified so GradleFx knows how to compile your project.
    You can choose between these three statements:
    type = 'swc'
    type = 'swf'
    type = 'air'

  2. 2 Posted by Roberto on 23 Jul, 2012 07:39 AM

    Roberto's Avatar

    I had it in the full script, but I hadn't quoted swc. I wrote type = swc... I'm new to Gradle/Groovy :-P

    Now it gives other errors... I'll try to solve them

    Thanks.

  3. Support Staff 3 Posted by Yennick Trevels on 23 Jul, 2012 07:42 AM

    Yennick Trevels's Avatar

    Cool, just let me know when you get stuck and I'll see if I can help you.

  4. Yennick Trevels closed this discussion on 25 Aug, 2012 10:13 AM.

Comments are currently closed for this discussion. You can start a new one.

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