【问题标题】:Unable to fetch gradle dependency net.devh:grpc-server-spring-boot-starter无法获取 gradle 依赖 net.devh:grpc-server-spring-boot-starter
【发布时间】:2021-09-08 12:20:52
【问题描述】:

我正在使用 grpc springboot。我可以下载除 'net.devh:grpc-server-spring-boot-starter:2.12.0.RELEASE' 之外的所有依赖项。

由于我不能使用注解@GrpcService

dependencies {
    testImplementation 'org.junit.jupiter:junit-jupiter-api:5.7.0'
    testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.7.0'
    implementation 'javax.annotation:javax.annotation-api:1.3.2'
    implementation 'io.grpc:grpc-netty-shaded:1.37.0'
    implementation 'io.grpc:grpc-protobuf:1.37.0'
    implementation 'io.grpc:grpc-stub:1.37.0'
    implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.0'
    implementation group: 'commons-io', name: 'commons-io', version: '2.6'
    implementation 'org.springframework.boot:spring-boot-starter:2.4.5'
    implementation 'net.devh:grpc-server-spring-boot-starter:2.12.0.RELEASE'
    compileOnly 'jakarta.annotation:jakarta.annotation-api:1.3.5'

}

非常感谢任何帮助

【问题讨论】:

  • 在您的构建中配置了哪些存储库?

标签: spring-boot grpc-java


【解决方案1】:

只需尝试安装依赖项并重新导入它们。 如果它不起作用,请关闭 IDE 并重新打开它。

【讨论】:

    猜你喜欢
    • 2021-12-14
    • 2021-04-29
    • 2019-01-27
    • 1970-01-01
    • 2016-06-21
    • 2017-06-17
    • 2018-10-03
    • 1970-01-01
    • 2018-03-01
    相关资源
    最近更新 更多