From 4193aab616e121dd7a72b388f4702eb59faff553 Mon Sep 17 00:00:00 2001 From: Ennui Langeweile <85590273+EnnuiL@users.noreply.github.com> Date: Mon, 2 Jan 2023 18:44:12 -0300 Subject: [PATCH] Revert "Update LICENSE handling" This reverts commit d7b53f61d3e7611c99c838af79a4a5085fe0d940. --- README.md | 1 + build.gradle | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2b1c579..5bdf426 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,7 @@ In order to use this mod as a template: - If you are planning to include (jar-in-jar) a mod, don't forget to declare its dependency on it! - The icon provided here is a placeholder one. If you aren't able to replace it yet, you can delete it and remove the "icon" property - Create a LICENSE file for this mod! If you don't know which license to use, check out [here](https://choosealicense.com/). + - If you use `LICENSE.md`, don't forget to update the buildscript in order to use that file name! - In `quilt.mod.json`, don't forget to put the license's [SPDX identifier](https://spdx.org/licenses/) under the `"license"` property in `"metadata"`. - The GPLv3 and AGPLv3 are not valid mod licenses, so you can use almost any license except for those. - Update the Java sub-directory structure so it reflects your Maven group diff --git a/build.gradle b/build.gradle index 6d2c0d6..b0e65ab 100644 --- a/build.gradle +++ b/build.gradle @@ -63,9 +63,10 @@ java { // withJavadocJar() } +// If you plan to use a different file for the license, don't forget to change the file name here! jar { - filesMatching('LICENSE') { - rename '^(LICENSE.*?)(\\..*)?$', "\$1_${archivesBaseName}\$2" + from('LICENSE') { + rename { "${it}_${archivesBaseName}" } } }