-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
67 lines (56 loc) · 1.7 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
plugins {
id 'idea'
id 'java'
id 'com.commercehub.gradle.plugin.avro' version '0.19.1'
id 'com.github.imflog.kafka-schema-registry-gradle-plugin' version '0.8.0'
}
group 'com.frit.keycloak.kafka'
version '1.1-SNAPSHOT'
ext {
set('KeycloakVersion', "9.0.3")
set('KafkaClient', "2.5.0")
set('AvroVersion', '1.9.2')
set("ConfluentVersion", '5.4.1')
}
repositories {
mavenLocal()
mavenCentral()
maven {
url 'https://packages.confluent.io/maven/'
}
}
dependencies {
compileOnly ("org.keycloak:keycloak-core:${KeycloakVersion}")
compileOnly ("org.keycloak:keycloak-server-spi:${KeycloakVersion}")
compileOnly ("org.keycloak:keycloak-server-spi-private:${KeycloakVersion}")
implementation ("org.apache.kafka:kafka-clients:${KafkaClient}")
implementation ("io.confluent:kafka-avro-serializer:${ConfluentVersion}")
implementation ("org.apache.avro:avro:${AvroVersion}")
testCompile group: 'junit', name: 'junit', version: '4.12'
}
idea {
module {
downloadJavadoc = true
downloadSources = true
}
}
avro {
createOptionalGetters = true
fieldVisibility = "PRIVATE"
}
task uberJar(type: Jar) {
group = 'build'
archiveClassifier = 'uber'
from sourceSets.main.output
dependsOn configurations.runtimeClasspath
from {
configurations.runtimeClasspath.findAll {it.name.endsWith('jar')}.collect{zipTree(it)}
}
}
schemaRegistry {
url = 'http://localhost:8081'
register {
subject('KeycloakEvent', "src/main/avro/KeycloakEvent.avsc")
subject('KeycloakAdminEvent', "src/main/avro/KeycloakAdminEvent.avsc")
}
}