Gradle JSP预编译
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.bmuschko:gradle-tomcat-plugin:2.2.5'
}
}
apply plugin: com.bmuschko.gradle.tomcat.TomcatPlugin
apply plugin: 'java-library'
apply plugin: 'war'
apply plugin: 'maven-publish'
repositories {
jcenter()
}
dependencies {
api 'org.apache.commons:commons-math3:3.6.1'
implementation 'com.google.guava:guava:29.0-jre'
implementation 'org.springframework:spring-webmvc:4.2.0.RELEASE'
testImplementation 'junit:junit:4.13'
def tomcatVersion = '8.0.42'
tomcat "org.apache.tomcat.embed:tomcat-embed-core:${tomcatVersion}",
"org.apache.tomcat.embed:tomcat-embed-logging-juli:${tomcatVersion}",
"org.apache.tomcat.embed:tomcat-embed-jasper:${tomcatVersion}",
"javax.servlet.jsp.jstl:jstl-api:1.2"
providedCompile "javax.servlet:servlet-api:2.5"
}
浙公网安备 33010602011771号