Gradle does not recognize dependency on IntelliJ IDE

0

My gradient is configured like this:

plugins {
    id 'java'
}

version '1.0-SNAPSHOT'

sourceCompatibility = 1.8

repositories {
    mavenCentral()
}

dependencies {
    testCompile group: 'junit', name: 'junit', version: '4.12'

    compile project (':core')

    compile group: 'org.fusesource', name: 'sigar', version: '1.6.4',
    compile 'com.fasterxml.jackson.core:jackson-core:2.7.1',
    compile 'com.fasterxml.jackson.core:jackson-databind:2.7.1-1',
    testCompile group: 'com.sun.net.httpserver', name: 'http', version: '20070405',
    compile 'org.apache.httpcomponents:httpclient:4.5.5';
}

And it returns an error while updating. I'm starting now, could anyone help me? I'm using IntelliJ

    
asked by anonymous 12.06.2018 / 22:36

1 answer

0

Try to remove the "," and the; at the end of each line. In gradle, you do not need it.

    
12.06.2018 / 22:38