加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build.gradle 2.03 KB
一键复制 编辑 原始数据 按行查看 历史
CarlosHuang 提交于 2017-11-15 19:08 . websocket差不多了吧
buildscript {
ext {
springBootVersion = '1.5.7.RELEASE'
}
repositories {
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
classpath('se.transmode.gradle:gradle-docker:1.2')
}
}
apply plugin: 'java'
apply plugin: 'eclipse-wtp'
apply plugin: 'idea'
apply plugin: 'org.springframework.boot'
apply plugin: 'war'
apply plugin: 'docker'
group = 'com.youhui'
version = '1.0.0'
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
configurations {
providedRuntime
}
dependencies {
compile('org.springframework.boot:spring-boot-starter-data-jpa')
compile('org.springframework.boot:spring-boot-starter-data-redis')
compile('org.springframework.boot:spring-boot-starter-data-rest')
compile('org.springframework.boot:spring-boot-starter-thymeleaf')
compile('org.springframework.boot:spring-boot-starter-web')
compile('org.springframework.boot:spring-boot-starter-websocket')
compile group: 'com.google.code.gson', name: 'gson', version: '2.8.0'
compile 'org.apache.poi:poi:3.9'
compile group: 'commons-fileupload', name: 'commons-fileupload', version: '1.3.1'
compile 'com.squareup.okhttp3:okhttp:3.9.0'
// 微信公众号的依赖
compile group: 'dom4j', name: 'dom4j', version: '1.6.1'
compile group: 'com.thoughtworks.xstream', name: 'xstream', version: '1.4.9'
runtime('org.springframework.boot:spring-boot-devtools')
runtime('mysql:mysql-connector-java')
compileOnly('org.projectlombok:lombok')
testCompile('org.springframework.boot:spring-boot-starter-test')
}
task buildDocker(type: Docker, dependsOn: build) {
//设置自动上传的话,命名就不能乱取了,仓库名/镜像名:tag
// push = true
applicationName = jar.baseName
dockerfile = file('src/main/docker/Dockerfile')
doFirst {
copy {
from war
into stageDir
}
}
}
//sourceSets.main.java.srcDirs=['src/main/java','src/main/groovy']
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化