문서의 선택한 두 판 사이의 차이를 보여줍니다.
| 양쪽 이전 판 이전 판 다음 판 | 이전 판 | ||
|
gradle:tomcat [2012/10/16 14:19] kwon37xi [설정하기] |
gradle:tomcat [2015/11/07 11:56] (현재) kwon37xi |
||
|---|---|---|---|
| 줄 1: | 줄 1: | ||
| ====== Gradle Tomcat Plugin ====== | ====== Gradle Tomcat Plugin ====== | ||
| * [[https:// | * [[https:// | ||
| + | * [[https:// | ||
| + | * Gradle 1.x | ||
| + | * ' | ||
| + | * apply plugin: ' | ||
| + | * Gradle 2.x | ||
| + | * ' | ||
| + | * apply plugin: ' | ||
| - | <code groovy> | + | ===== Gretty ===== |
| - | apply plugin: ' | + | * Tomcat/ |
| - | </code> | + | * Debug 모드 쉽게 지원하는 듯. |
| + | * https:// | ||
| - | ===== 의존성 설정 | + | ===== 주의점 ===== |
| - | <code groovy> | + | * 2.2.2 버전의 경우 '' |
| - | buildscript { | + | |
| - | repositories { | + | |
| - | add(new org.apache.ivy.plugins.resolver.URLResolver()) | + | |
| - | name = 'GitHub Gradle Tomcat Plugin' | + | |
| - | addArtifactPattern | + | |
| - | } | + | |
| - | } | + | |
| - | dependencies { | ||
| - | classpath ' | ||
| - | } | ||
| - | } | ||
| - | |||
| - | repositories { | ||
| - | mavenCentral() | ||
| - | } | ||
| - | |||
| - | // For Tomcat 6 | ||
| - | dependencies { | ||
| - | def tomcatVersion = ' | ||
| - | tomcat " | ||
| - | " | ||
| - | " | ||
| - | } | ||
| - | |||
| - | // For Tomcat 7 | ||
| - | dependencies { | ||
| - | def tomcatVersion = ' | ||
| - | tomcat " | ||
| - | " | ||
| - | tomcat(" | ||
| - | exclude group: ' | ||
| - | } | ||
| - | } | ||
| - | </ | ||
| - | |||
| - | ===== 태스크들 ===== | ||
| - | * '' | ||
| - | * '' | ||
| - | * '' | ||
| - | * '' | ||
| - | |||
| - | ===== 설정하기 ===== | ||
| - | * 톰캣 실행환경설정 <code groovy> | ||
| - | tomcatRun { | ||
| - | httpPort = 8090 | ||
| - | httpsPort = 8093 | ||
| - | stopPort = 8091 | ||
| - | enableSSL = true | ||
| - | URIEncoding = ' | ||
| - | contextPath = '' | ||
| - | configFile = file(' | ||
| - | } | ||
| - | |||
| - | // tomcatRun과 tomcatRunWar 공통 설정 | ||
| - | [tomcatRun, tomcatRunWar]*.configFile = file(' | ||
| - | </ | ||
| - | * [[http:// | ||
| - | * Jasper 컴파일러 환경 설정 <code groovy> | ||
| - | jasper { | ||
| - | validateXml = true | ||
| - | uriroot = ' | ||
| - | compilerSourceVM = ' | ||
| - | compilerTargetVM = ' | ||
| - | javaEncoding = ' | ||
| - | webXmlFragment = file(" | ||
| - | outputDir = file(" | ||
| - | } | ||
| - | </ | ||