-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
128 lines (110 loc) · 4.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
125
126
127
128
plugins {
id 'org.springframework.boot' version '2.6.7'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id "org.sonarqube" version "3.3"
id 'java'
id 'idea'
id 'jacoco'
}
group = 'com.demo'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '11'
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
}
idea {
module {
downloadSources(true)
downloadJavadoc(true)
}
}
ext {
set('springBootAdminVersion', "2.6.5")
set('testcontainersVersion', "1.16.2")
set('springCloudVersion', "2021.0.2")
set('blazePersistenceVersion', '1.6.6')
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-data-jdbc'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-jdbc'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-aop'
// OPS and Observability
implementation 'org.springframework.boot:spring-boot-starter-actuator'
implementation 'de.codecentric:spring-boot-admin-starter-server'
implementation 'de.codecentric:spring-boot-admin-starter-client'
implementation 'io.opentracing.brave:brave-opentracing'
implementation 'org.springframework.cloud:spring-cloud-starter-sleuth'
implementation 'org.springframework.cloud:spring-cloud-sleuth-zipkin'
// DBs
runtimeOnly 'com.h2database:h2'
runtimeOnly 'org.postgresql:postgresql'
//Blaze modules for DTO better handling
//core blaze
implementation "com.blazebit:blaze-persistence-core-api:${blazePersistenceVersion}"
runtimeOnly "com.blazebit:blaze-persistence-core-impl:${blazePersistenceVersion}"
// blaze hibernate 5.4
runtimeOnly "com.blazebit:blaze-persistence-integration-hibernate-5.6:${blazePersistenceVersion}"
// blaze entity view module
implementation "com.blazebit:blaze-persistence-entity-view-api:${blazePersistenceVersion}"
implementation "com.blazebit:blaze-persistence-entity-view-impl:${blazePersistenceVersion}"
// blaze spring integration
implementation "com.blazebit:blaze-persistence-integration-entity-view-spring:${blazePersistenceVersion}"
implementation "com.blazebit:blaze-persistence-integration-spring-data-2.4:${blazePersistenceVersion}"
// dependencies for blaze spring integration
implementation "com.blazebit:blaze-persistence-jpa-criteria-api:${blazePersistenceVersion}"
runtimeOnly "com.blazebit:blaze-persistence-jpa-criteria-impl:${blazePersistenceVersion}"
implementation "com.blazebit:blaze-persistence-jpa-criteria-jpa-2-compatibility:${blazePersistenceVersion}"
//blaze annotation processor
annotationProcessor "com.blazebit:blaze-persistence-entity-view-processor:${blazePersistenceVersion}"
// annotation processors
annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor'
annotationProcessor 'org.springframework.boot:spring-boot-autoconfigure-processor'
annotationProcessor 'org.hibernate:hibernate-jpamodelgen'
developmentOnly 'org.springframework.boot:spring-boot-devtools'
implementation 'com.fasterxml.jackson.dataformat:jackson-dataformat-csv'
//documentation
implementation 'org.springdoc:springdoc-openapi-ui:1.6.8'
implementation 'org.springdoc:springdoc-openapi-webmvc-core:1.6.8'
implementation 'org.springdoc:springdoc-openapi-webflux-ui:1.6.8'
// testing
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'org.testcontainers:junit-jupiter'
testImplementation 'org.testcontainers:postgresql'
}
dependencyManagement {
imports {
mavenBom "de.codecentric:spring-boot-admin-dependencies:${springBootAdminVersion}"
mavenBom "org.testcontainers:testcontainers-bom:${testcontainersVersion}"
mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
}
}
test {
useJUnitPlatform()
}
sonarqube {
properties {
property "sonar.projectKey", "dgallego58_demo-effective-jpa"
property "sonar.organization", "dgallego58"
property "sonar.host.url", "https://sonarcloud.io"
property 'sonar.language', 'java'
property 'sonar.core.codeCoveragePlugin', 'jacoco'
property 'sonar.jacoco.reportPaths', "${buildDir}/jacoco/test.exec"
property 'sonar.coverage.jacoco.xmlReportPaths', "${buildDir}/reports/jacoco/jacoco.xml"
}
}
printf("build dir is ${buildDir}")
jacocoTestReport {
reports {
xml.enabled true
csv.enabled false
html.enabled true
xml.destination file("${buildDir}/reports/jacoco/jacoco.xml")
}
}