Add license info to jar

This commit is contained in:
nea
2023-05-04 17:13:05 +02:00
parent 477184b7ff
commit a9f4aed56b

View File

@@ -139,11 +139,12 @@ tasks.processResources {
filesMatching("**/lang/*.json") {
// flattenJson(this)
}
from(tasks.license)
}
tasks.license {
scanConfiguration(project.configurations.compileClasspath.get())
outputFile.set(file("$buildDir/LICENSES.json"))
outputFile.set(file("$buildDir/LICENSES-NEU.json"))
licenseFormatter.set(moe.nea.licenseextractificator.JsonLicenseFormatter())
}