-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
66 lines (59 loc) · 1.72 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
plugins {
id 'java-library'
id 'project-setup' apply false
alias libs.plugins.cadixdev.licenser
alias libs.plugins.springframework.boot apply false
alias libs.plugins.springframework.depManagement apply false
}
group = 'com.github.tmslpm.hsla'
version = '1.0.0'
subprojects {
apply plugin: 'java-library'
apply plugin: 'project-setup'
apply plugin: libs.plugins.springframework.boot.get().pluginId
apply plugin: libs.plugins.springframework.depManagement.get().pluginId
apply plugin: libs.plugins.cadixdev.licenser.get().pluginId
group = "${rootProject.group}.$name"
version = rootProject.version
base {
archivesName = "$rootProject.name-$name"
}
dependencies {
testImplementation 'org.springframework.boot:spring-boot-starter-test'
implementation 'org.springframework.boot:spring-boot-starter'
switch (name) {
case 'app':
implementation project(":src:pl")
implementation project(":src:bll")
implementation project(":src:dal")
break
// A P P //
// --- ▲ //
// │ │ //
// ▼ --- //
case 'pl':
api(project(":src:bll")) {
exclude group: project(":src:dal").group.toString()
}
testImplementation project(":src:app")
break
// --- ▲ //
// │ │ //
// ▼ --- //
case 'bll':
api project(":src:dal")
testImplementation project(":src:app")
break
// --- ▲ //
// │ │ //
// ▼ --- //
case 'dal':
testImplementation project(":src:app")
break
default: break
}
}
license {
header = project.rootProject.file('license.md')
}
}