문서의 선택한 두 판 사이의 차이를 보여줍니다.
| 양쪽 이전 판 이전 판 다음 판 | 이전 판 | ||
|
gradle:groovy [2012/10/06 19:48] kwon37xi [CompileGroovy] |
gradle:groovy [2014/09/11 03:17] (현재) kwon37xi |
||
|---|---|---|---|
| 줄 102: | 줄 102: | ||
| | source | [[http:// | | source | [[http:// | ||
| | destinationDir | File | // | | destinationDir | File | // | ||
| - | | groovyClasspath | [[http:// | + | | groovyClasspath | [[http:// |
| + | ===== 컴파일 옵션들 ===== | ||
| + | * http:// | ||
| + | * Groovy 소스 인코딩 지정 <code groovy> | ||
| + | // / | ||
| + | [compileGroovy, | ||
| + | // / | ||
| + | [compileGroovy, | ||
| + | |||
| + | // 길게 풀어쓰면 | ||
| + | compileGroovy { | ||
| + | groovyOptions.encoding = defaultEncoding | ||
| + | options.encoding = defaultEncoding | ||
| + | } | ||
| + | </ | ||
| + | * [[http:// | ||
| + | tasks.withType(GroovyCompile) { | ||
| + | groovyOptions.optimizationOptions.indy = true | ||
| + | } | ||
| + | </ | ||
| + | * you should use **JDK 7u60** or above to avoid any potential invokedynamic related bugs. | ||