-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Searching for mainClass even if entrypoint is specified #4300
Comments
This is intended and WAI, because often you want to know the discovered main class in your entrypoint: #4280 (comment). A simple workaround in your case is to set |
I see, although in my case I do have an
If this is indeed the case, I think the warning message might be a bit misleading, since it tells you that the
|
Agreed. |
Thanks @mihalyr for reporting this issue and thanks @chanseokoh for triaging! Closing this as WAI, but we are going look for ways to improve the logging. Feel free to reopen if needed. |
Environment:
Description of the issue:
Gradle Jib plugin shows the following warnings when an entrypoint is specified without a main class:
However, this is wrong, because the
mainClass
should be ignore when anentrypoint
is specified. I'm not sure if this is only cosmetic or Jib indeed searches for a main class that it ignores later, becaue of the entrypoint is already given.Expected behavior:
No warnings and no searching for main class when an entrypoint is specified.
Steps to reproduce:
jib-gradle-plugin
Configuration:Log output:
The text was updated successfully, but these errors were encountered: