Aim : To create sample gradle project and build it thru eclipse( using buildship plugin)
Step followed : Created new gradle project.
It has LibraryTest.java created already which is not compilable.
Tried building project using command prompt, which has no issues.
But gives below error when tried thru eclipse.
Please help.
FAILURE: Build failed with an exception.
**** What went wrong:***
Task ‘gradle’ not found in root project ‘SampleGradle’.
build.gradle
apply plugin: ‘java’
repositories {
maven {
credentials {
username “"
password "”
}
url “https://repo.mycompany.com”
}
}
dependencies {
compile ‘org.slf4j:slf4j-api:1.5.6’
testCompile 'junit:junit:4.12'
}
task showMeCache << {
configurations.compile.each { println it }
}
(New to gradle)