-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
91 lines (73 loc) · 2.58 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
plugins {
id 'org.springframework.boot' version '2.2.2.RELEASE'
id 'io.spring.dependency-management' version '1.0.8.RELEASE'
id 'java'
id 'idea'
id 'org.asciidoctor.convert' version '1.5.9.2'
}
group = 'com.depromeet.watni'
version = ''
sourceCompatibility = '1.8'
archivesBaseName = 'watni'
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-actuator'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-data-redis'
implementation 'org.springframework.boot:spring-boot-starter-security'
implementation group: 'org.springframework.security.oauth', name: 'spring-security-oauth2', version: '2.3.8.RELEASE'
implementation 'mysql:mysql-connector-java'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'org.springframework.security:spring-security-test'
implementation 'org.projectlombok:lombok'
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
testImplementation 'org.projectlombok:lombok'
// mapstruct
implementation "org.mapstruct:mapstruct:1.3.0.Final"
annotationProcessor "org.mapstruct:mapstruct-processor:1.3.0.Final"
// asciidoc
asciidoctor 'org.springframework.restdocs:spring-restdocs-asciidoctor:2.0.3.RELEASE'
testImplementation 'org.springframework.restdocs:spring-restdocs-mockmvc:2.0.3.RELEASE'
// hateoas for Rest API
implementation "org.springframework.boot:spring-boot-starter-hateoas"
// https://mvnrepository.com/artifact/org.jasypt/jasypt
implementation 'com.github.ulisesbocchio:jasypt-spring-boot-starter:2.1.0'
// h2
testImplementation 'com.h2database:h2:1.4.199'
runtimeOnly 'com.h2database:h2:1.4.199'
implementation group: 'com.google.guava', name: 'guava', version: '11.0.2'
implementation 'com.amazonaws:aws-java-sdk-bom:1.11.228'
implementation 'com.amazonaws:aws-java-sdk-s3:1.11.228'
compile group: 'commons-io', name: 'commons-io', version: '2.6'
}
test {
if (!project.hasProperty('encryptionKey')) {
println 'not found encryptionKey'
} else {
println project.getProperty("encryptionKey")
systemProperty ("encryptionKey", project.getProperty("encryptionKey"))
}
useJUnitPlatform()
}
ext {
snippetsDir = file('build/generated-snippets')
}
asciidoctor {
inputs.dir snippetsDir
dependsOn test
}
bootJar {
dependsOn asciidoctor
from ("${asciidoctor.outputDir}/html5") {
into 'static/docs'
}
}