-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
88 lines (71 loc) · 2.41 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
import com.commercehub.gradle.plugin.avro.GenerateAvroJavaTask
plugins {
id 'com.commercehub.gradle.plugin.avro' version '0.99.99'
id 'org.springframework.boot' version '2.4.5'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id 'org.sonarqube' version '3.1.1'
id 'java'
}
group = 'br.com.ecommerce'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '1.8'
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
maven {
url 'http://packages.confluent.io/maven/'
allowInsecureProtocol(true)
}
}
ext {
set('springCloudVersion', "2020.0.2")
set('swaggerVersion', "2.9.2")
set('springBootVersion', "2.4.5")
}
dependencies {
// Spring Boot
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation "org.springframework.boot:spring-boot-starter-actuator:${springBootVersion}"
implementation 'org.springframework.data:spring-data-envers'
// Spring Cloud
implementation 'org.springframework.cloud:spring-cloud-starter-sleuth'
implementation 'org.springframework.cloud:spring-cloud-stream'
implementation 'org.springframework.cloud:spring-cloud-stream-binder-kafka'
// Swagger
implementation "io.springfox:springfox-swagger2:${swaggerVersion}"
implementation "io.springfox:springfox-swagger-ui:${swaggerVersion}"
// Lombok
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
// PostgreSQL
runtimeOnly 'org.postgresql:postgresql'
// Kafka
implementation 'org.apache.kafka:kafka-streams'
// Avro
implementation 'io.confluent:kafka-avro-serializer:5.5.0'
// Tests
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testCompileOnly 'org.projectlombok:lombok'
testAnnotationProcessor 'org.projectlombok:lombok'
}
sonarqube {
properties {
property "sonar.projectKey", "Caiuzu_ecommerce-payment-api"
property "sonar.organization", "caiuzu"
property "sonar.host.url", "https://sonarcloud.io"
}
}
dependencyManagement {
imports {
mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
}
}
task generateAvro(type: GenerateAvroJavaTask) {
source("src/main/resources/avro")
outputDir = file("src/main/java")
}