diff --git a/build.gradle.kts b/build.gradle.kts index 21ecdc5..0a17ec3 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -112,7 +112,7 @@ allprojects { expand(map) } - exclude("*/.editorconfig") + exclude("*/.editorconfig", ".cache/") } withType { @@ -124,8 +124,11 @@ allprojects { if (project !in excluded) { project(":xplat").afterEvaluate { dependsOn(tasks.named("runDatagen")) } } - from("LICENSE*") { - rename { "${project.name}-${it}" } + + rootDir.listFiles { _, name -> name.startsWith("LICENSE") }?.let { + from(it) { + rename { file -> "${rootProject.name}-${file}" } + } } }