You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@netbeans.apache.org by Scott Palmer <sw...@gmail.com> on 2024/06/05 23:30:44 UTC
Re: Run Single on a Gradle 'java-library' Project
FYI.. although this workflow is functional now without adding the
application plugin there is still a warning printed:
> Task :runSingle
runSingle task is deprecated. Inspect your configuration and use just 'run'
task instead of 'runSingle'
Tested with NB 22,Gradle 8.8 JDK 17
Cheers,
Scott
On Wed, Aug 23, 2023 at 10:19 PM Scott Palmer <sw...@gmail.com> wrote:
> This was with NB 19-rc5 and the Gradle 8.3 release.
>
> Project has the 'java-library' Gradle plugin applied.
>
> I wanted to quickly try something in a Java library I was making, so I
> wrote a main method and tried to run it by right-clicking on the source
> file in the project tree and selecting Run File. It failed with the
> following:
>
>
> FAILURE: Build failed with an exception.
>
> * What went wrong:
> A problem occurred configuring project ':app'.
> > Could not create task ':app:runSingle'.
> > Could not find "run" task to execute. Please upgrade your
> configuration to use standard run-style tasks instead of deprecated
> runSingle
>
> I don't think this is new with NB 19.
> Adding the 'application' Gradle plugin allowed it to work. Would it be
> possible to allow this to work for 'java-library' projects?
>
>
> Cheers,
>
> Scott
>