-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
73 lines (63 loc) · 2.55 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
buildscript {
repositories {
mavenLocal()
mavenCentral()
maven { url "https://repo.spring.io/milestone" }
maven { url "https://maven.aliyun.com/nexus/content/repositories/snapshots" }
}
ext {
springbootVersion = '2.2.5.RELEASE'
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springbootVersion}")
classpath 'org.junit.platform:junit-platform-gradle-plugin:1.2.0'
}
}
plugins {
id 'java'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
}
group 'com.cwenao'
version '1.0-SNAPSHOT'
configure(allprojects){ project ->
apply plugin: 'io.spring.dependency-management'
apply plugin: 'java'
apply plugin: 'idea'
dependencyManagement {
resolutionStrategy {
cacheChangingModulesFor 0, 'seconds'
}
imports {
mavenBom "org.springframework.boot:spring-boot-dependencies:${springbootVersion}"
mavenBom "org.springframework.boot:spring-boot-starter:${springbootVersion}"
}
dependencies {
dependency group: 'org.projectlombok', name: 'lombok', version: '1.18.20'
dependency group: 'org.apache.commons', name: 'commons-lang3', version: '3.10'
dependency group: 'cn.hutool', name: 'hutool-core', version: '5.5.0'
dependency group: 'com.alibaba', name: 'fastjson', version: '1.2.60'
dependency group: 'org.mybatis.spring.boot', name: 'mybatis-spring-boot-starter', version: '2.1.3'
dependency group: 'com.github.pagehelper', name: 'pagehelper', version: '5.1.7'
}
}
}
configure(subprojects){ project->
apply plugin: 'io.spring.dependency-management'
apply plugin: 'java'
dependencies {
compile group: 'org.springframework.boot', name: 'spring-boot-starter-web'
compile group: 'org.projectlombok', name: 'lombok'
annotationProcessor 'org.projectlombok:lombok'
annotationProcessor "org.springframework.boot:spring-boot-configuration-processor"
compile group: 'org.apache.commons', name: 'commons-lang3'
compile group: 'cn.hutool', name: 'hutool-core'
compile group: 'com.alibaba', name: 'fastjson'
compile group: 'org.springframework.boot', name: 'spring-boot-starter-data-redis'
compile group: 'org.springframework.boot',name: 'spring-boot-starter-actuator'
testCompile 'org.junit.jupiter:junit-jupiter-api:5.7.0'
runtimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.7.0'
}
}
test {
useJUnitPlatform()
}