-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
72 lines (56 loc) · 1.51 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
description("This is springboot-multi-module")
buildscript {
ext.versions = [
springbootVersion: '2.6.3'
]
repositories {
mavenCentral()
// aliyun images
maven { url 'https://maven.aliyun.com/nexus/content/groups/public' }
maven { url 'https://maven.aliyun.com/nexus/content/repositories/jcenter'}
// spring plugins
maven { url 'https://repo.spring.io/plugins-release'}
}
dependencies {
classpath ("org.springframework.boot:spring-boot-gradle-plugin:${versions.springbootVersion}")
}
}
allprojects {
group 'com.tbb'
version '1.0-SNAPSHOT'
// This is an executable task
task hello {
doLast {
task -> println "I'm $task.project.name"
}
}
}
subprojects {
repositories {
mavenCentral()
maven { url 'https://maven.aliyun.com/repository/public' }
}
apply plugin: 'java'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
/**
* This is an executable task
* test subproject executable task
*/
hello {
doLast {
task -> println "I depend on springboot-multi-module"
}
}
}
/**
* This is an executable task
* test the specified subproject
*/
project(':springboot-multi-module-system').hello {
doLast {
println "I'm springboot-multi-module-system and depend on springboot-multi-module"
}
}