BUILD FAILED: Generating asdoc
I'm trying to generate docs for a SWC lib project. I'm running this command from project root where gradle.build lives:
$ gradle asdoc
gradle.build
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath group: 'org.gradlefx', name: 'gradlefx', version: '0.8.3'
}
}
apply plugin: 'gradlefx'
flexHome = '/Applications/Adobe Flash Builder 4.7/sdks/4.5.1'
version = '1.0-SNAPSHOT'
type = 'swc'
frameworkLinkage = 'external' // The default for a 'swc' library project is 'external'
srcDirs = [
'src'
]
dependencies {
external fileTree(
dir: '../../adunit/build/production/InteractiveAsset/', include: 'interactiveAsset.swc'
)
external files("libs/greensock.swc")
}
fatSwc = true
asdoc.outputDir = 'docs'
ERROR
Execution failed for task ':asdoc'.
Cannot call TaskInputs.dir(Object) on task ':asdoc' after task has started execution.
I'm new to Gradle so there's that. What do I have wrong in the build file and am I running it correctly?
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 11 Sep, 2014 07:25 AM
Hi,
I think you're using Gradle 2.0, which is why you are getting this error, because GradleFx isn't compatible with it yet.
In Gradle 2.0 they introduced a change (see http://www.gradle.org/docs/2.0/release-notes#tasks-cannot-be-change...) which breaks some of the GradleFx code.
There's already an issue created for Gradle 2.0 support in GradleFx, so it's on my plate (or anyone else who wants to fix it) :)
Using any version lower than 2.0 should work
2 Posted by patrick.wood on 11 Sep, 2014 03:50 PM
Rolled back to 1.8 and we are golden! Thanks Yennick.
On Thursday, September 11, 2014, Yennick Trevels <
[email blocked]> wrote: