-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
102 lines (88 loc) · 3.97 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
buildscript {
ext {
springBootVersion = '2.2.13.RELEASE'
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
}
}
//所有项目配置
allprojects {
group = 'com.zwl'
version = '0.0.1-SNAPSHOT'
repositories {
//本地仓库
mavenLocal()
//阿里云
maven {
url 'https://maven.aliyun.com/nexus/content/groups/public/'
}
//中央仓库
mavenCentral()
//gradle插件
maven {
url "https://plugins.gradle.org/m2/"
}
}
}
// 版本号
ext {
hutoolVersion = '5.8.3'
guavaVersion = '30.1.1-jre'
gsonVersion = '2.8.8'
fastjsonVersion = '2.0.7'
lonbokVersion = '1.18.20'
mybatisPlusVersion = '3.5.2'
druidVersion = '1.2.8'
dynamicDatasource = '3.4.1'
commonsMath3Version = '3.6.1'
springBootDubboVersion = "3.0.7"
springBootGrpcVersion = "2.13.1.RELEASE"
}
//子模块配置
subprojects {
apply plugin: 'idea'
apply plugin: 'java'
apply plugin: 'java-library'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
dependencyManagement {
dependencies {
dependency "de.codecentric:spring-boot-admin-starter-server:${springBootVersion}"
dependency "de.codecentric:spring-boot-admin-starter-client:${springBootVersion}"
dependency "org.springframework.boot:spring-boot-starter-actuator:${springBootVersion}"
dependency "org.springframework.boot:spring-boot-starter-security:${springBootVersion}"
dependency 'org.apache.rocketmq:rocketmq-spring-boot-starter:2.2.1'
dependency "org.springframework.boot:spring-boot-starter-amqp:${springBootVersion}"
dependency 'org.apache.dubbo:dubbo-registry-nacos:3.0.4'
dependency 'io.seata:seata-spring-boot-starter:1.4.2'
dependency "org.apache.shardingsphere:shardingsphere-jdbc-core-spring-boot-starter:5.1.1"
dependency "org.springframework.boot:spring-boot-starter-data-jpa:${springBootVersion}"
dependency "org.springframework.boot:spring-boot-starter-data-redis:${springBootVersion}"
dependency "org.springframework.boot:spring-boot-starter-data-mongodb:${springBootVersion}"
dependency "org.springframework.boot:spring-boot-starter-data-elasticsearch:${springBootVersion}"
dependency "org.springframework.boot:spring-boot-starter-web:${springBootVersion}"
dependency "net.devh:grpc-client-spring-boot-starter:${springBootGrpcVersion}"
dependency "net.devh:grpc-server-spring-boot-starter:${springBootGrpcVersion}"
dependency "org.apache.dubbo:dubbo-spring-boot-starter:${springBootDubboVersion}"
dependency "com.baomidou:mybatis-plus-boot-starter:${mybatisPlusVersion}"
dependency "com.baomidou:dynamic-datasource-spring-boot-starter:${dynamicDatasource}"
dependency "com.alibaba:druid-spring-boot-starter:${druidVersion}"
dependency "org.apache.commons:commons-math3:${commonsMath3Version}"
dependency "mysql:mysql-connector-java:8.0.29"
}
}
dependencies {
implementation "cn.hutool:hutool-all:${hutoolVersion}"
implementation "com.google.guava:guava:${guavaVersion}"
implementation "com.google.code.gson:gson:${gsonVersion}"
implementation "com.alibaba.fastjson2:fastjson2:${fastjsonVersion}"
implementation "com.alibaba:fastjson:${fastjsonVersion}"
implementation "org.projectlombok:lombok:${lonbokVersion}"
annotationProcessor "org.projectlombok:lombok:${lonbokVersion}"
testAnnotationProcessor "org.projectlombok:lombok:${lonbokVersion}"
testCompileOnly("junit:junit:4.13.2")
implementation group: 'org.slf4j', name: 'slf4j-api', version: '1.7.32'
implementation group: 'ch.qos.logback', name: 'logback-classic', version: '1.2.6'
}
}