-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
50 lines (44 loc) · 1.4 KB
/
build.gradle.kts
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
import org.gradle.launcher.daemon.protocol.Build
plugins {
`java-library`
}
repositories {
mavenCentral()
}
dependencies {
api("org.apache.parquet:parquet-column:1.14.1")
api("org.apache.parquet:parquet-hadoop:1.14.1")
api("org.apache.parquet:parquet-arrow:1.14.1")
api("org.apache.arrow:arrow-vector:17.0.0")
api("org.apache.arrow:arrow-memory-netty:17.0.0")
implementation(libs.guava)
testImplementation(libs.junit.jupiter)
testImplementation(libs.hadoop.client)
testImplementation(libs.hadoop.common) {
exclude(group = "org.slf4j", module = "slf4j-api")
exclude(group = "org.slf4j", module = "slf4j-log4j12")
exclude(group = "org.slf4j", module = "slf4j-reload4j")
exclude(group = "ch.qos.logback", module = "logback-core")
exclude(group = "ch.qos.logback", module = "logback-classic")
}
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
}
}
tasks.compileTestJava {
doFirst {
val initResult = exec {
commandLine("git", "submodule", "update", "--init")
}
if (initResult.exitValue != 0) {
throw GradleException("Failed to initialize git submodules")
}
}
}
tasks.named<Test>("test") {
useJUnitPlatform()
jvmArgs("--add-opens", "java.base/java.nio=ALL-UNNAMED")
}