사용자 도구

사이트 도구


gradle:groovy

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

양쪽 이전 판 이전 판
다음 판
이전 판
gradle:groovy [2012/10/06 19:49]
kwon37xi
gradle:groovy [2014/09/11 03:17] (현재)
kwon37xi
줄 104: 줄 104:
 | groovyClasspath | [[http://www.gradle.org/docs/current/javadoc/org/gradle/api/file/FileCollection.html|FileCollection]] | groovy configuration | | groovyClasspath | [[http://www.gradle.org/docs/current/javadoc/org/gradle/api/file/FileCollection.html|FileCollection]] | groovy configuration |
  
 +===== 컴파일 옵션들 =====
 +  * http://nobeans-en.blogspot.de/2009/12/how-to-specify-character-encoding-in.html
 +  * Groovy 소스 인코딩 지정 <code groovy>
 +// /src/main/groovy 안의 *.java 인코딩
 +[compileGroovy, compileTestGroovy]*.options*.encoding = 'UTF-8' 
 +// /src/main/groovy 안의 *.groovy 인코딩
 +[compileGroovy, compileTestGroovy]*.groovyOptions*.encoding = 'UTF-8' 
 +
 +// 길게 풀어쓰면
 +compileGroovy {  
 +    groovyOptions.encoding = defaultEncoding  // affects *.groovy under src/main/groovy  
 +    options.encoding = defaultEncoding        // affects *.java under src/main/groovy  
 +}  
 +</code>
 +  * [[http://blog.freeside.co/2014/06/24/enabling-groovys-invokedynamic-support-in-gradle/|Enabling Groovy’s “invokedynamic” support in Gradle]]<code groovy>
 +tasks.withType(GroovyCompile) {
 +  groovyOptions.optimizationOptions.indy = true
 +}
 +</code>
 +  * you should use **JDK 7u60** or above to avoid any potential invokedynamic related bugs.
gradle/groovy.1349520543.txt.gz · 마지막으로 수정됨: 2012/10/06 19:49 저자 kwon37xi