Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace JavaExec:main with mainClass #680

Closed
ben-manes opened this issue Jun 6, 2021 · 2 comments
Closed

Replace JavaExec:main with mainClass #680

ben-manes opened this issue Jun 6, 2021 · 2 comments

Comments

@ben-manes
Copy link

ben-manes commented Jun 6, 2021

The JavaExec.main property has been deprecated. This is scheduled to be removed in Gradle 8.0. Please use the mainClass property instead. See JavaExec:main for more details.
____ at org.gradle.api.tasks.JavaExec.setMain(JavaExec.java:418)
____ at com.github.jengelman.gradle.plugins.shadow.internal.JavaJarExec_Decorated.setMain(Unknown Source)
____ at org.gradle.api.tasks.JavaExec.setMain(JavaExec.java:112)
____ at org.gradle.process.JavaExecSpec$setMain.call(Unknown Source)
____ at com.github.jengelman.gradle.plugins.shadow.ShadowApplicationPlugin$_addRunTask_closure4.doCall(
_________ ShadowApplicationPlugin.groovy:83)

https://github.com/johnrengelman/shadow/blob/7eaffb78a020e024a3618b9c6f9c54730b8f23c0/src/main/groovy/com/github/jengelman/gradle/plugins/shadow/ShadowApplicationPlugin.groovy#L83

@alexp1917
Copy link

alexp1917 commented Aug 29, 2021

can we get a 7.1.0 release, as this is already fixed in the master branch? thanks.

@ben-manes
Copy link
Author

Seems to have been released in 7.1, which also changed the GAV notation so that users won't find out from their dependency management tools (not in the github release notes)...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants