Open hrstoyanov opened 8 years ago
This does not appear to be a problem with Gradle 2.13 (but with this plug-in). Any ideas how to fix it?
Here is a task I implemented:
task printProps << {
println gwt_compiler_optimize
println gwt_compiler_draftCompile
}
and it correctly reports the two properties - 0 and false:
Executing: gradle :xxxxx-war:printProps
Arguments: [-c, /projects/xxxxxxxx/settings.gradle]
:xxxxx-war:printProps
0
false
BUILD SUCCESSFUL
Total time: 0.514 secs
Here is a temporary workaround:
gwt {
...
compiler {
...
optimize = gwt_compiler_optimize.toInteger();
enableClosureCompiler = gwt_compiler_enableClosureCompiler.toBoolean();
draftCompile = gwt_compiler_draftCompile.toBoolean();
}
...
}
As I mentioned, you only need the fix for boolean and integer params.
if anyone is still maintaining this plug-in, here is a possible fix: https://github.com/Putnami/putnami-gradle-plugin/commit/e689ca5b7dd74a7af87ae1509d3fb3fe663796a2
use this fork: https://github.com/jiakuan/gwt-gradle-plugin
Moved out of this plug-in long time ago. Thanks though.
/Hristo Stoyanov
On Jul 12, 2017 10:12 AM, "Carlo Luib-Finetti" notifications@github.com wrote:
use this fork: https://github.com/jiakuan/gwt-gradle-plugin
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/steffenschaefer/gwt-gradle-plugin/issues/102#issuecomment-314835933, or mute the thread https://github.com/notifications/unsubscribe-auth/AFFIxHcLJdgxI2TxNQmf-tcDQh4t1yN4ks5sNP6SgaJpZM4IkGBB .
Hi all, I have the following gradle.properties file next to my gradle.build:
and here is how use them with this plug-in:
However, when I launch "gradle -i war", I see some strange stuff fed to the compiler like:
Look at the optimize and draftCompile options: I was expecting to see optimize value of 0 and no -draftCompile comman line flag. This plug-in seems to have problem picking up Integer and Boolean properties, while strings seems ok??? Note, If I hard-code the optimize value into the build.gradle file itself, it is picked up correctly.
What is going on?
Thanks