You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Jose Pereda (JIRA)" <ji...@apache.org> on 2019/04/12 16:00:00 UTC

[jira] [Comment Edited] (NETBEANS-2004) No real Support for Gradle Modular Projects.

    [ https://issues.apache.org/jira/browse/NETBEANS-2004?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16816395#comment-16816395 ] 

Jose Pereda edited comment on NETBEANS-2004 at 4/12/19 3:59 PM:
----------------------------------------------------------------

I'm in the process of updating [JavaFX and NetBeans|https://openjfx.io/openjfx-docs/#IDE-NetBeans] documentation with JavaFX 12 and after the NetBeans 11 release and the new gradle support.

While the plugin is really great, it is quite unfortunate it doesn't support modular projects yet.

It looks like only existing modules in the module path for NetBeans (so just those in the JDK) are recognized, but any third-party module added to the project's dependencies is not. So it is not just a JavaFX thing.

For instance:
{code:java}
dependencies {
    implementation 'javax.xml.bind:jaxb-api:2.3.1'
}
{code}
{code:java}
 module mymodule { 
    requires java.logging;  // <-- works
    requires java.xml.bind; // <-- doesn't work: "module not found"
}
{code}
Somehow the modules added by the project should be included into the module-path that NetBeans has for the project, in the very same way that you can do this manually for Java projects (Properties -> Libraries -> Compile/Run -> ModulePath).

 

Any tip on how to hack a temporary solution (like editing netbeans.conf to provide an extra module path option...)? Otherwise I'm afraid I'd have to remove the modular projects with NetBeans from the JavaFX documentation.

 

 


was (Author: jpereda):
I'm in the process of updating [JavaFX and NetBeans|https://openjfx.io/openjfx-docs/#IDE-NetBeans] documentation with JavaFX 12 and after the NetBeans 11 release and the new gradle support.

While the plugin is really great, it is quite unfortunate it doesn't support modular projects yet.

It looks like only existing modules in the module path for NetBeans (so just those in the JDK) are recognized, but any third-party module added to the project's dependencies is not. So it is not just a JavaFX thing.

For instance:
{code:java}
dependencies {
    implementation 'javax.xml.bind:jaxb-api:2.3.1'
}
{code}
{code:java}
 module mymodule { 
    requires java.logging;  // <-- works
    requires java.xml.bind; // <-- doesn't work: "module not found"
}
{code}
Somehow the modules added by the project should be included into the module-path that NetBeans has for the project, in the very same way that you can do this manually for Java projects (Properties -> Libraries -> Compile/Run -> ModulePath).

 

Any tip on how to hack a temporary solution (like editing netbeans.conf to provide an extra module path option...)? Otherwise I'm afraid I have to remove the modular projects with NetBeans from the JavaFX documentation.

 

 

> No real Support for Gradle Modular Projects.
> --------------------------------------------
>
>                 Key: NETBEANS-2004
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-2004
>             Project: NetBeans
>          Issue Type: Bug
>          Components: projects - Gradle
>    Affects Versions: 11.0
>         Environment: Product Version: Apache NetBeans IDE Dev (Build 20190127-unknown-revn)
> Java: 11.0.2; OpenJDK 64-Bit Server VM 11.0.2+7
> Runtime: OpenJDK Runtime Environment 11.0.2+7
>            Reporter: Jose Pereda
>            Assignee: Laszlo Kishalmi
>            Priority: Critical
>         Attachments: Bildschirmfoto 2019-02-06 um 17.22.17.png, Captura de pantalla 2019-01-27 a las 19.55.13.png, gradleJava.zip
>
>
> Opening a gradle non-modular project works fine, but when the project is modular, it shows errors all over the place.
> However, Clean, Build, Run, or any of the gradle tasks work fine. 
> !Captura de pantalla 2019-01-27 a las 19.55.13.png|width=1328,height=789!
>  
> See OpenJFX samples [non-modular|https://github.com/openjfx/samples/tree/master/IDE/NetBeans/Non-Modular/Gradle/hellofx] and [modular|https://github.com/openjfx/samples/tree/master/IDE/NetBeans/Modular/Gradle/hellofx].
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists