jponge / vertx-gradle-plugin

An opinionated Gradle plugin for Vert.x projects
Apache License 2.0
113 stars 15 forks source link

Use JavaExec.mainClass instead of JavaExec.main #56

Closed k-mack closed 3 years ago

k-mack commented 3 years ago

Gradle 7 deprecates JavaExec.main in favor of JavaExec.mainClass. Using this plugin with Gradle 7 emits the following warning:

$ ./gradlew --warning-mode=all help

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.1.1/dsl/org.gradle.api.tasks.JavaExec.html#org.gradle.api.tasks.JavaExec:main for more details.
rjaros commented 1 year ago

The plugin doesn't work with Gradle 8 because this fix was not released. Any chance of the new release?

jponge commented 1 year ago

I'll have a look

jponge commented 1 year ago

I've pushed a 1.4.0 release, looks like Gradle folks will need to review before it's public