-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
106 lines (88 loc) · 3.61 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
106
plugins {
id 'com.diffplug.spotless' version '6.18.0'
id 'org.springframework.boot' version "${globalSpringBootVersion}"
id 'io.spring.dependency-management' version '1.1.0'
id 'org.asciidoctor.jvm.convert' version '3.3.2'
id 'java'
}
ext {
set('snippetsDir', file("build/generated-snippets"))
postgresqlVersion = '42.6.0'
springBootVersion = "${globalSpringBootVersion}"
springDocVersion = '2.1.0'
springSecurityVersion = '6.0.2'
testcontainersVersion = '1.18.0'
}
group = 'com.octo.ajava'
version = '0.0.1-SNAPSHOT'
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}
repositories {
mavenCentral()
}
dependencies {
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310'
implementation "org.springframework.boot:spring-boot-starter:${springBootVersion}"
implementation "org.springframework.boot:spring-boot-starter-actuator:${springBootVersion}"
implementation "org.springframework.boot:spring-boot-starter-data-jpa:${springBootVersion}"
implementation "org.springframework.boot:spring-boot-starter-oauth2-resource-server:${springBootVersion}"
implementation "org.springframework.boot:spring-boot-starter-security:${springBootVersion}"
implementation "org.springframework.boot:spring-boot-starter-validation:${springBootVersion}"
implementation "org.springframework.boot:spring-boot-starter-web:${springBootVersion}"
implementation "org.springframework.boot:spring-boot-starter-webflux:${springBootVersion}"
implementation "org.springframework.security:spring-security-config:${springSecurityVersion}"
implementation "org.springframework.security:spring-security-oauth2-client:${springSecurityVersion}"
implementation "org.springdoc:springdoc-openapi-starter-webmvc-ui:${springDocVersion}"
//runtimeOnly 'org.postgresql:postgresql'
implementation "org.postgresql:postgresql:${postgresqlVersion}"
implementation 'me.paulschwarz:spring-dotenv:3.0.0'
testImplementation "org.springframework.boot:spring-boot-starter-test:${springBootVersion}"
testImplementation "org.springframework.security:spring-security-test:${springSecurityVersion}"
testImplementation 'org.springframework.restdocs:spring-restdocs-mockmvc'
testImplementation 'org.testcontainers:junit-jupiter'
testImplementation 'org.testcontainers:postgresql'
//testImplementation 'com.h2database:h2:2.1.214'
testImplementation "com.github.tomakehurst:wiremock-jre8-standalone:2.35.0"
testImplementation "org.testcontainers:testcontainers:${testcontainersVersion}"
annotationProcessor "org.springframework.boot:spring-boot-configuration-processor:${globalSpringBootVersion}"
testImplementation "io.rest-assured:rest-assured:5.2.0"
}
dependencyManagement {
imports {
mavenBom "org.testcontainers:testcontainers-bom:${testcontainersVersion}"
}
}
spotless {
java {
targetExclude "build/**"
googleJavaFormat()
removeUnusedImports()
}
}
test {
outputs.dir snippetsDir
useJUnitPlatform()
testLogging {
events "passed", "skipped", "failed"
exceptionFormat "full"
}
afterSuite { desc, result ->
if (!desc.parent) {
println "\nTest result: ${result.resultType}"
println "Test summary: ${result.testCount} tests, " +
"${result.successfulTestCount} succeeded, " +
"${result.failedTestCount} failed, " +
"${result.skippedTestCount} skipped"
}
}
}
asciidoctor {
inputs.dir snippetsDir
dependsOn test
}
wrapper {
gradleVersion = '7.6'
}