johnluetke / WeatherAPI

Abstracts online weather services into a simple API
Apache License 2.0
14 stars 4 forks source link

Issue using WeatherAPI from Gradle #15

Closed alexanderdean closed 10 years ago

alexanderdean commented 10 years ago

WeatherAPI in turn depends on org.reflections, which has a Maven profile-based dependency on javassist. Gradle does not support resolving placeholders in published POMs, so you get errors like:

FAILURE: Build failed with an exception.

* What went wrong:
Could not resolve all dependencies for configuration ':compile'.
> Could not resolve org.javassist:javassist:${javassist.version}.
Required by:
  :weatherenrich:0.1.0 > net.johnluetke.WeatherAPI:WeatherAPI:0.9.4 > org.reflections:reflections:0.9.9-RC2
 > Illegal character in path at index 55: http://repo1.maven.org/maven2/org/javassist/javassist /${javassist.version}/javassist-${javassist.version}.pom
alexanderdean commented 10 years ago

I figured out a workaround, here: http://stackoverflow.com/a/24712718/255627