1-
2-
31plugins {
42 // micronaut
5- id " io.spring.dependency-management" version " 1.0.10.RELEASE"
6- id " com.github.johnrengelman.shadow" version " 6.0.0"
7- id " application"
8- id " java"
9- id " net.ltgt.apt-eclipse" version " 0.21"
10- id " net.ltgt.apt-idea" version " 0.21"
11- id " com.gorylenko.gradle-git-properties" version " 2.2.3"
3+ id " com.github.johnrengelman.shadow" version " 7.0.0"
4+ id " io.micronaut.application" version " 1.5.0"
125
136 // akhq
14- id ' com.adarshr.test-logger' version ' 2.1.0'
15- id ' org.gradle.test-retry' version ' 1.1.9'
16- id ' com.github.psxpaul.execfork' version ' 0.1.13'
17- id " com.github.ben-manes.versions" version " 0.28.0"
18- id " com.commercehub.gradle.plugin.avro" version " 0.21.0"
7+ id " com.gorylenko.gradle-git-properties" version " 2.3.1"
8+ id ' com.adarshr.test-logger' version ' 3.0.0'
9+ id ' org.gradle.test-retry' version ' 1.2.1'
10+ id ' com.github.psxpaul.execfork' version ' 0.1.15'
11+ id " com.github.ben-manes.versions" version " 0.38.0"
12+ id " com.github.davidmc24.gradle.plugin.avro" version " 1.2.0"
1913}
2014
2115group " org.akhq"
@@ -26,61 +20,40 @@ sourceCompatibility = 11
2620repositories {
2721 mavenLocal()
2822 mavenCentral()
29- jcenter()
30- maven { url ' http://packages.confluent.io/maven/' }
31- maven { url " https://oss.sonatype.org/content/repositories/snapshots" }
23+ maven { url ' https://packages.confluent.io/maven/' }
3224 maven { url ' https://jitpack.io' }
3325}
3426
35- idea {
36- module {
37- downloadJavadoc = false
38- downloadSources = true
39- }
40- }
4127
4228configurations. all {
43- exclude group : ' org.slf4j' , module : ' slf4j-log4j12'
44- exclude group : ' org.apache.logging.log4j' , module : ' log4j-slf4j-impl'
45- exclude group : ' org.apache.logging.log4j' , module : ' log4j-core'
46- exclude group : ' org.apache.logging.log4j' , module : ' log4j-api'
29+ exclude group : ' org.slf4j' , module : ' slf4j-log4j12'
30+ exclude group : ' org.apache.logging.log4j' , module : ' log4j-slf4j-impl'
31+ exclude group : ' org.apache.logging.log4j' , module : ' log4j-core'
32+ exclude group : ' org.apache.logging.log4j' , module : ' log4j-api'
33+
34+ resolutionStrategy {
35+ force(" org.apache.kafka:kafka-clients:" + kafkaVersion)
36+ force(" org.apache.kafka:kafka-streams:" + kafkaVersion)
37+ force(" org.apache.kafka:kafka_" + kafkaScalaVersion + " :" + kafkaVersion)
38+ }
4739}
4840
49-
5041/* *********************************************************************************************************************\
5142 * Micronaut
5243 **********************************************************************************************************************/
53- dependencyManagement {
54- imports {
55- mavenBom " io.micronaut:micronaut-bom:$micronautVersion "
44+ micronaut {
45+ runtime(" netty" )
46+ testRuntime(" junit5" )
47+ processing {
48+ incremental(true )
49+ annotations(" org.akhq.*" )
5650 }
5751}
5852
59- configurations {
60- developmentOnly
61- }
62-
63- run. classpath + = configurations. developmentOnly
64- test. classpath + = configurations. developmentOnly
65- run. jvmArgs(' -noverify' ,
66- ' -XX:TieredStopAtLevel=1' ,
67- ' -Dmicronaut.environments=dev' ,
68- ' -Dmicronaut.io.watch.restart=true'
69- )
70-
71- tasks. withType(JavaCompile ){
72- options. encoding = " UTF-8"
73- options. compilerArgs. add(' -parameters' )
74- }
75-
7653/* *********************************************************************************************************************\
7754 * Dependencies
7855 **********************************************************************************************************************/
7956dependencies {
80- // strimzi
81- implementation group : ' io.strimzi' , name : ' kafka-oauth-common' , version : ' 0.7.0'
82- implementation group : ' io.strimzi' , name : ' kafka-oauth-client' , version : ' 0.7.0'
83-
8457 // lombok
8558 annotationProcessor " org.projectlombok:lombok:" + lombokVersion
8659 compileOnly ' org.projectlombok:lombok:' + lombokVersion
@@ -95,7 +68,7 @@ dependencies {
9568 implementation " io.micronaut:micronaut-http-client"
9669 implementation " io.micronaut:micronaut-http-server-netty"
9770 implementation " io.swagger.core.v3:swagger-annotations"
98- runtimeOnly " ch.qos.logback:logback-classic:1.2.3 "
71+ runtimeOnly ' ch.qos.logback:logback-classic:1.3.0-alpha5 '
9972 implementation " io.micronaut.security:micronaut-security-annotations"
10073 implementation " io.micronaut.security:micronaut-security-jwt"
10174 implementation " io.micronaut.security:micronaut-security-ldap"
@@ -108,25 +81,56 @@ dependencies {
10881 implementation group : " org.apache.kafka" , name : " kafka-clients" , version : kafkaVersion
10982 implementation group : " io.confluent" , name : " kafka-schema-registry-client" , version : confluentVersion
11083 implementation group : " io.confluent" , name : " kafka-avro-serializer" , version : confluentVersion
84+ implementation ' org.sourcelab:kafka-connect-client:3.1.1'
85+
86+ // strimzi
87+ implementation group : ' io.strimzi' , name : ' kafka-oauth-common' , version : ' 0.7.2'
88+ implementation group : ' io.strimzi' , name : ' kafka-oauth-client' , version : ' 0.7.2'
11189
11290 // log
11391 implementation group : ' org.slf4j' , name : ' jul-to-slf4j' , version : ' 1.8.+'
11492 implementation group : ' org.slf4j' , name : ' log4j-over-slf4j' , version : ' 1.8.+'
11593
11694 // utils
11795 implementation group : ' org.codehaus.httpcache4j.uribuilder' , name : ' uribuilder' , version : ' 2.0.0'
96+ implementation ' com.google.guava:guava:30.1.1-jre'
97+ implementation ' com.google.code.gson:gson:2.8.6'
98+ implementation ' com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.12.3'
99+
100+ // avro
101+ implementation ' org.apache.avro:avro:1.10.2'
102+
118103
119104 // protobuf
120- implementation group : " com.google.protobuf" , name : " protobuf-java" , version : " 3.13.0 "
121- implementation group : " com.google.protobuf" , name : " protobuf-java-util" , version : " 3.13.0 "
105+ implementation group : " com.google.protobuf" , name : " protobuf-java" , version : " 3.15.8 "
106+ implementation group : " com.google.protobuf" , name : " protobuf-java-util" , version : " 3.15.8 "
122107
123108 // Password hashing
124109 implementation group : " org.mindrot" , name : " jbcrypt" , version : " 0.4"
125110
126- // api
127111
128112 // client
129113 implementation project(" :client" )
114+ }
115+
116+ /* *********************************************************************************************************************\
117+ * Test
118+ **********************************************************************************************************************/
119+ test {
120+ useJUnitPlatform()
121+
122+ testLogging {
123+ exceptionFormat = ' full'
124+ }
125+
126+ retry {
127+ maxRetries = 5
128+ maxFailures = 15
129+ }
130+ }
131+
132+ dependencies {
133+ testImplementation ' ch.qos.logback:logback-classic:1.3.0-alpha5'
130134
131135 // micronaut test
132136 testAnnotationProcessor " org.projectlombok:lombok:" + lombokVersion
@@ -138,9 +142,9 @@ dependencies {
138142 testRuntimeOnly " org.junit.jupiter:junit-jupiter-engine"
139143
140144 // test
141- testImplementation " org.apache.kafka:kafka_2.12 :" + kafkaVersion
142- // force jackson version compatible with kafka
143-
145+ testImplementation " org.apache.kafka:kafka-clients :" + kafkaVersion + " :test "
146+ testImplementation " org.apache.kafka:kafka_ " + kafkaScalaVersion + " : " + kafkaVersion
147+ testImplementation " org.apache.kafka:kafka_ " + kafkaScalaVersion + " : " + kafkaVersion + " :test "
144148 testImplementation " io.confluent:kafka-schema-registry:" + confluentVersion
145149 testImplementation " io.confluent:kafka-schema-registry:" + confluentVersion + " :tests"
146150 testImplementation " org.apache.kafka:connect-runtime:" + kafkaVersion
@@ -152,33 +156,12 @@ dependencies {
152156 testImplementation group : ' commons-codec' , name : ' commons-codec' , version : ' 1.14'
153157 testImplementation ' org.hamcrest:hamcrest:2.2'
154158 testImplementation ' org.hamcrest:hamcrest-library:2.2'
155- implementation ' org.apache.avro:avro:1.10.0'
156- implementation ' org.sourcelab:kafka-connect-client:3.1.0'
157- implementation ' com.google.guava:guava:29.0-jre'
158- implementation ' com.google.code.gson:gson:2.8.6'
159- implementation ' com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.11.2'
160- testImplementation ' org.mockito:mockito-junit-jupiter:3.5.7'
159+ testImplementation ' org.mockito:mockito-junit-jupiter:3.9.0'
161160 testImplementation ' com.salesforce.kafka.test:kafka-junit5:3.2.2'
162- testImplementation ' com.fasterxml.jackson.core:jackson-core:2.11.2'
163- testImplementation ' com.fasterxml.jackson.core:jackson-annotations:2.11.2'
164- testImplementation ' com.fasterxml.jackson.core:jackson-databind:2.11.2'
165- testImplementation ' org.codehaus.jackson:jackson-mapper-lgpl:1.9.13'
166- }
167-
168- /* *********************************************************************************************************************\
169- * Test
170- **********************************************************************************************************************/
171- test {
172- useJUnitPlatform()
173-
174- testLogging {
175- exceptionFormat = ' full'
176- }
177-
178- retry {
179- maxRetries = 5
180- maxFailures = 15
181- }
161+ testImplementation ' com.fasterxml.jackson.core:jackson-core:2.12.3'
162+ testImplementation ' com.fasterxml.jackson.core:jackson-annotations:2.12.3'
163+ testImplementation ' com.fasterxml.jackson.core:jackson-databind:2.12.3'
164+ testImplementation ' org.codehaus.jackson:jackson-mapper-lgpl:1.9.11'
182165}
183166
184167testlogger {
0 commit comments