From bdeb5acae900a5cfdc4b6b932c07e1cd833e3e16 Mon Sep 17 00:00:00 2001 From: KennyTV Date: Sun, 21 Mar 2021 20:07:32 +0100 Subject: [PATCH] Fix license bundling --- LICENSE => LICENSE.txt | 0 README.md | 2 +- buildSrc/src/main/kotlin/extensions.kt | 3 +++ 3 files changed, 4 insertions(+), 1 deletion(-) rename LICENSE => LICENSE.txt (100%) diff --git a/LICENSE b/LICENSE.txt similarity index 100% rename from LICENSE rename to LICENSE.txt diff --git a/README.md b/README.md index bb30f5d9c..44cf5fa67 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,7 @@ After cloning this repository, build the project with Gradle by running `/gradle License: -------- -MIT License, see LICENSE for more details. +MIT License, see LICENSE.txt for more details. Special thanks to all our [Contributors](https://github.com/ViaVersion/ViaVersion/graphs/contributors) diff --git a/buildSrc/src/main/kotlin/extensions.kt b/buildSrc/src/main/kotlin/extensions.kt index e2072ea62..68d80b984 100644 --- a/buildSrc/src/main/kotlin/extensions.kt +++ b/buildSrc/src/main/kotlin/extensions.kt @@ -24,6 +24,9 @@ fun Project.configureShadowJar() { if (name == "jar") { archiveClassifier.set("unshaded") } + from(project.parent!!.file("LICENSE.txt")) { + into("") + } } } }