-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathbuild.gradle
120 lines (96 loc) · 3.7 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
plugins {
id 'org.springframework.boot' version '3.0.0' apply false
id 'io.spring.dependency-management' version '1.1.0' apply false
id 'jacoco'
id 'jacoco-report-aggregation'
}
apply plugin: 'java'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
dependencies {
implementation project(':common')
implementation project(':user')
implementation project(':resume')
implementation project(':admin')
implementation project(':vip')
implementation project(':article')
implementation project(':product')
implementation project(':order')
implementation project(':oss')
}
allprojects {
apply plugin: 'java'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
group = 'com.xzgedu.supercv'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '17'
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
}
dependencies {
// Spring boot web starter including logback slf4j...
implementation 'org.springframework.boot:spring-boot-starter-web'
// MySQL
implementation 'org.mybatis.spring.boot:mybatis-spring-boot-starter:3.0.0'
runtimeOnly 'com.mysql:mysql-connector-j'
// Lombok
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
// Testing
// testImplementation 'org.springframework.boot:spring-boot-starter-test'
implementation 'org.springframework.boot:spring-boot-starter-test'
// H2 Database (for in-memory testing)
runtimeOnly 'com.h2database:h2'
// Druid
implementation 'com.alibaba:druid-spring-boot-3-starter:1.2.23'
// commons-lang3, include StringUtils
implementation 'org.apache.commons:commons-lang3:3.12.0'
// Api Doc
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.1.0'
// Ali Sms client
implementation 'com.aliyun:dysmsapi20170525:2.0.23'
implementation 'xerces:xercesImpl:2.12.2'
// Ali sts
// https://mvnrepository.com/artifact/com.aliyun/sts20150401
implementation 'com.aliyun:sts20150401:1.1.3'
// OSS
// https://mvnrepository.com/artifact/com.aliyun.oss/aliyun-sdk-oss
implementation 'com.aliyun.oss:aliyun-sdk-oss:3.17.4'
// Tencent Captcha
implementation 'com.tencentcloudapi:tencentcloud-sdk-java-captcha:3.1.754'
// fastjson
implementation 'com.alibaba.fastjson2:fastjson2:2.0.20'
implementation 'com.alibaba.fastjson2:fastjson2-extension:2.0.20'
// commons-lang3, include StringUtils
implementation 'org.apache.commons:commons-lang3:3.12.0'
//微信官方支付:https://github.com/wechatpay-apiv3/wechatpay-java?tab=readme-ov-file
implementation 'com.github.wechatpay-apiv3:wechatpay-java:0.2.14'
// Markdown
implementation 'org.commonmark:commonmark:0.21.0'
implementation 'com.vladsch.flexmark:flexmark-all:0.64.0'
implementation 'org.jsoup:jsoup:1.15.4'
}
tasks.named('test') {
useJUnitPlatform()
finalizedBy jacocoTestReport // report is always generated after tests run
}
jacocoTestReport {
dependsOn test
reports {
xml.required = false
csv.required = false
html
}
}
}
// 输出结果在 build/reports/jacoco/testCodeCoverageReport/html/index.html
tasks.named('check') {
// make JaCoCo aggregate report generation part of the 'check' lifecycle phase
dependsOn tasks.named('testCodeCoverageReport', JacocoReport)
}