Using an unmodifed jersey starter app (https://github.com/jasonray/jersey-starterkit), I am unable to get junit downloaded using any of the suggestions found elsewhere, including using
sourceSets.main.java.srcDirs = ["src"]
sourceSets.test.java.srcDirs = ["tst"]
in build.gradle.
The project builds successfully using ./gradlew build, but ./gradlew dependencies (and eclipse) show FAILED for junit:junit-dep:4.10
Any ideas?
The default build.gradle:
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'war'
repositories {
mavenCentral()
}
dependencies {
compile "javax.ws.rs:jsr311-api:1.1.1"
compile 'com.sun.jersey:jersey-server:1.16'
compile 'com.sun.jersey:jersey-core:1.16'
compile 'com.sun.jersey:jersey-client:1.16'
compile 'com.sun.jersey:jersey-servlet:1.16'
compile 'com.sun.jersey:jersey-json:1.16'
compile 'com.yammer.metrics:metrics-core:2.2.0'
compile 'com.yammer.metrics:metrics-servlet:2.2.0'
compile 'com.yammer.metrics:metrics-jersey:2.2.0'
compile 'com.yammer.metrics:metrics-graphite:2.2.0'
compile 'log4j:log4j:1.2.16'
testCompile "junit:junit-dep:4.10"
}
task wrapper(type: Wrapper) {
gradleVersion = '1.11'
}