-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
85 lines (75 loc) · 2.69 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
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
/*
* This file was generated by the Gradle 'init' task.
*
* This generated file contains a sample Java application project to get you started.
* For more details take a look at the 'Building Java & JVM projects' chapter in the Gradle
* User Manual available at https://docs.gradle.org/7.5.1/userguide/building_java_projects.html
*/
plugins {
application
id("java")
id("com.github.johnrengelman.shadow") version "7.1.2"
}
allprojects {
group = "com.spatialx.geolake.benchmark"
version = "1.0-SNAPSHOT"
repositories {
maven {url = uri("https://maven.geotoolkit.org/")}
mavenCentral()
maven {url = uri("https://repo.osgeo.org/repository/release/")}
}
}
dependencies {
testImplementation(project(mapOf("path" to ":")))
implementation(fileTree("libs") { include("*.jar") })
runtimeOnly("com.google.guava:guava:31.1-jre")
runtimeOnly("com.github.ben-manes.caffeine:caffeine:2.9.3")
runtimeOnly("org.apache.parquet:parquet-hadoop:1.12.3")
runtimeOnly("org.apache.parquet:parquet-avro:1.12.3") {
exclude("it.unimi.dsi")
exclude("org.codehaus.jackson")
}
runtimeOnly("org.apache.avro:avro:1.11.1")
implementation("org.apache.arrow:arrow-vector:10.0.1") {
exclude("com.google.code.findbugs", "jsr305")
exclude("io.netty", "netty-common")
exclude("io.netty", "netty-buffer")
}
runtimeOnly("org.apache.arrow:arrow-memory-netty:10.0.1") {
exclude("com.google.code.findbugs", "jsr305")
exclude("io.netty", "netty-common")
exclude("io.netty", "netty-buffer")
}
runtimeOnly("io.netty:netty-buffer:4.1.68.Final")
implementation("org.apache.parquet:parquet-column:1.12.3")
implementation("org.apache.hadoop:hadoop-common:2.10.2")
implementation("org.apache.hadoop:hadoop-mapreduce-client-core:2.10.2")
implementation("org.locationtech.jts.io:jts-io-common:1.19.0")
implementation("org.geotools:gt-geojson:23.3")
testImplementation("org.junit.jupiter:junit-jupiter:5.8.2")
}
tasks.named<Test>("test") {
useJUnitPlatform()
}
tasks{
jar {
manifest.attributes["Main-Class"] = "com.spatialx.geolake.benchmark.ParquetBenchmark"
manifest.attributes["Class-Path"] = configurations
.runtimeClasspath
.get()
.joinToString(separator = " ") { file ->
"libs/${file.name}"
}
}
shadowJar {
relocate("com.google.common", "org.apache.iceberg.relocated.com.google.common")
}
}
tasks.processResources {
filesMatching("**/*.geojson") {
exclude()
}
}
application {
mainClassName = "com.spatialx.geolake.benchmark.ParquetBenchmark"
}