-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
57 lines (49 loc) · 1.62 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
plugins {
//id 'com.commercehub.gradle.plugin.avro' version '0.21.0'
id 'com.github.davidmc24.gradle.plugin.avro' version '1.0.0'
id 'org.springframework.boot' version '2.4.3'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id 'java'
}
group = 'br.com.hcb.learn'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '11'
repositories {
mavenCentral()
maven {
url 'http://packages.confluent.io/maven/'
}
}
ext {
set('springCloudVersion', "2020.0.1")
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.cloud:spring-cloud-starter-sleuth'
implementation 'org.springframework.cloud:spring-cloud-starter-stream-kafka'
implementation 'io.confluent:kafka-avro-serializer:5.5.0'
runtimeOnly('org.postgresql:postgresql')
compileOnly 'org.projectlombok:lombok'
implementation "org.apache.avro:avro:1.10.1"
annotationProcessor 'org.projectlombok:lombok'
implementation 'org.apache.kafka:kafka-streams'
implementation 'org.springframework.cloud:spring-cloud-stream'
implementation 'org.springframework.cloud:spring-cloud-stream-binder-kafka-streams'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
}
dependencyManagement {
imports {
mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
}
}
test {
useJUnitPlatform()
}
avro {
fieldVisibility = "PRIVATE"
}
generateAvroJava{
source 'src/main/resources/avro'
outputDir = file("src/main/java/br/com/hcb/ecommerce/checkout/event")
}