jiakuan / gwt-gradle-plugin

Gradle plugin to support GWT related tasks.
https://gwt-gradle.docstr.org
Other
63 stars 34 forks source link

Deprecation warning with gradle 7 #50

Closed cdietrich closed 3 years ago

cdietrich commented 3 years ago

With Gradle 7 i get the following deprecation warning

13:02:26  > Task :org.eclipse.xtend.lib.gwt.test:compileGwt
13:02:26  The JavaExecHandleBuilder.setMain(String) method has been deprecated. This is scheduled to be removed in Gradle 8.0. Please use the mainClass property instead. Consult the upgrading guide for further information: https://docs.gradle.org/7.1.1/userguide/upgrading_version_7.html#java_exec_properties
13:02:26  Aug 12, 2021 11:02:25 AM java.util.prefs.FileSystemPreferences$1 run

it looks like the internally create javaexec task uses main = '...' whilst gradle 7 expects a mainClass = '....'

am not sure if this can be done in a way to support both versions