-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
86 lines (72 loc) · 2.02 KB
/
build.gradle
File metadata and controls
86 lines (72 loc) · 2.02 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
plugins {
id 'java'
id 'com.google.protobuf' version '0.8.18'
id 'application' // For building and running applications
}
group 'com.clustercrew'
version '1.0-SNAPSHOT'
repositories {
mavenCentral()
}
dependencies {
// Core gRPC dependencies
implementation 'io.grpc:grpc-netty:1.68.1'
implementation 'io.grpc:grpc-protobuf:1.68.1'
implementation 'io.grpc:grpc-stub:1.68.1'
// Protocol Buffers dependencies
implementation 'com.google.protobuf:protobuf-java:3.21.12'
// Apache ZooKeeper for metadata and state storage
implementation 'org.apache.zookeeper:zookeeper:3.8.0'
// Apache BookKeeper for segmented write-ahead logging
implementation('org.apache.bookkeeper:bookkeeper-server:4.17.1') {
// exclude group: 'org.apache.bookkeeper', module: 'bookkeeper-common'
// exclude group: 'org.apache.bookkeeper', module: 'bookkeeper-stats'
}
implementation 'javax.annotation:javax.annotation-api:1.3.2'
// JUnit for testing
testImplementation 'junit:junit:4.13.2'
}
protobuf {
protoc {
// Specify the protoc binary that comes with grpc-java
artifact = "com.google.protobuf:protoc:3.21.12"
}
plugins {
grpc {
artifact = "io.grpc:protoc-gen-grpc-java:1.68.1"
}
}
generateProtoTasks {
all()*.plugins {
grpc {}
}
}
}
sourceSets {
main {
java {
srcDirs += 'build/generated/source/proto/main/java'
srcDirs += 'build/generated/source/proto/main/grpc'
}
}
test {
java {
srcDirs += 'build/generated/source/proto/main/java'
srcDirs += 'build/generated/source/proto/main/grpc'
}
}
}
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
tasks.test {
useJUnit()
}
application {
// Main class to run
mainClass = 'com.clustercrew.messagequeue.MessageQueueCluster'
}