[GRADLE-323] compile.options.fork = false has no effect on Groovy compilation Created: 16/Dec/08 Updated: 04/Jan/13 Resolved: 22/Dec/08 |
|
Status: | Resolved |
Project: | Gradle |
Affects Version/s: | None |
Fix Version/s: | 0.6 |
Type: | Bug | ||
Reporter: | Peter Niederwieser | Assignee: | Hans Dockter |
Resolution: | Not A Bug | Votes: | 0 |
Description |
compile.options.fork = false doesn't prevent forking of the Groovy compiler. See transcript below. /swd/prj/gradletest> gradle -version ---------------------------------------- Gradle buildtime: Tuesday, December 16, 2008 9:07:43 PM CET /swd/prj/gradletest> ls /swd/prj/gradletest> cat build.gradle dependencies { compile.options.fork = false /swd/prj/gradletest> cat src/main/groovy/HelloWorld.groovy } /swd/prj/gradletest> gradle compile Build failed with an exception. Build file '/swd/prj/gradletest/build.gradle' Execution failed for task :compile. BUILD FAILED Total time: 4.148 secs |
Comments |
Comment by Peter Niederwieser [ 16/Dec/08 ] |
Should have been "Affects version 0.6" instead of "Fix version 0.6". |
Comment by Hans Dockter [ 18/Dec/08 ] |
Sorry, Peter, I have given you the wrong advise in my mail. {{ compile.groovyOptions.fork = false }} should do the job. If you need it for both compiles you might do: {{ [compile, testCompile].groovyOptions.fork = false }} compile.options is for setting the javac options (in case of joint compilation the fork setting would be ignored and only the groovyOptions fork would be taken into consideration). |
Comment by Hans Dockter [ 18/Dec/08 ] |
If the above works for you I will close the issue. Please let me know. |