rsocket / rsocket-rpc-java

Standard RSocket RPC Java Implementation
http://rsocket.io/
Apache License 2.0
172 stars 41 forks source link

Issue with dependency on selected 0.2.19 #64

Closed d-wojciechowski closed 3 years ago

d-wojciechowski commented 4 years ago

Brief introduction

Hello, I tried to upgrade dependency from 0.2.18 to 0.2.19 but I received an error that this version could not be found. On previous version it worked fine.

I know that issue is not directly connected with code, but I could not find better place to report this issue.

Project config

val protobufVersion = "3.11.4"
val rsocketRpcVersion = "0.2.19"
val rsocketVersion = "1.0.0-RC7"
val coroutinesVersion = "1.3.5"
val fuelVersion = "2.2.2"
val rxJavaVersion = "3.0.3"

plugins {
    id("com.github.ben-manes.versions") version "0.28.0"
    id("org.jetbrains.intellij") version "0.4.21"
    id("com.google.protobuf") version "0.8.12"
    kotlin("jvm") version "1.3.72"
    java
    idea
}

apply(plugin = "org.jetbrains.intellij")

repositories {
    mavenCentral()
    jcenter()
    maven("https://dl.bintray.com/kittinunf/maven")
}

dependencies {
    implementation(kotlin("stdlib-jdk8"))

    implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutinesVersion")
    implementation("com.github.kittinunf.fuel", "fuel", fuelVersion)
    implementation("io.reactivex.rxjava3:rxjava:$rxJavaVersion")

    implementation("io.rsocket:rsocket-core:$rsocketVersion")
    implementation("io.rsocket:rsocket-transport-local:$rsocketVersion")
    implementation("io.rsocket:rsocket-transport-netty:$rsocketVersion")
    implementation("io.rsocket.rpc:rsocket-rpc-core:$rsocketRpcVersion")
    //Do not use implementation here, compile is needed :
    // https://github.com/JetBrains/gradle-intellij-plugin/issues/239
    // https://github.com/JetBrains/gradle-intellij-plugin/issues/456
    compile("com.google.protobuf:protobuf-java:$protobufVersion")
}

Gradle error message

Could not determine the dependencies of task ':prepareSandbox'.
> Could not resolve all files for configuration ':runtimeClasspath'.
   > Could not resolve io.rsocket.rpc:rsocket-rpc-core:0.2.19.
     Required by:
         project :
      > Could not resolve io.rsocket.rpc:rsocket-rpc-core:0.2.19.
         > Could not parse POM https://repo.maven.apache.org/maven2/io/rsocket/rpc/rsocket-rpc-core/0.2.19/rsocket-rpc-core-0.2.19.pom
            > Could not find io.projectreactor:reactor-bom:Dysprosium-M3.
              Searched in the following locations:
                - https://repo.maven.apache.org/maven2/io/projectreactor/reactor-bom/Dysprosium-M3/reactor-bom-Dysprosium-M3.pom
                - https://jcenter.bintray.com/io/projectreactor/reactor-bom/Dysprosium-M3/reactor-bom-Dysprosium-M3.pom
                - https://dl.bintray.com/kittinunf/maven/io/projectreactor/reactor-bom/Dysprosium-M3/reactor-bom-Dysprosium-M3.pom
                - https://cache-redirector.jetbrains.com/www.jetbrains.com/intellij-repository/releases/io/projectreactor/reactor-bom/Dysprosium-M3/reactor-bom-Dysprosium-M3.pom
                - file:/C:/Users/allst/.gradle/caches/modules-2/files-2.1/com.jetbrains.intellij.idea/ideaIC/2020.1/cbeeb1f1aebd4c9ea8fb5ab990c5904a676fc41a/ideaIC-2020.1/io.projectreactor/reactor-bom/Dysprosium-M3/ivy-Dysprosium-M3.xml
                - file:/C:/Users/allst/.gradle/caches/modules-2/files-2.1/com.jetbrains.intellij.idea/ideaIC/2020.1/cbeeb1f1aebd4c9ea8fb5ab990c5904a676fc41a/ideaIC-2020.1/reactor-bom-Dysprosium-M3-withSources-withoutAnnotations.xml
      > Could not resolve io.rsocket.rpc:rsocket-rpc-core:0.2.19.
         > Could not parse POM https://jcenter.bintray.com/io/rsocket/rpc/rsocket-rpc-core/0.2.19/rsocket-rpc-core-0.2.19.pom
            > Could not find io.projectreactor:reactor-bom:Dysprosium-M3.

Possible solution:
 - Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html

Edit 16.05.2020

After adding following repository maven("https://repo.spring.io/libs-milestone")

The error was changed to :

Execution failed for task ':generateProto'.
> Could not resolve all files for configuration ':protobufToolsLocator_rsocketRpc'.
   > Could not find rsocket-rpc-protobuf-0.2.19-windows-x86_64.exe (io.rsocket.rpc:rsocket-rpc-protobuf:0.2.19).
     Searched in the following locations:
         https://repo.maven.apache.org/maven2/io/rsocket/rpc/rsocket-rpc-protobuf/0.2.19/rsocket-rpc-protobuf-0.2.19-windows-x86_64.exe

Possible solution:
 - Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html

And indeed in specified location, only artifacts for Linux are available. Windows is missing.