-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
77 lines (67 loc) · 2.47 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
/*
* This file was generated by the Gradle 'init' task.
*
* This generated file contains a sample Java application project to get you started.
* For more details take a look at the 'Building Java & JVM projects' chapter in the Gradle
* User Manual available at https://docs.gradle.org/7.4.2/userguide/building_java_projects.html
* This project uses @Incubating APIs which are subject to change.
*/
plugins {
// Apply the java plugin to add support for Java
id 'java'
// Apply the application plugin to add support for building a CLI application.
id 'application'
// https://plugins.gradle.org/plugin/net.ltgt.errorprone
id "net.ltgt.errorprone" version "2.0.2"
//https://plugins.gradle.org/plugin/com.commercehub.gradle.plugin.avro
id "com.github.davidmc24.gradle.plugin.avro" version "1.3.0"
//https://docs.gradle.org/current/userguide/idea_plugin.html
id 'idea'
}
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
repositories {
// Use Maven Central for resolving dependencies.
mavenCentral()
maven { url 'https://packages.confluent.io/maven/' }
}
dependencies {
// This dependency is used by the application.
implementation 'org.apache.kafka:kafka-streams:2.7.0'
// required for JSON serializer
implementation 'com.google.code.gson:gson:2.8.5'
//avro support
implementation 'org.apache.avro:avro:1.11.0'
implementation 'com.mitchseymour:kafka-registryless-avro-serdes:1.0.0'
implementation ('io.confluent:kafka-streams-avro-serde:7.1.1') {
exclude group: 'org.apache.kafka', module: 'kafka-clients'
}
implementation("com.google.guava:guava:31.1-jre")
errorprone("com.google.errorprone:error_prone_core:2.3.2")
errorproneJavac("com.google.errorprone:javac:9+181-r4173-1")
}
testing {
suites {
// Configure the built-in test suite
test {
useJUnitJupiter('5.8.1')
}
}
}
application {
mainClass = 'com.gelerion.kafka.streams.crypto.sentiment.CryptoSentimentApp'
}
// code formatting + error prone
tasks.withType(JavaCompile).configureEach { javaCompile ->
//javaCompile.dependsOn 'googleJavaFormat'
options.compilerArgs << "-Xlint:deprecation"
options.compilerArgs << "-Xlint:unchecked"
options.encoding = 'UTF-8'
options.errorprone {
disableWarningsInGeneratedCode = true
excludedPaths = '.*/build/generated-main-avro-java/.*'
}
}
avro {
fieldVisibility = 'PRIVATE'
}