- Gradleのプロキシ設定
- Tomcat
- Tomcatのバージョンに注意
- 8.5.16にしておいたらとりあえず動く
- IDEを使わずServlet
- このリポジトリをクローンしてプロキシ設定したらだいたい動く
- トラブルシューティング
Last active
June 2, 2022 15:22
-
-
Save YuukiToriyama/d52bc020cba3c10d7e10361620b9aa29 to your computer and use it in GitHub Desktop.
Gradle + Tomcat学習メモ
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
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' | |
} |
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
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