starting - new - been struggling with maven and was killing me - so i tried gradle.
i have installed gradle 1.5, i have STS eclipse build and installed the gradle eclipse plugin
i created a new gradle project in new workspace - however this errors as it cant find the junit 4.11 jar.
I have checked in the repository and its downloaded it. and it seems happy with the commons-logging. but the gradle generated project cant see the junit jar
in eclipse its added GroovyDSL support, Groovy librraies, JRE system libraries, grdale dlsd support. non on these contains the doanloaded junit jar
how do i get it to see that jar in the build path ?? So nearly there and i so want this to work. how do i add the dependant jar build into the class build ?
build.grdale looks like this - i chnaged the junit 4.+ to 4.11 but thats it
apply plugin: ‘java’ apply plugin: ‘eclipse’
sourceCompatibility = 1.7 version = ‘1.0’ jar {
manifest {
attributes ‘Implementation-Title’: ‘Gradle Quickstart’, ‘Implementation-Version’: version
} }
repositories {
mavenCentral() }
dependencies {
compile group: ‘commons-collections’, name: ‘commons-collections’, version: ‘3.2’
testCompile group: ‘junit’, name: ‘junit’, version: ‘4.11’ }
test {
systemProperties ‘property’: ‘value’ }
uploadArchives {
repositories {
flatDir {
dirs ‘repos’
}
} }