Well, you can add your own runSingle action and or update the Build Actions for run.single action in the project properties.

Unfortunately it's pretty hard to say what to do without seeing the whole stuff in action.

On 9/26/23 22:32, Thomas Kellerer wrote:
Is there anything I can do about, or do I have to roll back to 18 (or wait for 
20)?

Regards
Thomas


László Kishalmi schrieb am 26.09.2023 um 17:10:
Could be a regression caused by this one:
https://github.com/apache/netbeans/pull/6003 
<https://github.com/apache/netbeans/pull/6003>

On Tue, Sep 26, 2023 at 5:54 AM Thomas Kellerer <sham...@gmx.net 
<mailto:sham...@gmx.net>> wrote:

     Hello,

     with NetBeans 19 and Gradle 7.5.1 "runFile" on a class with a main method 
does not work any more:

     Caused by: 
org.gradle.api.internal.tasks.DefaultTaskContainer$TaskCreationException: Could 
not create task ':server:runSingle'.
             at 
org.gradle.api.internal.tasks.DefaultTaskContainer.taskCreationException(DefaultTaskContainer.java:715)
     ...
     ...
     Caused by: org.gradle.tooling.BuildException: Could not find "run" task to 
execute. Please upgrade your configuration to use standard run-style tasks instead of 
deprecated runSingle
             at 
org.netbeans.modules.gradle.tooling.NetBeansRunSinglePlugin.lambda$addTask$2(NetBeansRunSinglePlugin.java:107)


     How can I upgrade/change my (NetBeans?) configuration to use the 
"run-style" task instead?

     This was working with the same Gradle project and NetBeans 18 without 
problems.


     I am using Java 17 if that matters.

     Thomas
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: 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
For additional commands, e-mail: 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