Solved by removing:
excludes += "/*.jar"
from packaging {} options
with:
packaging {
resources {
excludes += ["/META-INF/{AL2.0,LGPL2.1}"]
merges += ["META-INF/LICENSE.md", "META-INF/LICENSE-notice.md"]
}
}
working fine to me