Ошибка при попытке создать проект Gradle в Intellij Idea - PullRequest
0 голосов
/ 05 мая 2020

Я пытаюсь пройти sh a Java Spring курс на Coursera и скачал проект с этим файлом gradle.

buildscript {
    ext {
        springBootVersion = '2.1.0.RELEASE'
    }
    repositories {
        maven { url "https://repo.spring.io/libs-snapshot" }
        mavenLocal()
    }
    dependencies {
        classpath("org.springframework.boot:spring-boot-gradle-plugin:1.0.2.RELEASE")
    }
}

apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'spring-boot'
apply plugin: 'war'

sourceCompatibility = 1.8
targetCompatibility = 1.8

war {
    baseName = 'gs-convert-jar-to-war'
    version =  '0.1.0'
}

repositories {
    mavenCentral()
    maven { url "https://repo.spring.io/libs-snapshot" }
    maven { url "http://maven.springframework.org/milestone" }

    flatDir {
        dirs 'lib'
    }
}

dependencies {

    compile("org.springframework.boot:spring-boot-starter-web")
    compile("org.springframework.boot:spring-boot-starter-actuator")
    compile("org.springframework.boot:spring-boot-starter-aop")
    compile("org.springframework.boot:spring-boot-starter-test")
    compile("org.springframework.boot:spring-boot-starter-jetty")
    compile("org.springframework.boot:spring-boot-starter-data-jpa")
    compile("org.springframework.data:spring-data-rest-webmvc")


    compile("org.apache.httpcomponents:httpclient:4.5.6")


    compile("org.hsqldb:hsqldb")

    compile("com.google.guava:guava:17.0")
    compile("org.apache.commons:commons-lang3:3.3.2")
    compile("com.squareup.retrofit:retrofit:1.6.0")
    compile("commons-io:commons-io:2.4")

    compile("com.github.davidmarquis:fluent-interface-proxy:1.3.0")
    compile(":mobilecloud.handin:1.0.0")
    compile(":video.up.test:1.0.0")
    compile(":autograder.handin:1.0.0")
    compile(":autograder.spec:1.0.0")

    testCompile("junit:junit")
}

К сожалению, у меня есть эта ошибка в IntelliJ Idea:

A problem occurred configuring root project 'mobile-cloud-asgn1'.
> Failed to notify project evaluation listener.
   > org.gradle.api.tasks.SourceSetOutput.getClassesDir()Ljava/io/File;

Я новичок ie в Java и Gradle и никогда не сталкивался с такими ошибками, поэтому Понятия не имею, как это исправить. Может кто-нибудь помочь мне? Репозиторий PS с шаблоном проекта: https://github.com/juleswhite/mobile-cloud-asgn1

...