-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
124 lines (106 loc) · 3.71 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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
plugins {
id 'java'
id 'org.springframework.boot' version '3.0.4'
id 'io.spring.dependency-management' version '1.1.0'
id "org.openapi.generator" version "5.3.0"
}
ext {
set('keycloakVersion', '21.0.1')
}
group = 'com.mojafa'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '17'
configurations {
compileOnly {
extendsFrom annotationProcessor
}
all {
exclude group: 'org.slf4j', module: 'slf4j-simple'
}
}
repositories {
mavenCentral()
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa:3.0.4'
implementation 'org.jetbrains:annotations:24.0.1'
implementation 'io.springfox:springfox-swagger2:3.0.0'
implementation 'io.springfox:springfox-swagger-ui:3.0.0'
implementation 'javax.annotation:javax.annotation-api:1.3.2'
implementation 'org.springframework:spring-webflux:6.0.6'
implementation 'io.github.resilience4j:resilience4j-spring-boot2:2.0.2'
implementation 'io.rest-assured:spring-mock-mvc:5.3.0'
implementation 'org.keycloak:keycloak-spring-boot-starter'
implementation 'com.squareup.okhttp3:mockwebserver:4.10.0'
implementation 'org.springframework.boot:spring-boot-starter-security'
implementation 'org.springframework.security:spring-security-test'
implementation 'com.squareup.okhttp3:okhttp:4.10.0'
implementation 'org.springframework.security:spring-security-config:5.5.1'
implementation 'javax.servlet:javax.servlet-api:4.0.1'
testImplementation 'junit:junit:4.13.2'
testImplementation 'org.testng:testng:7.7.0'
testImplementation 'junit:junit:4.13.2'
compileOnly 'org.projectlombok:lombok:1.18.26'
annotationProcessor 'org.projectlombok:lombok:1.18.26'
testImplementation 'org.springframework.boot:spring-boot-starter-test:3.0.4'
implementation 'mysql:mysql-connector-java:8.0.32'
// @Nullable annotation
implementation 'com.google.code.findbugs:jsr305:3.0.2'
implementation 'com.fasterxml.jackson.dataformat:jackson-dataformat-yaml'
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310'
implementation 'org.openapitools:jackson-databind-nullable:0.2.2'
// Bean Validation API support
implementation 'org.springframework.boot:spring-boot-starter-validation'
implementation 'com.fasterxml.jackson.core:jackson-databind'
implementation 'org.springdoc:springdoc-openapi-ui:1.6.9'
//Open Api Generator
// https://mvnrepository.com/artifact/org.openapitools/openapi-generator
implementation 'org.openapitools:openapi-generator:6.0.0'
implementation('org.springframework.boot:spring-boot-starter-web') {
exclude group: 'org.springframework.boot', module: 'spring-boot-autoconfigure'
}
}
dependencyManagement {
imports {
mavenBom "org.keycloak.bom:keycloak-adapter-bom:${keycloakVersion}"
}
}
tasks.named('test') {
useJUnitPlatform()
}
task srcZip(type: Zip) {
classifier = 'src'
from projectDir
include 'open-api/*'
include 'src/**/*'
include '*.gradle'
include 'README.md'
doLast {
println "Path to zip: $archivePath.path"
}
}
openApiGenerate {
generatorName = "spring"
generateModelDocumentation = false
generateApiDocumentation = false
inputSpec = "$rootDir/open-api/open-banking.yaml".toString()
outputDir = "$buildDir/generated".toString()
invokerPackage = "com.acme.banking.invoker"
modelPackage = "com.acme.banking.model"
apiPackage = "com.acme.banking.api"
configOptions = [
dateLibrary: "java17",
basePackage: "com.acme.banking",
interfaceOnly: "true",
useBeanValidation: "false"
]
}
task copyGenerated(type: Copy) {
from "$buildDir/generated/src/main/java/com/acme/banking/model"
into "$rootDir/src/main/java/com/acme/banking/model"
}
task cleanGenerated(type: Delete) {
delete "$rootDir/src/main/java/com"
}
clean.dependsOn cleanGenerated