This repository has been archived by the owner on Oct 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
108 lines (85 loc) · 3.45 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
plugins {
id "org.springframework.boot" version "${springBoot}"
id 'io.spring.dependency-management' version "${springDependencyManagement}"
id "org.sonarqube" version "${sonarQubePlugin}"
id 'java'
}
bootJar {
layered {
enabled = true
}
}
group = 'com.github.remus-selea'
version = "${major}" + "." + "${minor}" + "." + "${patch}"
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
if (hasProperty('buildScan')) {
buildScan {
termsOfServiceUrl = 'https://gradle.com/terms-of-service'
termsOfServiceAgree = 'yes'
}
}
repositories {
mavenCentral()
}
ext {
set('elasticsearch.version', '7.10.0')
}
dependencies {
/** SPRING **/
implementation "org.springframework.boot:spring-boot-starter-actuator"
implementation "org.springframework.boot:spring-boot-starter-cache"
implementation "org.springframework.boot:spring-boot-starter-data-jpa"
implementation "org.springframework.boot:spring-boot-starter-hateoas"
implementation "org.springframework.boot:spring-boot-starter-security"
implementation "org.springframework.boot:spring-boot-starter-web"
implementation "org.springframework.boot:spring-boot-starter-data-elasticsearch"
implementation "org.springframework.boot:spring-boot-starter-oauth2-client"
implementation "org.springframework.boot:spring-boot-starter-validation"
annotationProcessor "org.springframework.boot:spring-boot-configuration-processor"
/** SPRING CLOUD SLEUTH **/
implementation "org.springframework.cloud:spring-cloud-starter-sleuth:${springCloudSleuth}"
/** SPRING BOOT ADMIN CLIENT **/
implementation "de.codecentric:spring-boot-admin-starter-client:${springBootAdmin}"
/** LOMBOK **/
compileOnly "org.projectlombok:lombok"
annotationProcessor "org.projectlombok:lombok"
/** SPRINGDOC **/
implementation "org.springdoc:springdoc-openapi-ui:${springDoc}"
/** POSTGRESQL **/
runtimeOnly "org.postgresql:postgresql"
/** H2 **/
compile "com.h2database:h2:${h2Database}"
/** MAPSTRUCT **/
implementation "org.mapstruct:mapstruct:${mapstruct}"
annotationProcessor "org.mapstruct:mapstruct-processor:${mapstruct}"
/** LOGSTASH LOGBACK ENCODER **/
compile "net.logstash.logback:logstash-logback-encoder:${logstashLogBackEncoder}"
/** # LOGBACK CONDITIONALS **/
compile "org.codehaus.janino:janino:${janino}"
/** HIBERNATE SEARCH **/
implementation "org.hibernate.search:hibernate-search-mapper-orm:${hibernateSearch}"
implementation "org.hibernate.search:hibernate-search-backend-elasticsearch:${hibernateSearch}"
/** JSON WEB TOKEN **/
implementation "io.jsonwebtoken:jjwt-api:${jjwt}"
runtimeOnly "io.jsonwebtoken:jjwt-impl:${jjwt}"
runtimeOnly "io.jsonwebtoken:jjwt-jackson:${jjwt}"
/** TESTING **/
testImplementation("org.springframework.boot:spring-boot-starter-test") {
exclude group: "org.junit.vintage", module: "junit-vintage-engine"
}
testImplementation "org.springframework.security:spring-security-test"
testCompile "org.mockito:mockito-core:${mockito}"
// Test containers
testImplementation "org.testcontainers:testcontainers:${testcontainersVersion}"
// If you are using mapstruct in test code
testAnnotationProcessor "org.mapstruct:mapstruct-processor:${mapstruct}"
}
test {
useJUnitPlatform()
}