3 Star 3 Fork 4

game-moba / project_1964322

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
build.gradle 4.26 KB
一键复制 编辑 原始数据 按行查看 历史
roveboy 提交于 2017-07-22 18:30 . 整理模块
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 其他业务模块
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/game-moba/chess.git
git@gitee.com:game-moba/chess.git
game-moba
chess
project_1964322
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891