Skip to content

Commit

Permalink
Modify name of the archive to all for the protoc generator. This play…
Browse files Browse the repository at this point in the history
…s better with the google protobuf plugin
  • Loading branch information
slinkydeveloper committed Nov 14, 2023
1 parent 7a226b3 commit 8b17ffb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions examples/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ configure<com.diffplug.gradle.spotless.SpotlessExtension> {

val pluginJar =
file(
"${project.rootProject.rootDir}/protoc-gen-restate-java-blocking/build/libs/protoc-gen-restate-java-blocking-${project.version}.jar")
"${project.rootProject.rootDir}/protoc-gen-restate-java-blocking/build/libs/protoc-gen-restate-java-blocking-${project.version}-all.jar")

protobuf {
plugins {
Expand All @@ -63,7 +63,7 @@ protobuf {
}
id("restate") {
// NOTE: This is not needed in a regular project configuration, you should rather use:
// artifact = "dev.restate.sdk:protoc-gen-restate-java-blocking:1.0-SNAPSHOT@jar"
// artifact = "dev.restate.sdk:protoc-gen-restate-java-blocking:1.0-SNAPSHOT:all@jar"
path = pluginJar.path
}
}
Expand Down
2 changes: 1 addition & 1 deletion protoc-gen-restate-java-blocking/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ application { mainClass.set("dev.restate.sdk.blocking.gen.JavaBlockingGen") }

tasks.named<ShadowJar>("shadowJar") {
// Override the default jar
archiveClassifier.set("")
archiveClassifier.set("all")
}

publishing {
Expand Down
4 changes: 2 additions & 2 deletions sdk-java-blocking/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@ dependencies {

val pluginJar =
file(
"${project.rootProject.rootDir}/protoc-gen-restate-java-blocking/build/libs/protoc-gen-restate-java-blocking-${project.version}.jar")
"${project.rootProject.rootDir}/protoc-gen-restate-java-blocking/build/libs/protoc-gen-restate-java-blocking-${project.version}-all.jar")

protobuf {
plugins {
id("grpc") { artifact = "io.grpc:protoc-gen-grpc-java:${coreLibs.versions.grpc.get()}" }
id("restate") {
// NOTE: This is not needed in a regular project configuration, you should rather use:
// artifact = "dev.restate.sdk:protoc-gen-restate-java-blocking:1.0-SNAPSHOT@jar"
// artifact = "dev.restate.sdk:protoc-gen-restate-java-blocking:1.0-SNAPSHOT:all@jar"
path = pluginJar.path
}
}
Expand Down

0 comments on commit 8b17ffb

Please sign in to comment.