Skip to content

Deprecation warning for Gradle 8.0 in startScripts action #206

@msgilligan

Description

@msgilligan

In the current Supernaut.FX build, when I run:

./gradlew clean supernaut-fx-sample-hello:startScripts --warning-mode all --debug

I get the warning:

The CreateStartScripts.mainClassName 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.2/dsl/org.gradle.jvm.application.tasks.CreateStartScripts.html#org.gradle.jvm.application.tasks.CreateStartScripts:mainClassName for more details

Here's the detailed debug log and warning:

2021-09-14T08:26:48.228-0700 [DEBUG] [org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter] Executing actions for task ':supernaut-fx-sample-hello:startScripts'.
2021-09-14T08:26:48.229-0700 [DEBUG] [org.javamodularity.moduleplugin.extensions.ModuleOptions] Updating module 'app.supernaut.fx.sample.hello' with...
2021-09-14T08:26:48.229-0700 [DEBUG] [org.javamodularity.moduleplugin.extensions.ModuleOptions]   --add-modules app.supernaut.fx.micronaut
2021-09-14T08:26:48.229-0700 [WARN] [org.gradle.internal.featurelifecycle.LoggingDeprecatedFeatureHandler] 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.2/dsl/org.gradle.api.tasks.JavaExec.html#org.gradle.api.tasks.JavaExec:main for more details.
2021-09-14T08:26:48.229-0700 [WARN] [org.gradle.internal.featurelifecycle.LoggingDeprecatedFeatureHandler] The CreateStartScripts.mainClassName 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.2/dsl/org.gradle.jvm.application.tasks.CreateStartScripts.html#org.gradle.jvm.application.tasks.CreateStartScripts:mainClassName for more details.
2021-09-14T08:26:48.229-0700 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Build operation 'Execute doFirst {} action for :supernaut-fx-sample-hello:startScripts' completed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions