문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판 이전 판 다음 판 | 이전 판 마지막 판 양쪽 다음 판 | ||
gradle:idea [2014/02/04 17:29] kwon37xi |
gradle:idea [2015/10/04 18:38] kwon37xi [provided] |
||
---|---|---|---|
줄 3: | 줄 3: | ||
* [[http:// | * [[http:// | ||
* [[http:// | * [[http:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | ===== Example ===== | ||
+ | <code groovy> | ||
+ | |||
+ | idea { | ||
+ | project { | ||
+ | //if you want to set specific jdk and language level | ||
+ | jdkName = ' | ||
+ | languageLevel = ' | ||
+ | |||
+ | //you can update the source wildcards | ||
+ | wildcards += ' | ||
+ | |||
+ | //you can change the modules of the the *.ipr | ||
+ | //modules = project(': | ||
+ | |||
+ | //you can change the output file | ||
+ | outputFile = new File(outputFile.parentFile, | ||
+ | |||
+ | //you can add project-level libraries | ||
+ | projectLibraries << new ProjectLibrary(name: | ||
+ | | ||
+ | ipr { | ||
+ | withXml { | ||
+ | def node = it.asNode() | ||
+ | | ||
+ | // Annotation Processor 활성화 | ||
+ | def compilerConfiguration = node.find { it.@name == ' | ||
+ | |||
+ | def oldApplicationProcession = compilerConfiguration.annotationProcessing | ||
+ | if (oldApplicationProcession != null) { compilerConfiguration.remove(oldApplicationProcession) } | ||
+ | |||
+ | def annotationProcessing = compilerConfiguration.appendNode(' | ||
+ | def profile = annotationProcessing.appendNode(' | ||
+ | profile.appendNode(' | ||
+ | | ||
+ | // 자동 Git 디렉토리 매핑 추가 | ||
+ | def vcsDirectoryMappingsNode = node.find { it.@name == ' | ||
+ | if (vcsDirectoryMappingsNode != null) { | ||
+ | vcsDirectoryMappingsNode.appendNode(' | ||
+ | } | ||
+ | |||
+ | } | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | ==== provided ==== | ||
+ | <code groovy> | ||
+ | configurations { | ||
+ | provided | ||
+ | } | ||
+ | |||
+ | sourceSets { | ||
+ | main { | ||
+ | compileClasspath = compileClasspath + configurations.provided; | ||
+ | } | ||
+ | } | ||
+ | |||
+ | // 위의 provided 컨피규레이션은 spring prop-deps것을 사용해도 될 듯. | ||
+ | idea { | ||
+ | module { | ||
+ | scopes.PROVIDED.plus += configurations.provided; | ||
+ | } | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | ==== Download dependencies' | ||
+ | < | ||
+ | idea { | ||
+ | module { | ||
+ | downloadJavadoc = true | ||
+ | |||
+ | } | ||
+ | |||
+ | } | ||
+ | </ | ||
+ |