Can't compile simple project with GradleFX
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.
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 20 Jun, 2014 06:23 AM
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 Posted by ido.ran on 20 Jun, 2014 10:14 AM
Thank you, I see they change the namespace of FileSystem.
It means it require change to GradeFX, right?
Thank you,
Ido.
Support Staff 3 Posted by Yennick Trevels on 20 Jun, 2014 11:14 AM
Yes, that's correct. We'll need to fix this in GradleFx itself.
4 Posted by ido.ran on 20 Jun, 2014 04:13 PM
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.
> Could not resolve all dependencies for configuration ':merged'. > You must specify a URL for a Maven repository.
What is that means?
5 Posted by ido.ran on 20 Jun, 2014 04:14 PM
When I run gradle command in mobile-android example I get this error:
FAILURE: Build failed with an exception.
> 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 Posted by ido.ran on 20 Jun, 2014 04:21 PM
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.