-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
132 lines (118 loc) · 7.11 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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
buildscript {
ext {
versions = [
'jacksonDatabind' : '2.12.5',
'jacksonDatatypeJsr310' : '2.12.5',
'queryDsl' : '5.0.0',
'lombok' : '1.18.20',
'mapstruct' : '1.4.2.Final',
'springCloud' : '2021.0.1',
'springSecurityOauth2' : '2.5.1.RELEASE',
'redissonSpringDataStarter' : '3.16.2',
'springSecurityOauth2Autoconfigure': '2.5.2',
'googleGuava' : '30.1.1-jre',
'apacheCommonsLang3' : '3.12.0',
'apacheCommonsCollections4' : '4.4',
'javaxPersistenceHibernateJpa21api': '1.0.2.Final',
'javaxAnnotationApi' : '1.3.2',
'hibernateTypes52' : '2.12.1',
'okhttp' : '4.9.2',
'dubbo' : '3.0.5',
'blazePersistence' : '1.6.7',
'swaggerParserV3' : '2.1.9',
'minio' : '8.2.1',
]
deps = [
'mysql' : 'mysql:mysql-connector-java',
'lombok' : "org.projectlombok:lombok:${versions.lombok}",
'mapstruct' : "org.mapstruct:mapstruct:${versions.mapstruct}",
'mapstructProcessor' : "org.mapstruct:mapstruct-processor:${versions.mapstruct}",
'jacksonDatabind' : "com.fasterxml.jackson.core:jackson-databind:${versions.jacksonDatabind}",
'jacksonDatatypeJsr310' : "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:${versions.jacksonDatatypeJsr310}",
'queryDslCore' : "com.querydsl:querydsl-core:${versions.queryDsl}",
'queryDslJpa' : "com.querydsl:querydsl-jpa:${versions.queryDsl}",
'queryDslSql' : "com.querydsl:querydsl-sql:${versions.queryDsl}",
'queryDslApt' : "com.querydsl:querydsl-apt:${versions.queryDsl}:jpa",
'springSecurityOauth2' : "org.springframework.security.oauth:spring-security-oauth2:${versions.springSecurityOauth2}",
'springSecurityOauth2Autoconfigure': "org.springframework.security.oauth.boot:spring-security-oauth2-autoconfigure:${versions.springSecurityOauth2Autoconfigure}",
'googleGuava' : "com.google.guava:guava:${versions.googleGuava}",
'apacheCommonsLang3' : "org.apache.commons:commons-lang3:${versions.apacheCommonsLang3}",
'apacheCommonsCollections4' : "org.apache.commons:commons-collections4:${versions.apacheCommonsCollections4}",
'javaxPersistenceHibernateJpa21api': "org.hibernate.javax.persistence:hibernate-jpa-2.1-api:${versions.javaxPersistenceHibernateJpa21api}",
'javaxAnnotationApi' : "javax.annotation:javax.annotation-api:${versions.javaxAnnotationApi}",
'redissonSpringBootStarter' : "org.redisson:redisson-spring-boot-starter:${versions.redissonSpringDataStarter}",
'hibernateTypes52' : "com.vladmihalcea:hibernate-types-52:${versions.hibernateTypes52}",
'okhttp' : "com.squareup.okhttp3:okhttp:${versions.okhttp}",
'dubboSpringBootStarter' : "org.apache.dubbo:dubbo-spring-boot-starter:${versions.dubbo}",
'dubboConfigcenterNacos' : "org.apache.dubbo:dubbo-configcenter-nacos:${versions.dubbo}",
'dubboRegistryNacos' : "org.apache.dubbo:dubbo-registry-nacos:${versions.dubbo}",
'blazePersistenceCoreApi' : "com.blazebit:blaze-persistence-core-api:${versions.blazePersistence}",
'blazePersistenceCoreImpl' : "com.blazebit:blaze-persistence-core-impl:${versions.blazePersistence}",
'blazePersistenceQueryDsl' : "com.blazebit:blaze-persistence-integration-querydsl-expressions:${versions.blazePersistence}",
'blazePersistenceHibernate' : "com.blazebit:blaze-persistence-integration-hibernate-5.6:${versions.blazePersistence}",
'swaggerParserV3' : "io.swagger.parser.v3:swagger-parser:${versions.swaggerParserV3}",
'minio' : "io.minio:minio:${versions.minio}"
]
springBootDeps = [
'autoconfigure' : 'org.springframework.boot:spring-boot-autoconfigure',
'configurationProcessor': 'org.springframework.boot:spring-boot-configuration-processor',
]
springBootStarter = [
'test' : 'org.springframework.boot:spring-boot-starter-test',
'web' : 'org.springframework.boot:spring-boot-starter-web',
'undertow' : 'org.springframework.boot:spring-boot-starter-undertow',
'actuator' : 'org.springframework.boot:spring-boot-starter-actuator',
'dataJpa' : 'org.springframework.boot:spring-boot-starter-data-jpa',
'dataRedis' : 'org.springframework.boot:spring-boot-starter-data-redis',
'validation': 'org.springframework.boot:spring-boot-starter-validation',
]
springCloud = [
'loadbalancer': 'org.springframework.cloud:spring-cloud-starter-loadbalancer',
'gateway' : 'org.springframework.cloud:spring-cloud-starter-gateway',
]
}
}
plugins {
id "org.springframework.boot" version "2.6.3"
id "io.spring.dependency-management" version "1.0.11.RELEASE"
id "com.ewerk.gradle.plugins.querydsl" version "1.0.10"
}
allprojects {
group "com.gitee.lin-mt"
version "0.0.1"
}
repositories {
maven { url "https://maven.aliyun.com/repository/public/" }
maven { url "https://maven.aliyun.com/repository/spring/" }
mavenLocal()
mavenCentral()
}
subprojects {
apply plugin: "java-library"
apply plugin: "org.springframework.boot"
apply plugin: "io.spring.dependency-management"
jar {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
repositories {
maven { url "https://maven.aliyun.com/repository/public/" }
maven { url "https://maven.aliyun.com/repository/spring/" }
mavenLocal()
mavenCentral()
}
dependencies {
api deps.googleGuava
api deps.apacheCommonsLang3
api deps.apacheCommonsCollections4
testImplementation springBootStarter.test
}
test {
useJUnitPlatform()
}
dependencyManagement {
imports {
mavenBom "org.springframework.cloud:spring-cloud-dependencies:${versions.springCloud}"
}
}
}