forked from deephaven/deephaven-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
60 lines (55 loc) · 2.18 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
import nl.javadude.gradle.plugins.license.License
plugins {
id 'java-library'
id 'io.deephaven.project.register'
}
sourceSets {
main {
java {
srcDir 'java'
}
}
}
tasks.withType(License) {
enabled = false
}
dependencies {
api('org.apache.parquet:parquet-hadoop:1.12.3')
api('org.apache.hadoop:hadoop-common:3.3.3') {
// do not take any dependencies of this project,
// we just want a few classes (Configuration, Path) for
// simplified prototyping work, and api compatibility.
transitive = false
// if we actually need any more of hadoop at runtime,
// we can add more jars w/ transitive=false,
// or replace transitive=false here w/ more exclusions;
// (we want to avoid pulling in netty, loggers, jetty-util, guice and asm).
}
/* A dependency to woodstox is triggered from the
* initialization of ParquetReader the first time
* we try to open a parquet file. Without this below,
* we get:
*
* java.lang.NoClassDefFoundError: com/ctc/wstx/io/InputBootstrapper
* at io.deephaven.parquet.ParquetFileReader.lambda$new$0(ParquetFileReader.java:44)
* at java.lang.ThreadLocal$SuppliedThreadLocal.initialValue(ThreadLocal.java:284)
* at java.lang.ThreadLocal.setInitialValue(ThreadLocal.java:180)
* at java.lang.ThreadLocal.get(ThreadLocal.java:170)
* at io.deephaven.parquet.ColumnChunkReaderImpl.lambda$new$0(ColumnChunkReaderImpl.java:49)
* [...]
*
* Similarly for hadoop-shaded-guava.
*
* lz4-pure-java - note that we can't _easily_ use aircompressor here, as the service loader sees
* the copy in hadoop-common. TODO use config instead of service loader
*/
runtimeOnly('com.fasterxml.woodstox:woodstox-core:5.2.1') {
because 'hadoop-common required dependency for Configuration'
}
runtimeOnly('org.apache.hadoop.thirdparty:hadoop-shaded-guava:1.1.1') {
because 'hadoop-common required dependency for Configuration'
}
runtimeOnly('commons-collections:commons-collections:3.2.2') {
because 'hadoop-common required dependency for Configuration'
}
}