RationalityFrontline / grpc-api

Merged grpc-api and grpc-context into a single jar

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

grpc-api

Maven Central Apache License 2.0

This library is a temporary workaround for the issue "gRPC Java is not usable from Java 9 modules". It solves the split package problem mentioned in the issue by merging grpc-api and grpc-context into a single jar.

Usage

Just add the following code blocks to your build.gradle.kts file. (First exclude your dependency of "grpc-context" and "grpc-api", then add this library as a dependency)

Gradle Kotlin DSL:

repositories {
    mavenCentral()
}

dependencies {
    implementation("org.rationalityfrontline.workaround:grpc-api:1.54.0")
}

configurations.all {
    exclude(group = "io.grpc", module = "grpc-context")
    exclude(group = "io.grpc", module = "grpc-api")
}

Reference

grpc/grpc-java#3522

License

grpc-api is released under the Apache 2.0 license.

Copyright 2020-2023 RationalityFrontline

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

About

Merged grpc-api and grpc-context into a single jar

License:Apache License 2.0


Languages

Language:Kotlin 100.0%