Creating a WebJar - gradle upload does not create maven-metadata.xml

I am creating a webjar with gradle. Everything works fine except gradle uploadWebjar does not create the necessary maven-metadata.xml

Here is my build.gradle: -----------------------------------

apply plugin: 'java'
apply plugin: 'maven'
//apply plugin: 'idea'
  group = 'at.mikemitterer'
version = '0.1.2' // gitExtendedVersion() // Sample: 0.5.4-19
  buildDir = "target/${version}/"
  ext {
    webjarconfig = [
            staticHTMLFilesDir : "web",
            //subDir : ""
            subDir : "webjars/myproject/${version}"
    ]
}
  configurations {
    webjar
}
  task webjar(type: Zip) {
    // stores jar-file in "target/${version}/distributions"
    extension 'jar'
    classifier 'webjar'
      from (webjarconfig.staticHTMLFilesDir) {
        into("META-INF/resources/" + webjarconfig.subDir)
    }
      outputs.file archivePath
}
  artifacts {
    webjar(webjar.archivePath) {
        type 'jar'
        builtBy webjar
    }
}
  uploadWebjar {
    repositories {
        mavenDeployer {
            // My local Maven repository
            repository(url: uri("file:///Volumes/programming/Maven/private.maven.repository/"))
          }
    }
}

My settings.gradle

rootProject.name = 'webapp.base.ui'

thx in advance

I am really the only one who has this problem???

I’ts this little piece which holds me back from generating the webjar…

I am facing somewhat a same issue, Except the metadata file is being created but the versioning section is not being updated in Gradle, When i used to use Maven it used to work, but after migrations its not.

< versioning> < latest></ latest> < release> </ release>