-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
101 lines (83 loc) · 2.71 KB
/
build.gradle
File metadata and controls
101 lines (83 loc) · 2.71 KB
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
buildscript {
ext {
springBootVersion = '2.5.3'
querydslPluginVersion ='1.0.10'
}
repositories {
mavenCentral({
url "https://plugins.gradle.org/m2/"
})
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
classpath "io.spring.gradle:dependency-management-plugin:1.0.11.RELEASE"
classpath("gradle.plugin.com.ewerk.gradle.plugins:querydsl-plugin:${querydslPluginVersion}")
}
}
subprojects {
apply plugin: 'java'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
group = 'com.velog'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = 11
repositories {
mavenCentral()
}
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-web'
compileOnly 'org.projectlombok:lombok'
developmentOnly 'org.springframework.boot:spring-boot-devtools'
runtimeOnly 'com.h2database:h2'
annotationProcessor 'org.projectlombok:lombok'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
implementation 'org.springframework.boot:spring-boot-starter-validation'
implementation 'org.springframework.boot:spring-boot-starter-oauth2-client'
implementation 'org.springframework.boot:spring-boot-starter-webflux'
// maria db
implementation group: 'org.mariadb.jdbc', name: 'mariadb-java-client', version: '2.4.1'
// aop
implementation 'org.springframework.boot:spring-boot-starter-aop'
}
}
project(':velog_backend') {
bootJar.enabled = true
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
}
project(':velog_domain') {
bootJar.enabled = false
jar.enabled = true
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
}
def testProjects = [
project(':velog_domain'),
project(':velog_backend'),
]
configure(testProjects) {
apply {
plugin('jacoco')
}
jacoco {
toolVersion = '0.8.5'
}
jacocoTestReport {
executionData(fileTree(project.rootDir.absolutePath).include("**/build/jacoco/*.exec"))
reports {
html.enabled true
xml.enabled true
csv.enabled false
xml.destination file("$buildDir/jacoco/jacoco.xml")
}
testProjects.forEach {
sourceSets(it.sourceSets["main"] as SourceSet)
}
}
}