Can't compile simple project with GradleFX

ido.ran's Avatar

ido.ran

20 Jun, 2014 05:17 AM

Hi,
I'm trying to get started with GradleFX.

I'm trying to compile Starling sample project.
This is my build.gradle file:

buildscript {
repositories { mavenCentral() } dependencies { classpath group: 'org.gradlefx', name: 'gradlefx', version: '0.8.1' } }

apply plugin: 'gradlefx'

type = 'swf'

This is the output:
FAILURE: Build failed with an exception.

  • Where: Build file '/Users/idoran/temp/gradle-learn1/build.gradle' line: 10

  • What went wrong: A problem occurred evaluating root project 'gradle-learn1'.

    org.gradle.internal.nativeplatform.filesystem.FileSystems

  • Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED


What is the latest gradle version I should use?

Thank you,
Ido.

  1. Support Staff 1 Posted by Yennick Trevels on 20 Jun, 2014 06:23 AM

    Yennick Trevels's Avatar

    This problem is related to the following issue which started to appear since Gradle 1.12 due to an api change in Gradle itself: https://github.com/GradleFx/GradleFx/issues/131
    So every version before Gradle 1.12 and since 1.6 should work.

  2. 2 Posted by ido.ran on 20 Jun, 2014 10:14 AM

    ido.ran's Avatar

    Thank you, I see they change the namespace of FileSystem.
    It means it require change to GradeFX, right?

    Thank you,
    Ido.

  3. Support Staff 3 Posted by Yennick Trevels on 20 Jun, 2014 11:14 AM

    Yennick Trevels's Avatar

    Yes, that's correct. We'll need to fix this in GradleFx itself.

  4. 4 Posted by ido.ran on 20 Jun, 2014 04:13 PM

    ido.ran's Avatar

    OK, I've install Gradle 1.11 and now running just gradle commands work.
    But, I've download the example applications and when I run air-single-project idoran$ gradle compileFlex I get this output:

    :copyresources :compileFlex FAILED

    FAILURE: Build failed with an exception.

    • What went wrong: Execution failed for task ':compileFlex'.
      > Could not resolve all dependencies for configuration ':merged'. > You must specify a URL for a Maven repository.

    What is that means?

  5. 5 Posted by ido.ran on 20 Jun, 2014 04:14 PM

    ido.ran's Avatar

    When I run gradle command in mobile-android example I get this error:

    FAILURE: Build failed with an exception.

    • What went wrong: A problem occurred configuring root project 'mobile-android'.
      > Could not resolve all dependencies for configuration ':flexSDK'. > Could not find org.apache:apache-flex-sdk:4.10.0. Required by: :mobile-android:1.0-SNAPSHOT
  6. 6 Posted by ido.ran on 20 Jun, 2014 04:21 PM

    ido.ran's Avatar

    In mobile-android example, I've remove this part from build.gradle:

    dependencies {
    flexSDK group: 'org.apache', name: 'apache-flex-sdk', version: '4.10.0', ext: 'zip' airSDK group: 'com.adobe', name: 'AdobeAIRSDK', version: '3.8', ext: 'zip' }

    and export FLEX_HOME to point to my flex installation and was able to successfully compileFlex and packageMobile the app.

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