Skip to content

Instantly share code, notes, and snippets.

@YuukiToriyama
Last active June 2, 2022 15:22
Show Gist options
  • Save YuukiToriyama/d52bc020cba3c10d7e10361620b9aa29 to your computer and use it in GitHub Desktop.
Save YuukiToriyama/d52bc020cba3c10d7e10361620b9aa29 to your computer and use it in GitHub Desktop.
Gradle + Tomcat学習メモ
buildscript {
repositories {
gradlePluginPortal()
}
dependencies {
classpath group: 'com.bmuschko', name:'gradle-tomcat-plugin', version:'2.7.0'
}
}
ext {
tomcatVersion = '8.5.16'
}
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'java'
apply plugin: 'com.bmuschko.tomcat'
sourceSets {
sourceCompatibility = 1.8
targetCompatibility = 1.8
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
}
repositories {
mavenCentral()
}
dependencies {
providedCompile group: 'javax.servlet', name: 'javax.servlet-api', version: '4.0.1'
providedCompile group: 'javax.servlet.jsp', name: 'javax.servlet.jsp-api', version: '2.3.1'
compile group: 'org.apache.taglibs', name: 'taglibs-standard-impl', version: '1.2.5'
tomcat "org.apache.tomcat.embed:tomcat-embed-core:${tomcatVersion}"
tomcat "org.apache.tomcat.embed:tomcat-embed-logging-juli:9.0.0.M6"
tomcat("org.apache.tomcat.embed:tomcat-embed-jasper:${tomcatVersion}") {
exclude group: "org.eclipse.jdt.core.compiler", module: "ecj"
}
}
tomcat {
httpProtocol = 'org.apache.coyote.http11.Http11Nio2Protocol'
ajpProtocol = 'org.apache.coyote.ajp.AjpNio2Protocol'
contextPath = 'ytoriyama'
}
systemProp.http.proxyHost=proxy.example.com
systemProp.http.proxyPort=8080
systemProp.https.proxyHost=proxy.example.com
systemProp.https.proxyPort=8080
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment