-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle
85 lines (70 loc) · 2.01 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
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.15'
}
}
plugins {
id 'org.springframework.boot' version '2.4.4'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id 'java'
id 'idea'
id 'com.adarshr.test-logger' version '2.1.1'
id 'jacoco'
}
group = 'com.rbiedrawa.spring.kafka.grpc'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '11'
apply from: 'gradle/integration-test.gradle'
apply from: 'gradle/protobuf.gradle'
apply from: 'gradle/docker.gradle'
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
maven {
url "https://packages.confluent.io/maven"
}
}
ext {
set('springCloudVersion', "2020.0.2")
set('testcontainersVersion', "1.15.2")
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-actuator'
implementation 'org.springframework.cloud:spring-cloud-starter-sleuth'
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
// Kafka
implementation 'org.springframework.kafka:spring-kafka'
implementation 'org.apache.kafka:kafka-streams'
implementation "io.confluent:kafka-streams-protobuf-serde:6.0.1"
testImplementation 'org.springframework.kafka:spring-kafka-test'
integrationTestImplementation 'org.testcontainers:kafka'
integrationTestImplementation 'org.awaitility:awaitility:4.0.3'
// gRPC
implementation 'io.github.lognet:grpc-spring-boot-starter:4.4.5'
// Faker - just for demo
implementation 'com.github.javafaker:javafaker:1.0.2'
// Test core
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'org.testcontainers:junit-jupiter'
}
dependencyManagement {
imports {
mavenBom "org.testcontainers:testcontainers-bom:${testcontainersVersion}"
mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
}
}
test {
useJUnitPlatform()
}
springBoot {
buildInfo()
}