Hello, I have just started to learn gradle, I have some trouble with creating JavaCompile task during the execution phase. I have tried the doLast but the compile task does always nothing. I have also checked if the compile task is correcte it works fine in the configuration phase. Thank you for your answers
Thank you Rene for your answer. Maybe I haven’t provide more details about my situation. It’s not an accident actually I know that "<< " is equivalent to doLast . Here the situation:
Well gradle has created automatically compilemyprojectJava processMYPROJECTJava…
and when I run “InstanceCreateBin” the build will run compilemyprojectJava which compile successfully and then back to “InstanceCreateBin” for recompiling. That why I look to do once the compiling or to make InstanceCreateBin task running only in the execution phase and not calling "compilemyprojectJava "
In other word I would like that the destinationDir is only “$buildDir\bin” and not into “classes” and again in “$buildDir\bin” as result for this code.