-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
84 lines (72 loc) · 2.07 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
apply plugin: 'java'
apply plugin: 'com.google.protobuf'
apply plugin: 'idea'
apply plugin: 'application'
apply plugin: 'com.github.johnrengelman.shadow'
group 'com.swirlds.recordsloader'
version '1.0-SNAPSHOT'
//sourceCompatibility = 1.17
//targetCompatibility = 1.17
java.toolchain.languageVersion = JavaLanguageVersion.of(17)
//java {
// toolchain {
// languageVersion JavaLanguageVersion.of(17)
// }
//}
repositories {
maven { url "https://plugins.gradle.org/m2/" }
mavenCentral()
}
buildscript {
repositories {
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.18'
classpath "gradle.plugin.com.github.johnrengelman:shadow:7.1.2"
}
}
application {
mainClass.set('com.swirlds.streamloader.StreamDownloaderMain')
// mainClass.set('com.swirlds.streamloader.input.AddressBookLoader')
}
dependencies {
implementation 'com.google.protobuf:protobuf-java:3.19.4'
implementation 'com.google.cloud:google-cloud-storage:2.10.0'
implementation 'javax.json:javax.json-api:1.1.4'
implementation 'org.glassfish:javax.json:1.1.4'
implementation 'org.apache.kafka:kafka-clients:3.2.0'
implementation 'org.jetbrains:annotations:20.1.0'
implementation 'org.slf4j:slf4j-jdk14:1.7.36'
implementation 'org.eclipse.collections:eclipse-collections:11.1.0'
implementation 'org.junit.jupiter:junit-jupiter:5.8.1'
//
// implementation 'org.apache.pinot:pinot-segment-writer:0.10.0'
// implementation 'org.apache.pinot:pinot-segment-writer-file-based:0.10.0'
// implementation 'org.apache.pinot:pinot-segment-uploader:0.10.0'
// implementation 'org.apache.pinot:pinot-segment-uploader-default:0.10.0'
implementation 'org.apache.avro:avro:1.11.0'
}
sourceSets {
main {
proto {
srcDir 'hedera-protobufs/services'
srcDir 'hedera-protobufs/streams'
}
}
}
shadowJar {
archiveBaseName.set('bigdataLoader')
}
tasks.withType(JavaCompile) {
options.compilerArgs += "--enable-preview"
}
tasks.withType(Test) {
jvmArgs += "--enable-preview"
}
tasks.withType(JavaExec) {
jvmArgs += '--enable-preview'
}
test {
useJUnitPlatform()
}