1 Star 0 Fork 0

laotongxiao/GradleWebBaseExample

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
build.gradle 1.13 KB
一键复制 编辑 原始数据 按行查看 历史
laotongxiao 提交于 2019-06-06 14:53 . commit init
apply plugin: 'java'
apply plugin: 'war'
apply plugin: 'org.akhikhl.gretty'
group 'com.test'
version '1.0-SNAPSHOT'
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
compile 'joda-time:joda-time:2.10.2'
providedCompile 'javax.servlet:javax.servlet-api:4.0.1'
testCompile 'junit:junit:4.11'
}
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'org.akhikhl.gretty:gretty:2.0.0'
}
}
repositories {
jcenter()
}
if (!project.plugins.findPlugin(org.akhikhl.gretty.GrettyPlugin))
project.apply(plugin: org.akhikhl.gretty.GrettyPlugin)
tasks.withType(JavaCompile){
options.encoding = "UTF-8"
}
[compileJava, javadoc, compileTestJava]*.options*.encoding = "UTF-8"
gretty{
httpEnabled = true
servletContainer = "tomcat8"
contextPath = "/mygradleweb"
host = "localhost"
httpPort = 8080
scanInterval = 1
fastReload = true
inplaceMode = "soft"
loggingLevel = "DEBUG"
consoleLogEnabled = true
debugPort = 6005
debugSuspend = true
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/laotongxiao/GradleWebBaseExample.git
git@gitee.com:laotongxiao/GradleWebBaseExample.git
laotongxiao
GradleWebBaseExample
GradleWebBaseExample
master

搜索帮助