Die Ausführung der Aufgabe „:compileJava“ ist fehlgeschlagen. GradleJava

Java-Forum
Guest
 Die Ausführung der Aufgabe „:compileJava“ ist fehlgeschlagen. Gradle

Post by Guest »

Ich versuche, mein erstes Gradle-Projekt in Eclipse einzurichten, habe aber Probleme beim Erstellen von Gradle. Ich habe build.gradle von spring.io kopiert, aber es wird immer noch nicht richtig erstellt. Ich erhalte die Fehlermeldung „Ausführung für Aufgabe „:compileJava“ fehlgeschlagen“. Meine build.gradle-Datei sieht so aus

Code: Select all

 buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:1.5.1.RELEASE")
}
}

apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'org.springframework.boot'

jar {
baseName = 'gs-spring-boot'
version =  '0.1.0'
}

repositories {
mavenCentral()
}

sourceCompatibility = 1.8
targetCompatibility = 1.8

dependencies {
// tag::jetty[]
compile("org.springframework.boot:spring-boot-starter-web") {
exclude module: "spring-boot-starter-tomcat"
}
compile("org.springframework.boot:spring-boot-starter-jetty")
// end::jetty[]
// tag::actuator[]
compile("org.springframework.boot:spring-boot-starter-actuator")
// end::actuator[]
testCompile("junit:junit")
}

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post