diff --git a/build.gradle.kts b/build.gradle.kts index 16525e3fbd..d96ab3865a 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -371,6 +371,22 @@ subprojects { from(tasks["javadoc"]) } + tasks.withType { + into("META-INF") { + from(rootDir) { + if (name == "sourcesJar") { + include("LICENSE") + include("NOTICE") + } else { + include("LICENSE.bin") + rename("LICENSE.bin", "LICENSE") + include("NOTICE.bin") + rename("NOTICE.bin", "NOTICE") + } + } + } + } + if (project.name in listOf("web", "docs")) { plugins.apply(NodePlugin::class) configure {