Open diddiman opened 2 years ago
For the grpck
artifact, try:
artifact = "io.grpc:protoc-gen-grpc-kotlin:1.2.1:jdk7@jar"
Tried it now, seems to give the same error
Odd. Can you try the examples and see if it works (ie ./gradlew :stub:build
):
https://github.com/grpc/grpc-kotlin/tree/master/examples
That seems to work better:
PS C:\dev\grpc-kotlin\examples> ./gradlew :stub:build
Starting a Gradle Daemon, 1 incompatible and 1 stopped Daemons could not be reused, use --status for details
BUILD SUCCESSFUL in 24s
17 actionable tasks: 7 executed, 10 up-to-date
Cool. How about from within Android Studio / IntelliJ?
Do you mean that i should open a terminal in Android Studio and run in there? if yes
C:\dev\grpc-kotlin\examples>gradlew :stub:build
BUILD SUCCESSFUL in 2s
17 actionable tasks: 17 up-to-date
Your original message made it seem like you were running the build from Android Studio (a menu). Can you run the build in the same way on the examples?
That seems to work, hmmm
Ok, so something different between the gradle setups. But it is hard to tell because of the differences between the groovy & kotlin build DSLs.
I'm starting to copy the stuff from the example-setup that seems necessary. Let's see where i end up
@diddiman
It may just be a typo, but isn't it grpck
instead of grpckt
?
↓ The following is an excerpt from the sample you provided.
plugins {
grpc {
artifact = "io.grpc:protoc-gen-grpc-java:1.44.0"
}
grpck {
artifact = "io.grpc:protoc-gen-grpc-kotlin:1.2.1"
}
}
@jamesward I am unable to get this working.
Is it not possible to get a simpler setup for Gradle?
@JavierSegoviaCordoba Here is a more basic project that might help you get things going: https://github.com/GoogleCloudPlatform/kotlin-samples/tree/main/run/grpc-hello-world-gradle
It also uses latest versions which changes some syntax in the build.
Hi all
I am trying to generate some code from my protos, currently my build.gradle look like this
I am running on windows 10, 64 bit. By no means i am any expert on this so i might be doing hundred of thing wrong. But when trying to
rebuild project
i getDoes anyone have any idea what's wrong? Is there a bug or am i just doing everything wrong?