Quantcast
Channel: Gradle Forums - Latest posts
Viewing all articles
Browse latest Browse all 19854

Could not set unknown property 'dependencyCacheDir' for task ':webapp:generateMetamodel' of type org.gradle.api.tasks.compile.JavaCompile

$
0
0

Hello, I am trying to run project that I am going to take part in and I am now stucked with this alert:

Could not set unknown property ‘dependencyCacheDir’ for task ‘:webapp:generateMetamodel’ of type org.gradle.api.tasks.compile.JavaCompile.

It shows on line with this code
/**
* Task to generate JPA Metamodel.
*/
task generateMetamodel(type: JavaCompile) {
dependsOn createBuildInfoFile

    doFirst {
        println 'Generate JPA MetaModel...'
    }

    source = sourceSets.main.java
    classpath = configurations.compile + configurations.jpamodelgen
    options.compilerArgs = [
            "-proc:only"
    ]
    destinationDir = sourceSets.generated.java.srcDirs.iterator().next()
    dependencyCacheDir = new File(destinationDir, "dependencyCacheDir") **<<< HEEEERE**
}

Could please somebody help me? is this question of JAVA version or dependencies missing?
I have this:


Gradle 5.3

Kotlin: 1.3.21
Groovy: 2.5.4
Ant: Apache Ant™ version 1.9.13 compiled on July 10 2018
JVM: 11.0.8 (Oracle Corporation 11.0.8+10-LTS)


Viewing all articles
Browse latest Browse all 19854

Trending Articles