0

I'm having the same problem accessing the Gluon JavaDoc like described in this question: Gluon Mobile: Access JavaDoc from within NetBeans, but in Eclipse Neon.

Eclipse plugin is added to the buildscript:

repositories {
    jcenter()
    mavenCentral()
    maven { url 'http://nexus.gluonhq.com/nexus/content/repositories/releases' }
}

apply plugin: 'eclipse'

eclipse {
    classpath {
        downloadSources = true
        downloadJavadoc = true
}

}

all javadocs but Gluon are showing up.

I've tried to run gradle eclipse which downloaded the docs, but added all gradle dependencies twice. In gradleClassPathContainer and eclipseClassPathContainer, and the javadoc is still missing.

Community
  • 1
  • 1
jns
  • 6,017
  • 2
  • 23
  • 28

1 Answers1

0

These are the steps I've followed to make it work.

  • Create the project with the Gluon plugin.

  • Edit the build.gradle script and add the eclipse plugin, and include the option to download the javadoc.

Add it after the jfxmobile plugin:

apply plugin: 'eclipse'
eclipse {
    classpath {
        downloadJavadoc = true
    }
}
  • Save and refresh the gradle project.
  • The Gradle tasks should contain now the eclipse task, run it.
  • Edit the project properties, select Java Build Path. You will see the Charm jar on top. If you click the arrow, you should see that it already includes the javadoc link:

java build path

  • It is duplicated under Projects and External Dependencies, but this jar doesn't include the javadoc one. You can remove safely this node. Close the dialog.
  • Now the Charm jar will be include under Referenced libraries.

  • And you will have the javadoc available.

javdoc

José Pereda
  • 44,311
  • 7
  • 104
  • 132
  • Aaaah! I removed the duplicate jar entries in referenced libraries instead the jars in project and external dependencies, which didn't work. Following your answer it works perfectly. Thank you once again! – jns Jul 25 '16 at 22:53
  • I don't see an eclipse task in gradle tasks after changing the build file. under which folder is it supposed to be? – Mark Nov 10 '16 at 01:04
  • Nevermind. Had to restart the workspace. Refresh Gradle Project wasn't enough. Leaving this comment in case someone else needs it. – Mark Nov 10 '16 at 01:19