代码拉取完成,页面将自动刷新
group "com.three.chess"
version '0.0.1-SNAPSHOT'
buildscript{
ext {
springBootVersion = '1.5.2.BUILD-SNAPSHOT'
}
repositories{
maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
maven { url "https://repo.spring.io/snapshot" }
maven { url "https://repo.spring.io/milestone" }
jcenter()
}
dependencies {
//构建脚本的依赖
classpath "org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}"
}
}
subprojects{//
repositories {
//换阿里云的仓库
maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
maven { url "https://repo.spring.io/snapshot" }
maven { url "https://repo.spring.io/milestone" }
jcenter()
}
apply plugin: 'java'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
sourceCompatibility = 1.8
//基础依赖
dependencies {
compile('org.springframework.boot:spring-boot-starter')
testCompile('org.springframework.boot:spring-boot-starter-test')
//门面日志框架,spring-boot默认引用了logback,slf4j将绑定logback
compile "org.slf4j:slf4j-api:1.7.24"
}
//排除依赖
configurations {
//排除其他日志记录框架
all*.exclude group: 'commons-logging', module: 'commons-logging'
all*.exclude group: 'log4j', module: 'log4j'
}
}
//基础模块,每个模块需引用
project(':common'){
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile project(':common-protobuf')
compile('org.springframework.boot:spring-boot-starter-actuator')
compile('org.springframework.boot:spring-boot-actuator-docs')
compile('org.springframework.boot:spring-boot-starter-aop')
compile('org.springframework.boot:spring-boot-starter-cache')
compile('org.springframework.boot:spring-boot-starter-data-redis')
compile('org.springframework.boot:spring-boot-starter-jdbc')
compile('org.springframework.boot:spring-boot-starter-data-jpa')
runtime('mysql:mysql-connector-java')
compileOnly('org.springframework.boot:spring-boot-configuration-processor')
testCompile('org.springframework.boot:spring-boot-starter-test')
compile "com.google.guava:guava:21.0"
compile group: 'io.netty', name: 'netty-all', version: '4.1.11.Final'
//定时报告程序的状态,项目中是记录到日志文件中
compile "io.dropwizard.metrics:metrics-jvm:3.1.2"
compile "io.dropwizard.metrics:metrics-core:3.1.2"
compile "io.dropwizard.metrics:metrics-healthchecks:3.1.2"
//定时器
compile "org.apache.commons:commons-lang3:3.5"
compile "com.googlecode.concurrentlinkedhashmap:concurrentlinkedhashmap-lru:1.4.2"
compile "com.google.code.gson:gson:2.2.2"
compile "org.apache.poi:poi-ooxml:3.8"
compile "com.typesafe:config:1.3.0"
compile "org.apache.curator:curator-recipes:3.3.0"
// compile "org.apache.kafka:kafka_2.10:0.8.0"
// rocketmq
compile "com.alibaba.rocketmq:rocketmq-client:3.5.8"
compile "com.alibaba.rocketmq:rocketmq-all:3.5.8"
compile "ch.qos.logback:logback-core:1.1.7"
compile "ch.qos.logback:logback-classic:1.1.7"
// https://mvnrepository.com/artifact/com.dangdang/sharding-jdbc-core
compile group: 'com.dangdang', name: 'sharding-jdbc-core', version: '1.4.2'
compile group: 'com.dangdang', name: 'sharding-jdbc-self-id-generator', version: '1.4.2'
}
}
//web模块,对外服务引用
project(':common-web'){
dependencies {
compile project(':common')
// compile('org.springframework.boot:spring-boot-starter-security')
compile('org.springframework.boot:spring-boot-starter-web')
compile('org.springframework.boot:spring-boot-starter-jetty')
testCompile('org.springframework.boot:spring-boot-starter-test')
testCompile('org.springframework.restdocs:spring-restdocs-mockmvc')
}
}
// netty模块,对外服务引用
project(':common-netty') {
dependencies {
compile project(':common')
}
}
// test模块
project(':common-demo'){
dependencies {
compile project(':common')
compile project(':common-netty')
compile project(':sso')
compile('org.springframework.boot:spring-boot-starter-test')
}
}
// protobuf 模块
project(':common-protobuf') {
dependencies {
compile "com.google.protobuf:protobuf-java:2.4.1"
}
}
//用户模块
project(':sso'){
dependencies {
compile project(':common')
compile project(':common-netty')
compile project(':common-web')
}
}
//ext 其他业务模块
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。