You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is bad form to have the obfuscated jar file overwrite the unobfuscated jar file.
Why? Because of Gradle's optimization of not running tasks when the inputs didn't change. By replacing the original jar file with the obfuscated one the jar file is alway different from what the jar task produced. That means that the jar task must always run because the output file won't match what it produced previously.
Instead the jfxJar should allow for the input to be specified so when using an obfuscator it can be configured operate on the obfuscated jar file.
The text was updated successfully, but these errors were encountered:
Because of Gradle's optimization of not running tasks when the inputs didn't change.
Current implementation of this plugin does always run, so you won't have any benefit of that optimization. To reduce false-positives, and because the bundling-process might change in cause of modified customizable installer-scripts (like for innosetup), I have no good detection of any changes here.
Having the jfxJar-task being configurable seems a valid feature-request tho, but will be implemented as optional with current behaviour as fallback (don't like the idea of failing the build, because wrong file-output).
I have introduced a new property called alternativePathToJarFile and updated the proguard-example. This changes are not available as -SNAPSHOT-version nor on maven-central, because I'm going to implement some other things before releasing a new version.
This: https://github.com/FibreFoX/javafx-gradle-plugin/blob/master/examples/javafx-proguard-gradle/build.gradle#L68
...is an ugly hack.
It is bad form to have the obfuscated jar file overwrite the unobfuscated jar file.
Why? Because of Gradle's optimization of not running tasks when the inputs didn't change. By replacing the original jar file with the obfuscated one the jar file is alway different from what the jar task produced. That means that the jar task must always run because the output file won't match what it produced previously.
Instead the jfxJar should allow for the input to be specified so when using an obfuscator it can be configured operate on the obfuscated jar file.
The text was updated successfully, but these errors were encountered: