Issues with compileJava


(zackzulg) #1

Hi guys,
I’m beginner with gradle and I want to create my first app using gradle and java. But when I run gradle in command line ( I write gradle myTask), My command line show this error : Execution failed for task ‘:compileJava’. I tried to add JDK to my System variables and add compile files("${System.properties[‘java.home’]}/…/lib/tools.jar") to my gradle.build file but the problem stills the same.
Here is my gradle.build :

apply plugin: 'java’
apply plugin: 'eclipse’
repositories {
//jcenter()
mavenCentral()
mavenLocal()
maven {
url ‘http://maven.oschina.net/content/groups/public/
}
}
task hello(type: Test)
dependencies {
compile "io.vertx:vertx-core:3.2.1"
compile "io.vertx:vertx-unit:3.2.1"
compile "io.vertx:vertx-web:3.2.1"
compile "io.vertx:vertx-rx-java:3.2.1"
compile “org.slf4j:slf4j-api:1.7.13”
}

Any idea ?
regards.