문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판 이전 판 다음 판 | 이전 판 마지막 판 양쪽 다음 판 | ||
gradle:tomcat [2015/05/20 10:33] kwon37xi |
gradle:tomcat [2015/05/20 17:33] kwon37xi [주의점] |
||
---|---|---|---|
줄 2: | 줄 2: | ||
* [[https:// | * [[https:// | ||
* [[https:// | * [[https:// | ||
+ | * Gradle 1.x | ||
+ | * ' | ||
+ | * apply plugin: ' | ||
+ | * Gradle 2.x | ||
+ | * ' | ||
+ | * apply plugin: ' | ||
- | <code groovy> | + | ===== 주의점 ===== |
- | apply plugin: | + | * 2.2.2 버전의 경우 '' |
- | </code> | + | |
- | ===== 의존성 설정 ===== | ||
- | <code groovy> | ||
- | buildscript { | ||
- | repositories { | ||
- | add(new org.apache.ivy.plugins.resolver.URLResolver()) { | ||
- | name = ' | ||
- | 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 = file(' | ||
- | compilerSourceVM = ' | ||
- | compilerTargetVM = ' | ||
- | javaEncoding = ' | ||
- | webXmlFragment = file(" | ||
- | outputDir = file(" | ||
- | } | ||
- | </ |