-
Notifications
You must be signed in to change notification settings - Fork 48
Expand file tree
/
Copy pathbuild.gradle
More file actions
124 lines (100 loc) · 4.65 KB
/
build.gradle
File metadata and controls
124 lines (100 loc) · 4.65 KB
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
/*
* Copyright 2021 Aiven Oy
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
plugins {
id 'java-library'
}
archivesBaseName = "core"
ext {
// Keep empty lines between versions to avoid conflicts on mass update (e.g. Dependabot).
bouncyCastleVersion = "1.83"
caffeineVersion = "3.2.3"
zstdVersion = "1.5.7-4"
icebergVersion = "1.10.1"
parquetVersion = "1.15.2"
hadoopVersion = "3.4.1"
}
dependencies {
implementation project(":storage:core")
// These dependencies are load via specific classloader, only check collisions with inner dependencies (e.g. storage)
implementation "org.bouncycastle:bcprov-jdk18on:$bouncyCastleVersion"
implementation "com.fasterxml.jackson.core:jackson-databind:$jacksonVersion"
implementation "com.fasterxml.jackson.datatype:jackson-datatype-jdk8:$jacksonVersion"
implementation "com.github.luben:zstd-jni:$zstdVersion"
implementation("com.github.ben-manes.caffeine:caffeine:$caffeineVersion") {
exclude group: 'org.checkerframework', module: 'checker-qual'
exclude group: 'com.google.errorprone', module: 'error_prone_annotations'
}
implementation "commons-io:commons-io:$apacheCommonsIOVersion"
implementation project(':commons')
implementation "com.bucket4j:bucket4j_jdk11-core:$bucket4jVersion"
testImplementation(testFixtures(project(":storage:core")))
testImplementation(project(":storage:filesystem"))
testImplementation "com.github.luben:zstd-jni:$zstdVersion"
integrationTestImplementation sourceSets.test.output
// ---
// The following dependencies are needed only for the structure providers.
// Keep this in mind when extracting them into a separate project.
implementation("io.confluent:kafka-avro-serializer:8.2.0") {
exclude group: "org.slf4j"
exclude group: 'org.apache.kafka', module: 'kafka-clients'
exclude group: 'com.fasterxml.jackson.core', module: 'jackson-databind'
exclude group: 'com.fasterxml.jackson.core', module: 'jackson-annotations'
exclude group: 'com.fasterxml.jackson.core', module: 'jackson-core'
exclude group: 'com.fasterxml.jackson.core', module: 'jackson-bom'
}
// ---
// ---
// The following dependencies are needed for Iceberg.
// Keep this in mind when extracting them into a separate project.
// Contains the Catalog interface.
implementation "org.apache.iceberg:iceberg-api:$icebergVersion"
// Contains a bunch of catalog implementations.
implementation "org.apache.iceberg:iceberg-core:$icebergVersion"
compileOnly "org.apache.kafka:kafka-storage:$kafkaVersion"
implementation "org.apache.iceberg:iceberg-data:$icebergVersion"
implementation "org.apache.iceberg:iceberg-aws:$icebergVersion"
implementation "org.apache.iceberg:iceberg-parquet:$icebergVersion"
implementation("org.apache.parquet:parquet-column:$parquetVersion") {
exclude group: 'org.slf4j'
}
implementation("org.apache.hadoop:hadoop-common:$hadoopVersion") {
exclude group: 'log4j'
exclude group: 'org.slf4j'
exclude group: 'ch.qos.reload4j'
exclude group: 'org.apache.avro', module: 'avro'
exclude group: 'com.google.guava'
exclude group: 'com.google.protobuf'
exclude group: 'org.apache.curator'
exclude group: 'org.apache.zookeeper'
exclude group: 'org.apache.kerby'
exclude group: 'org.apache.hadoop', module: 'hadoop-auth'
exclude group: 'org.apache.commons', module: 'commons-configuration2'
exclude group: 'org.apache.hadoop.thirdparty', module: 'hadoop-shaded-protobuf_3_7'
exclude group: 'org.eclipse.jetty'
exclude group: "io.netty"
}
implementation("org.apache.hadoop:hadoop-mapreduce-client-core:$hadoopVersion"){
exclude group: 'org.apache.avro'
exclude group: 'org.slf4j'
exclude group: "io.netty"
exclude group: "org.jline"
exclude group: "commons-cli"
exclude group: 'ch.qos.reload4j'
exclude group: "org.apache.hadoop", module: "hdfs-client"
exclude group: "org.eclipse.jetty"
exclude group: "org.eclipse.jetty.websocket"
}
}