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 2023/01/11 00:29:07 UTC

Prepare for more Gradle tweaks

I just noticed that the injected 'runSingle' task seems to provoke this
warning"

> Task :app:runSingle
Hello World!

Deprecated Gradle features were used in this build, making it incompatible
with Gradle 8.0.

That's running the Java file from NetBeans with Gradle 7.5 via the
Gradle Wrapper.  Doing a 'clean build' gives no such warning.
Gradle 8.0-rc-1 is already available, so we better get on this stuff...

I changed the run.single parameters to add '--warning-mode all --stacktrace'
to get more specific information:

The JavaExec.main property has been deprecated. This is scheduled to be
removed in Gradle 8.0. Please use the mainClass property instead. See
https://docs.gradle.org/7.5/dsl/org.gradle.api.tasks.JavaExec.html#org.gradle.api.tasks.JavaExec:main
for more details.
at org.gradle.api.tasks.JavaExec.setMain(JavaExec.java:427)
at org.gradle.api.tasks.JavaExec_Decorated.setMain(Unknown Source)
at
org.netbeans.modules.gradle.tooling.NetBeansRunSinglePlugin.lambda$addTask$2(NetBeansRunSinglePlugin.java:85)

I filed issue #5267 <https://github.com/apache/netbeans/issues/5267>
and created pull-request #5268
<https://github.com/apache/netbeans/pull/5268>

Cheers,

Scott

Re: Prepare for more Gradle tweaks

Posted by László Kishalmi <la...@gmail.com>.
Thanks!

Going to file a PR soon>
BTW: Gradle 8.0-rc-1 is on master.

On Tue, Jan 10, 2023 at 4:30 PM Scott Palmer <sw...@gmail.com> wrote:

> I just noticed that the injected 'runSingle' task seems to provoke this
> warning"
>
> > Task :app:runSingle
> Hello World!
>
> Deprecated Gradle features were used in this build, making it incompatible
> with Gradle 8.0.
>
> That's running the Java file from NetBeans with Gradle 7.5 via the
> Gradle Wrapper.  Doing a 'clean build' gives no such warning.
> Gradle 8.0-rc-1 is already available, so we better get on this stuff...
>
> I changed the run.single parameters to add '--warning-mode all
> --stacktrace'
> to get more specific information:
>
> The JavaExec.main property has been deprecated. This is scheduled to be
> removed in Gradle 8.0. Please use the mainClass property instead. See
>
> https://docs.gradle.org/7.5/dsl/org.gradle.api.tasks.JavaExec.html#org.gradle.api.tasks.JavaExec:main
> for more details.
> at org.gradle.api.tasks.JavaExec.setMain(JavaExec.java:427)
> at org.gradle.api.tasks.JavaExec_Decorated.setMain(Unknown Source)
> at
>
> org.netbeans.modules.gradle.tooling.NetBeansRunSinglePlugin.lambda$addTask$2(NetBeansRunSinglePlugin.java:85)
>
> I filed issue #5267 <https://github.com/apache/netbeans/issues/5267>
> and created pull-request #5268
> <https://github.com/apache/netbeans/pull/5268>
>
> Cheers,
>
> Scott
>