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 <swpal...@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 >