-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
112 lines (92 loc) · 3.19 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
plugins {
id 'io.spring.dependency-management' version "1.0.12.RELEASE"
id 'org.springframework.boot' version '2.7.2'
id 'java'
id 'idea'
id 'com.google.cloud.tools.jib' version '3.3.0'
}
//apply from: 'jib.gradle'
idea {
project {
languageLevel = JavaVersion.VERSION_11
}
module {
downloadJavadoc = true
downloadSources = true
}
}
repositories {
mavenCentral()
}
group = 'org.devalurum'
version = '0.0.1'
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
ext {
javaxValidVersion = "2.0.1.Final"
javaxPersistenceVersion = "2.2"
gsonVersion = "2.10"
lombokMapstructBindingVersion = "0.2.0";
mapstructVersion = "1.5.0.RC1"
lombokVersion = "1.18.24"
hibernateVersion = "5.5.5.Final"
hibernateTypesVersion = "2.4.3"
openApiVersion = "1.6.8"
apacheCommonsLang3Version = "3.12.0"
jaxbApiVersion = "2.3.0"
junitVersion = "4.13.2"
log4jdbcVersion = "2.0.0"
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-data-rest'
implementation 'org.springframework.boot:spring-boot-starter-validation'
implementation('org.springframework.boot:spring-boot-starter-web') {
exclude group: 'org.springframework.boot', module: 'spring-boot-starter-logging'
}
implementation "com.integralblue:log4jdbc-spring-boot-starter:${log4jdbcVersion}"
implementation "org.springdoc:springdoc-openapi-webmvc-core:$openApiVersion"
implementation "org.springdoc:springdoc-openapi-ui:$openApiVersion"
implementation "org.springdoc:springdoc-openapi-data-rest:$openApiVersion"
implementation "org.mapstruct:mapstruct:$mapstructVersion",
"org.projectlombok:lombok:$lombokVersion",
"org.projectlombok:lombok-mapstruct-binding:$lombokMapstructBindingVersion"
implementation "com.h2database:h2"
implementation "javax.xml.bind:jaxb-api:${jaxbApiVersion}"
implementation "org.apache.commons:commons-lang3:${apacheCommonsLang3Version}"
annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor'
annotationProcessor "org.mapstruct:mapstruct-processor:${mapstructVersion}",
"org.projectlombok:lombok:$lombokVersion",
"org.projectlombok:lombok-mapstruct-binding:${lombokMapstructBindingVersion}"
testImplementation "junit:junit:${junitVersion}"
testImplementation "com.google.code.gson:gson:${gsonVersion}"
testImplementation "com.h2database:h2"
testImplementation 'org.springframework.boot:spring-boot-starter-test'
}
configurations.all {
exclude module: 'slf4j-log4j12'
}
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
tasks.named("bootJar") {
mainClass = 'org.devalurum.transactionsapp.TransactionsApplication'
archiveName = "$baseName.$extension"
}
tasks.withType(JavaCompile) {
options.compilerArgs = [
'-Amapstruct.defaultComponentModel=spring'
]
}
task managedVersions {
doLast {
dependencyManagement.managedVersions.each {
println it
}
}
}
test {
useJUnitPlatform()
}