build-tools;29.0.1 and later provide the d8.jar library without the Main-Class entry in its manifest, therefore making the current D8Mojo.java unable to work properly. This PR is attempting to fix the behavior.
Items to discuss:
Changing the behavior:
Should 'D8Mojo' provide the flag? (currently suggested implementation)
OR should the the plugin resolve the bevavior by assuming the specific build tools versions (e.g., "always lib/d8.jar prior to 29.0.0" and "always d8 in other case")?
OR should the plugin peek right into the d8 jar manifest to figure out the preferred behavior?
I tested the changes only on my Linux Mint machine, and these changes, I believe, cannot work on at least Windows machines (I believe Android SDK for Windows provides d8.bat, "TODO-ed" in the PR). Is there a preferred/cross-platform way of running external scripts in Maven or the plugin?
build-tools;29.0.1
and later provide thed8.jar
library without theMain-Class
entry in its manifest, therefore making the currentD8Mojo.java
unable to work properly. This PR is attempting to fix the behavior.Items to discuss:
Please see more at #793.