-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
124 lines (110 loc) · 4.47 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
plugins {
id "io.spring.dependency-management" version "${spring_dep}"
id 'org.springframework.boot' version "${spring_boot_ver}"
}
ext {
lib = ["boot" : "org.springframework.boot:spring-boot-dependencies:${spring_boot_ver}",
"p6spy" : "p6spy:p6spy:${p6spy}",
"flyway" : "org.flywaydb:flyway-core:${flyway}",
// database
"mysql" : "mysql:mysql-connector-java:${mysql}",
"oracle" : "com.oracle.database.jdbc:ojdbc10:${oracle}",
"orai18n": "cn.easyproject:orai18n:${orai18n}",
"jaxb_api" : "javax.xml.bind:jaxb-api:${jaxb_api}",
"truelicense" : "de.schlichtherle.truelicense:truelicense-core:${truelicense}",
"jasypt" : "com.github.ulisesbocchio:jasypt-spring-boot-starter:${jasypt}",
"validation" : "org.springframework.boot:spring-boot-starter-validation",
"json" : "org.springframework.boot:spring-boot-starter-json",
"jsr310" : "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:${jsr310}",
// lombok
"lombok" : "org.projectlombok:lombok:${lombok}",
// cache
"caffeine" : "com.github.ben-manes.caffeine:caffeine:${caffeine}",
"redis" : "org.springframework.boot:spring-boot-starter-data-redis",
"cache" : "org.springframework.boot:spring-boot-starter-cache",
// AOP
"aop" : "org.springframework.boot:spring-boot-starter-aop",
"jdbc" : "org.springframework.boot:spring-boot-starter-jdbc",
// security
"security" : "org.springframework.boot:spring-boot-starter-security",
// web
"web" : "org.springframework.boot:spring-boot-starter-web",
"undertow" : "org.springframework.boot:spring-boot-starter-undertow",
// test
"test" : "org.springframework.boot:spring-boot-starter-test",
"securityTest" : "org.springframework.security:spring-security-test:${securityTest}",
// hutool
"hutool" : "cn.hutool:hutool-all:${hutool}",
// mybatis
"mybatisPlus" : "com.baomidou:mybatis-plus-boot-starter:${mybatis_plus_starter}",
// 文档聚合
"springdoc" : "org.springdoc:springdoc-openapi-starter-webmvc-api:${springdoc}",
"springdocui" : "org.springdoc:springdoc-openapi-starter-webmvc-ui:${springdoc}",
// swagger
"knife4j_ui" : "com.github.xiaoymin:knife4j-openapi3-ui:${knife4j}",
// jwt
"jwt": "com.nimbusds:nimbus-jose-jwt:${jwt}",
// 线程增强
"ttl": "com.alibaba:transmittable-thread-local:${ttl}",
// websocket
"websocket": "org.springframework.boot:spring-boot-starter-websocket",
"devTools" : "org.springframework.boot:spring-boot-devtools",
"actuator" : "org.springframework.boot:spring-boot-starter-actuator",
"prometheus" : "io.micrometer:micrometer-registry-prometheus:1.13.6",
//文件上传minIO
"minio" : "io.minio:minio:${minio}"
]
}
allprojects {
group = 'io.nerv'
version = '3.0.2'
}
subprojects {
apply plugin: 'java-library'
apply plugin: 'maven-publish'
apply plugin: 'signing'
apply plugin: 'io.spring.dependency-management'
java {
toolchain {
languageVersion = JavaLanguageVersion.of(21)
}
}
dependencyManagement {
imports {
mavenBom "${lib.boot}"
}
}
tasks.withType(JavaCompile).configureEach {
options.encoding = "UTF-8"
}
tasks.withType(Javadoc).configureEach {
options.encoding = "UTF-8"
options.addStringOption('Xdoclint:none', '-quiet')
}
tasks.withType(JavaCompile).configureEach {
options.compilerArgs.add("-parameters")
}
repositories {
mavenLocal()
//maven {
// url "http://192.168.10.12:8082/artifactory/public/"
// allowInsecureProtocol = true
//}
// allowInsecureProtocol = true
maven {
url "http://192.168.10.16:8082/artifactory/yunyue-public/"
allowInsecureProtocol = true
credentials {
username = 'yyfrog'
password = 'YYfrog7788'
}
}
mavenCentral()
}
dependencies {
implementation "${lib.lombok}"
annotationProcessor "${lib.lombok}"
testImplementation "${lib.test}",
"${lib.securityTest}"
}
}