Hello everyone) I’am just newbie to Gradle, and I’ve faced a problem when adding dependencies to my java project. I need to add WEKA and Guava libraries to my project. Both are available in the Maven Central Repository. Here is my gradle script code (the content of build.gradle)
apply plugin: 'java'
apply plugin: 'eclipse'
repositories {
mavenCentral()
}
dependencies {
runtime group: 'com.google.guava', name: 'guava', version: '17.0'
runtime group: 'nz.ac.waikato.cms.weka', name: 'weka-stable', version: '3.6.6'
}
When I’am running
gradle build
from CMD, I’am getting a lot of error messages, inferring that neither of those libraries were added to project. Surely the build fails. I don’t know what to do. Thanks in advance)