Created
October 24, 2014 18:28
-
-
Save danhyun/fdf8de1be822ec6b30e6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apply plugin: 'war' | |
apply from: 'https://raw.github.com/akhikhl/gretty/master/pluginScripts/gretty.plugin' | |
gretty { | |
servletContainer = 'tomcat7' | |
enableNaming = true | |
jvmArgs '-Xmx2048M', '-XX:+CMSClassUnloadingEnabled' | |
afterEvaluate { | |
clean.dependsOn cleanPrepareArchiveWebApp | |
clean.dependsOn cleanPrepareInplaceWebApp | |
clean.dependsOn cleanPrepareInplaceWebAppClasses | |
clean.dependsOn cleanPrepareInplaceWebAppFolder | |
} | |
} | |
repositories { | |
mavenLocal() | |
mavenCentral() | |
} | |
dependencies { | |
compile 'mysql:mysql-connector-java:5.1.33' | |
compile 'postgresql:postgresql:8.3-603.jdbc4' | |
compile files("${tomcatHome}/lib/ojdbc5_g.jar") | |
compile 'org.apache.tomcat:tomcat-dbcp:7.0.55' | |
} | |
clean.dependsOn cleanWar |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
First step: change "compile" to "gretty". Files belonging to "compile" configuration are part of webapp. Files belonging to "gretty" configuration are part of server and they are loaded earlier than webapp.