On 4/9/19 9:36 AM, Peter Steele wrote:
>> Is there a way to go back to the old plugin by chance while still using
Netbeans 11?

There is, you can disable the gradle plugin that comes built in and install the nbm from

https://github.com/kelemen/netbeans-gradle-project/releases


That didn't work either. I'm starting to think this is an IDE level problem and nothing to do with the built-in Gradle support.


I tried to downgrade to Netbeans 10 but attempting to install Groovy or Gradle just results in a networking error:

Networking problem in:

https://netbeans.apache.org/nb/updates/10.0/groovy/org-netbeans-modules-groovy-editor.nbm





On Tue, Apr 9, 2019 at 2:58 PM Ty Young <youngty1...@gmail.com <mailto:youngty1...@gmail.com>> wrote:


    On 4/9/19 8:22 AM, Mark A. Claassen wrote:
    > I am not exactly sure what is going on.  I wonder if that is
    just a bad error message.
    > Java FX is no longer included in Java (since Java 9). Probably,
    you were running the older version of Netbeans with Java 8, but
    not Nebeans 11.


    I am running a built from source version of JDK 11 with JavaFX
    built-in.
    This build worked with Netbeans 10 and the Gradle plugin with nothing
    changed. The application is also a java 9+ module.


    >
    > In your <Netbeans 11 install dir>/etc/netbeans.conf file, near
    the bottom, you can set the Java version used to run Netbeans.  If
    you change that to a Java 8 version, I don’t think you will have
    any problems.
    >
    > If you need / want to use Java 9+ to run Netbeans, you can
    change your Gradle build.  For you compile scripts, direct the
    compiler to use Java 8:
    >               sourceCompatibility = 1.8
    >               targetCompatibility = 1.8
    >               options.fork = true;
    >               options.forkOptions.javaHome=new File(<path to JDK>)
    >
    > Hope this helps, or at least points you in the right direction.


    Sadly it did not. It still shows the version as 5 in the editor and
    unspecified in the project properties. It gives a warning about the
    build file not being correct as well but i'm not sure what exactly is
    wrong. It doesn't say exactly.


    Is there a way to go back to the old plugin by chance while still
    using
    Netbeans 11?


    >
    > Mark Claassen
    > Senior Software Engineer
    >
    > Donnell Systems, Inc.
    > 130 South Main Street
    > Leighton Plaza Suite 375
    > South Bend, IN  46601
    > E-mail: mailto:mclaas...@ocie.net <mailto:mclaas...@ocie.net>
    > Voice: (574)232-3784
    > Fax: (574)232-4014
    >
    > -------------------------------------------
    > Confidentiality Notice: OCIESERVICE
    > -------------------------------------------
    > The contents of this e-mail message and any attachments are
    intended solely for the addressee(s) named in this message. This
    communication is intended to be and to remain confidential. If you
    are not the intended recipient of this message, or if this message
    has been addressed to you in error, please immediately alert the
    sender by reply e-mail and then delete this message and its
    attachments. Do not deliver, distribute, copy, disclose the
    contents or take any action in reliance upon the information
    contained in the communication or any attachments.
    >
    >
    > -----Original Message-----
    > From: Ty Young <youngty1...@gmail.com
    <mailto:youngty1...@gmail.com>>
    > Sent: Tuesday, April 9, 2019 9:09 AM
    > To: us...@netbeans.incubator.apache.org
    <mailto:us...@netbeans.incubator.apache.org>
    > Subject: Netbeans 11 and Gradle broken builds
    >
    > Hi,
    >
    >
    > After upgrading to Netbeans 11, my JavaFX application no longer
    builds in Netbeans. I get an exception that says the following:
    >
    >
    > java.lang.ArrayIndexOutOfBoundsException: Index 2 out of bounds
    for length 2
    >       at
    >
    
org.netbeans.modules.gradle.api.GradleDependency$ModuleDependency.<init>(GradleDependency.java:85)
    >       at
    >
    
org.netbeans.modules.gradle.api.GradleBaseProjectBuilder.processDependencies(GradleBaseProjectBuilder.java:149)
    >       at
    >
    
org.netbeans.modules.gradle.api.GradleBaseProjectBuilder.build(GradleBaseProjectBuilder.java:75)
    >       at
    >
    
org.netbeans.modules.gradle.api.GradleBaseProjectBuilder$Extractor.extract(GradleBaseProjectBuilder.java:288)
    >       at
    >
    
org.netbeans.modules.gradle.GradleProjectCache.createGradleProject(GradleProjectCache.java:432)
    >       at
    >
    
org.netbeans.modules.gradle.GradleProjectCache.loadGradleProject(GradleProjectCache.java:257)
    >       at
    >
    
org.netbeans.modules.gradle.GradleProjectCache.access$100(GradleProjectCache.java:85)
    > [catch] at
    >
    
org.netbeans.modules.gradle.GradleProjectCache$ProjectLoaderTask.call(GradleProjectCache.java:348)
    >       at
    >
    
org.netbeans.modules.gradle.GradleProjectCache$ProjectLoaderTask.call(GradleProjectCache.java:326)
    >       at
    java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
    >       at
    >
    org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
    >       at
    >
    org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
    >       at
    org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)
    >       at
    >
    org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
    >
    >
    > previously in Netbeans 10 I had been using a Gradle plugin which was
    > originally for Netbeans 9 and it worked just fine. The error
    messages
    > being displayed in the editor itself claim that the source is set to
    > java 5 but i'm using java 11. What's going on here?
    >
    >
    >
    ---------------------------------------------------------------------
    > To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
    <mailto:users-unsubscr...@netbeans.apache.org>
    > For additional commands, e-mail: users-h...@netbeans.apache.org
    <mailto:users-h...@netbeans.apache.org>
    >
    > For further information about the NetBeans mailing lists, visit:
    > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
    >
    >
    >
    ---------------------------------------------------------------------
    > To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
    <mailto:users-unsubscr...@netbeans.apache.org>
    > For additional commands, e-mail: users-h...@netbeans.apache.org
    <mailto:users-h...@netbeans.apache.org>
    >
    > For further information about the NetBeans mailing lists, visit:
    > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
    >

    ---------------------------------------------------------------------
    To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
    <mailto:users-unsubscr...@netbeans.apache.org>
    For additional commands, e-mail: users-h...@netbeans.apache.org
    <mailto:users-h...@netbeans.apache.org>

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

Reply via email to