-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
105 lines (89 loc) · 2.64 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
buildscript {
ext {
springBootVersion = '2.7.4'
dependencyManagementVersion = '1.0.11.RELEASE'
flywayVersion = '7.15.0'
dependencyManagementVersion = '1.1.0'
jsr305Version = '3.0.1'
spotlessVersion = '6.8.0'
springdocVersion = '1.6.11'
reactorSpringVersion = '1.0.1.RELEASE'
jsonwebtokenVersion = '0.11.5'
firebaseAdminVersion = '9.1.1'
set('springCloudVersion', "2021.0.1")
}
repositories {
mavenCentral()
}
dependencies {
classpath "org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}"
classpath "io.spring.gradle:dependency-management-plugin:${dependencyManagementVersion}"
}
}
plugins {
id 'java'
id "org.flywaydb.flyway" version "${flywayVersion}"
id "com.diffplug.spotless" version "${spotlessVersion}"
id "io.spring.dependency-management" version "${dependencyManagementVersion}"
id 'com.epages.restdocs-api-spec' version '0.16.0'
}
allprojects {
plugins.apply("com.diffplug.spotless")
spotless {
java {
importOrder()
removeUnusedImports()
trimTrailingWhitespace()
googleJavaFormat('1.12.0')
indentWithTabs(2)
endWithNewline()
target 'src/*/java/**/*.java'
}
format 'misc', {
target '**/*.gradle', '**/*.md', '**/.gitignore'
targetExclude '.release/*.*'
indentWithSpaces()
trimTrailingWhitespace()
endWithNewline()
}
}
repositories {
mavenCentral()
}
}
subprojects {
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
apply plugin: 'java'
apply plugin: 'java-library'
apply plugin: 'groovy'
group = 'com.depromeet'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '11'
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
}
allprojects {
}
dependencies {
annotationProcessor("javax.annotation:javax.annotation-api")
//lombok
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation('org.spockframework:spock-core:2.3-groovy-4.0')
testImplementation('org.spockframework:spock-spring:2.3-groovy-4.0')
}
test {
useJUnitPlatform()
testLogging {
events "failed"
exceptionFormat "full"
}
}
}