문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판 이전 판 다음 판 | 이전 판 | ||
gradle:groovy [2012/10/12 15:48] kwon37xi [CompileGroovy] |
gradle:groovy [2014/09/11 03:17] kwon37xi |
||
---|---|---|---|
줄 105: | 줄 105: | ||
===== 컴파일 옵션들 ===== | ===== 컴파일 옵션들 ===== | ||
+ | * http:// | ||
* Groovy 소스 인코딩 지정 <code groovy> | * Groovy 소스 인코딩 지정 <code groovy> | ||
+ | // / | ||
[compileGroovy, | [compileGroovy, | ||
- | </code> | + | // / |
+ | [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. |