https://kotlinlang.org logo
Title
g

Gus

01/07/2021, 2:51 PM
Hey folks. I'm trying to upgrade a dependency defined as
api 'tech.relaycorp:relaynet:[1.40.0,2.0.0)'
, and I want to require
1.41.0
at a minimum. However, I keep getting the following error:
Execution failed for task ':compileKotlin'.
> Could not resolve all files for configuration ':compileClasspath'.
   > Could not find any version that matches tech.relaycorp:relaynet:[1.41.0,2.0.0).
     Versions that do not match:
       - 1.40.0
       - 1.39.1
       - 1.39.0
       - 1.38.4
       - 1.38.3
       - + 76 more
     Searched in the following locations:
       - <https://jcenter.bintray.com/tech/relaycorp/relaynet/maven-metadata.xml>
However, if you download that
maven-metadata.xml
file you'll find version
1.41.0
. I get that on CI (https://github.com/relaycorp/relaynet-jvm-testing/pull/21/files) and my local computer. If I use
api 'tech.relaycorp:relaynet:1.41.0
,
gradle build
works, but I can't use a fixed version here. Any thoughts on how to fix this?
Note that I've been using version ranges for a while and it works with the previous stable release (1.40.0)
v

Vampire

01/07/2021, 2:57 PM
The topic change was unrelated to your question, I wanted to make this anyway. But yeah coincidentally matches well your case. 😄
g

Gus

01/07/2021, 2:58 PM
Haha, no worries 😄 👍