Skip to content

Commit

Permalink
Proto
Browse files Browse the repository at this point in the history
  • Loading branch information
LINCKODE committed Sep 13, 2024
1 parent fbce0db commit 61b5257
Show file tree
Hide file tree
Showing 115 changed files with 488 additions and 44,550 deletions.
34 changes: 31 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
plugins {
id 'java'
id 'maven-publish'
id 'com.google.protobuf' version '0.9.4'
}

group = 'org.qubic.archiver'
Expand All @@ -10,6 +11,8 @@ repositories {
mavenCentral()
}



publishing {
publications {
maven(MavenPublication) {
Expand All @@ -29,16 +32,41 @@ publishing {
}
}

def grpcVersion = '1.66.0' // CURRENT_GRPC_VERSION
def protobufVersion = '3.25.3'
def protocVersion = protobufVersion

dependencies {
implementation 'com.google.protobuf:protobuf-java:3.15.8'
implementation 'com.google.protobuf:protobuf-java-util:3.15.8'
implementation 'com.google.api.grpc:proto-google-common-protos:2.44.0'
implementation "io.grpc:grpc-protobuf:${grpcVersion}"
implementation "io.grpc:grpc-services:${grpcVersion}"
implementation "io.grpc:grpc-stub:${grpcVersion}"
compileOnly "org.apache.tomcat:annotations-api:6.0.53"
implementation "com.google.protobuf:protobuf-java-util:${protobufVersion}"


testImplementation platform('org.junit:junit-bom:5.10.0')
testImplementation 'org.junit.jupiter:junit-jupiter'
}

protobuf {
protoc { artifact = "com.google.protobuf:protoc:${protocVersion}" }
plugins {
grpc { artifact = "io.grpc:protoc-gen-grpc-java:${grpcVersion}" }
}
generateProtoTasks {
all()*.plugins { grpc {} }
}
}

sourceSets {
main {
java {
srcDirs 'build/generated/source/proto/main/grpc'
srcDirs 'build/generated/source/proto/main/java'
}
}
}

test {
useJUnitPlatform()
}
Loading

0 comments on commit 61b5257

Please sign in to comment.