Skip to content

[DRAFT] To Move away from grpc to ktor since grpc has issues with the android gradle plugin. #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/kotlinc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

121 changes: 69 additions & 52 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

50 changes: 1 addition & 49 deletions androidplugin/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
plugins {
`kotlin-dsl`
kotlin("jvm") version "1.9.23"
kotlin("jvm") version "2.0.0"
id("java-gradle-plugin")
id("maven-publish")
id("com.google.protobuf") version "0.9.0"
}

group = "dev.oianmol"
Expand All @@ -21,14 +20,6 @@ publishing {
}
}

object Versions {
const val GRPC = "1.57.2"
const val GRPC_KOTLIN = "1.3.1"
const val PROTOBUF = "3.24.2"
const val COROUTINES = "1.7.3"
}


repositories {
google()
gradlePluginPortal()
Expand All @@ -41,51 +32,12 @@ repositories {

dependencies {
compileOnly("com.android.tools.build:gradle:3.6.1")

compileOnly("org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.23")
protobuf(project(":protos"))
compileOnly("org.apache.tomcat:annotations-api:6.0.53")
implementation("io.grpc:grpc-netty:1.57.2")
implementation("io.grpc:grpc-stub:1.57.2")
implementation("io.grpc:grpc-protobuf-lite:1.57.2")
implementation("com.google.protobuf:protobuf-java-util:3.24.3")
implementation("com.google.protobuf:protobuf-kotlin:3.24.3")
implementation("io.grpc:grpc-kotlin-stub:1.3.1")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.3")
implementation("com.fasterxml.jackson.dataformat:jackson-dataformat-xml:2.12.7")
}

protobuf {
protoc {
artifact = "com.google.protobuf:protoc:3.24.3"
}
plugins {
create("grpc") {
artifact = "io.grpc:protoc-gen-grpc-java:1.57.2"
}
create("grpckt") {
artifact = "io.grpc:protoc-gen-grpc-kotlin:1.3.1:jdk8@jar"
}
}
generateProtoTasks {
all().forEach {
it.builtins {
named("java") {
option("lite")
}
}
it.plugins {
create("grpc"){
option("lite")
}
create("grpckt")
}
}
}
}



gradlePlugin {
plugins {
register("androidDeviceFarm") {
Expand Down
Loading