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