Using multiple maven repositories seems to be broken. To reproduce my problem I've created a very simple java-project with just a single HelloWorld.java.
The build.gradle looks like this:
apply plugin: 'java'
compile group: 'javax.jms', name: 'jms', version: '1.1'
The call to gradle assemble fails:
Dieters-MacBook-Pro:gradle_test rehdie$ gradle
FAILURE: Build failed with an exception.
* What went wrong:
Could not resolve all dependencies for configuration ':compile'.
> Artifact 'javax.jms:jms:1.1@jar' not found.
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
If I remove the first repository (which does not contain the requested jar-file) from the build.gradle, the build succeeds!
IMHO this is a bug or did I miss something? Any help would be appreciated.
Mac OSX 10.7.4 (Lion) Java 1.6.0_31 Gradle Version: 1.0-rc-3