-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
98 lines (76 loc) · 2.83 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
94
95
96
97
98
import org.springframework.boot.gradle.plugin.SpringBootPlugin
plugins {
id 'java'
id 'application'
id 'org.springframework.boot' version '2.7.18'
id 'io.spring.dependency-management' version '1.1.0'
}
group = 'com.nebula'
version = '1.0-SNAPSHOT'
java {
sourceCompatibility = '21'
// sourceCompatibility = '11'
}
configurations {
developmentOnly
runtimeClasspath {
extendsFrom developmentOnly
}
compileOnly {
extendsFrom annotationProcessor
}
}
ext {
set("springCloudVersion","2021.0.+")
set("springCloudAlibabaVersion","2021.1")
set("springfoxSwagger2Version","3.0.+")
}
allprojects {
apply plugin: 'java'
group group
version version
repositories {
mavenCentral()
}
}
subprojects {
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
apply plugin: 'java'
dependencies {
implementation 'org.springframework.boot:spring-boot-starter'
implementation 'org.springframework.boot:spring-boot-starter-logging'
implementation 'org.springframework.cloud:spring-cloud-starter-bootstrap'
implementation 'org.springframework.boot:spring-boot-starter-data-redis:2.3.1.RELEASE'
implementation('redis.clients:jedis')
implementation 'com.alibaba.nacos:nacos-client:2.1.0'
implementation 'com.alibaba.cloud:spring-cloud-starter-alibaba-nacos-discovery:2021.0.4.0'
implementation 'com.alibaba.cloud:spring-cloud-starter-alibaba-nacos-config:2021.0.4.0'
implementation 'org.apache.dubbo:dubbo-spring-boot-starter:3.0.9'
implementation 'org.apache.dubbo:dubbo-registry-nacos:3.0.9'
implementation 'org.apache.dubbo:dubbo:3.0.9'
implementation 'com.fasterxml.jackson.core:jackson-databind'
implementation 'com.googlecode.juniversalchardet:juniversalchardet:1.0.3'
implementation 'org.springframework.boot:spring-boot-starter-data-jdbc'
implementation 'org.mybatis.spring.boot:mybatis-spring-boot-starter:2.2.2'
implementation 'com.baomidou:mybatis-plus-boot-starter:3.5.1'
implementation 'mysql:mysql-connector-java'
implementation 'cn.hutool:hutool-all:5.8.9'
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
annotationProcessor "org.springframework.boot:spring-boot-configuration-processor"
developmentOnly 'org.springframework.boot:spring-boot-devtools'
testImplementation platform('org.junit:junit-bom:5.10.0')
testImplementation 'org.junit.jupiter:junit-jupiter'
}
dependencyManagement {
imports {
mavenBom SpringBootPlugin.BOM_COORDINATES
mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
mavenBom "com.alibaba.cloud:spring-cloud-alibaba-dependencies:${springCloudAlibabaVersion}"
}
}
tasks.withType(JavaCompile) {
options.annotationProcessorPath = configurations.annotationProcessor
}
}