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

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 =
    classpath = configurations.compile + configurations.jpamodelgen
    options.compilerArgs = [
    destinationDir =
    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)