From 322abe9d6aa7072ab91d983c0ea1e8e2ab8117aa Mon Sep 17 00:00:00 2001 From: Yanbing Zhao Date: Sat, 29 Jul 2023 11:37:59 +0800 Subject: [PATCH] Add license file --- LICENSE | 28 ++++++++++++++++++++++++++++ build.gradle | 6 +++--- gradlew | 0 gradlew.bat | 0 4 files changed, 31 insertions(+), 3 deletions(-) create mode 100644 LICENSE mode change 100644 => 100755 gradlew mode change 100644 => 100755 gradlew.bat diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..5005b95 --- /dev/null +++ b/LICENSE @@ -0,0 +1,28 @@ +BSD 3-Clause License + +Copyright (c) 2023, TeaConMC + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +3. Neither the name of the copyright holder nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/build.gradle b/build.gradle index fd484cf..91b95c3 100644 --- a/build.gradle +++ b/build.gradle @@ -116,12 +116,12 @@ def replaceProperties = [ mod_authors: mod_authors, mod_description: mod_description ] processResources { + from('LICENSE') { into 'META-INF/' } + inputs.properties replaceProperties replaceProperties.put 'project', project - filesMatching(resourceTargets) { - expand replaceProperties - } + filesMatching(resourceTargets) { expand replaceProperties } } jar { diff --git a/gradlew b/gradlew old mode 100644 new mode 100755 diff --git a/gradlew.bat b/gradlew.bat old mode 100644 new mode 100755