Skip to content

Commit

Permalink
Add Gradle build for new sample
Browse files Browse the repository at this point in the history
  • Loading branch information
dsyer committed Jan 17, 2025
1 parent 4dd2158 commit 24b9e42
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion samples/grpc-reactive/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ java {
}

repositories {
mavenLocal()
mavenCentral()
maven { url 'https://repo.spring.io/milestone' }
maven { url 'https://repo.spring.io/snapshot' }
mavenLocal()
}

dependencyManagement {
Expand All @@ -31,6 +31,9 @@ dependencyManagement {
dependencies {
implementation 'org.springframework.grpc:spring-grpc-spring-boot-starter'
implementation 'io.grpc:grpc-services'
compileOnly 'javax.annotation:javax.annotation-api:1.3.2'
implementation 'io.projectreactor:reactor-core'
implementation 'com.salesforce.servicelibs:reactor-grpc-stub:1.2.4'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'org.springframework.grpc:spring-grpc-test'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
Expand All @@ -49,13 +52,17 @@ protobuf {
grpc {
artifact = "io.grpc:protoc-gen-grpc-java:${dependencyManagement.importedProperties['grpc.version']}"
}
reactor {
artifact = "com.salesforce.servicelibs:reactor-grpc:1.2.4"
}
}
generateProtoTasks {
all()*.plugins {
grpc {
option 'jakarta_omit'
option '@generated=omit'
}
reactor {}
}
}
}

0 comments on commit 24b9e42

Please sign in to comment.