diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 8590706..9c21a92 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -2,11 +2,10 @@ name: Publish on: push: - branches: [ "master" ] + branches: [ 'master' ] paths-ignore: - '.github/workflows/**' - 'README.md' - - 'settings.gradle' permissions: contents: read @@ -16,9 +15,14 @@ jobs: uses: MinecraftForge/SharedActions/.github/workflows/gradle.yml@v0 with: java: 17 - gradle_tasks: "check publishPlugins" + gradle_tasks: "check publish publishPlugins" secrets: DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} + PROMOTE_ARTIFACT_WEBHOOK: ${{ secrets.PROMOTE_ARTIFACT_WEBHOOK }} + PROMOTE_ARTIFACT_USERNAME: ${{ secrets.PROMOTE_ARTIFACT_USERNAME }} + PROMOTE_ARTIFACT_PASSWORD: ${{ secrets.PROMOTE_ARTIFACT_PASSWORD }} + MAVEN_USER: ${{ secrets.MAVEN_USER }} + MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }} GRADLE_PUBLISH_KEY: ${{ secrets.GRADLE_PUBLISH_KEY }} GRADLE_PUBLISH_SECRET: ${{ secrets.GRADLE_PUBLISH_SECRET }} GRADLE_CACHE_KEY: ${{ secrets.GRADLE_CACHE_KEY }} diff --git a/LICENSE-header.txt b/LICENSE-header.txt new file mode 100644 index 0000000..36d6143 --- /dev/null +++ b/LICENSE-header.txt @@ -0,0 +1,3 @@ +Copyright (c) 2015, Minecrell +Forked by Forge Development LLC and contributors +SPDX-License-Identifier: MIT diff --git a/build.gradle b/build.gradle index 2af7b55..6d9f888 100644 --- a/build.gradle +++ b/build.gradle @@ -1,4 +1,4 @@ -import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar +import org.gradle.api.attributes.plugin.GradlePluginApiVersion import org.gradle.api.plugins.jvm.JvmTestSuite plugins { @@ -8,32 +8,73 @@ plugins { id 'idea' id 'eclipse' id 'maven-publish' - id 'net.minecraftforge.licenser' version '1.1.1' - id 'net.minecraftforge.gradleutils' version '2.5.1' - id 'com.gradle.plugin-publish' version '1.3.1' - id 'com.gradleup.shadow' version '8.3.6' + alias libs.plugins.gradleutils + alias libs.plugins.gitversion + alias libs.plugins.changelog + alias libs.plugins.licenser + alias libs.plugins.plugin.publish } final projectDisplayName = 'Forge Licenser' +final projectArtifactId = base.archivesName = 'licenser' description = 'A simple license header manager for Gradle - Fork of org.cadixdev.licenser' group = 'net.minecraftforge' version = gitversion.tagOffset println "Version: $version" -java.toolchain.languageVersion = JavaLanguageVersion.of(8) +java { + toolchain.languageVersion = JavaLanguageVersion.of(8) + withSourcesJar() -repositories { - gradlePluginPortal() + // TODO [Licenser][2.0] Re-enable with Licenser 2.0 when migrating public API from Groovy to Java + // Gradle's Groovydoc task does not fork the JVM and uses the daemon JVM to run the Groovydoc ant task + // This project is built with a version of Groovy so old that its Groovydoc runtime cannot handle Java 17, Gradle 9's minimum + //withJavadocJar() +} + +configurations { + // Applies the "Gradle Plugin API Version" attribute to configuration + // This was added in Gradle 7, gives consumers useful errors if they are on an old version + def applyGradleVersionAttribute = { Configuration configuration -> + configuration.attributes { + attribute(GradlePluginApiVersion.GRADLE_PLUGIN_API_VERSION_ATTRIBUTE, objects.named(GradlePluginApiVersion, libs.versions.gradle.get())) + } + } + + named('runtimeElements', applyGradleVersionAttribute) +} + +dependencies { + // Static Analysis + compileOnly libs.nulls + + // Gradle API + compileOnly libs.gradle } license { - include '**/*.java' - include '**/*.groovy' + header = rootProject.file('LICENSE-header.txt') + newLine = false + exclude '**/*.properties' +} + +tasks.named('jar', Jar) { + archiveClassifier = 'thin' +} + +tasks.withType(GroovyCompile).configureEach { + groovyOptions.optimizationOptions.indy = true +} + +/* +tasks.named('javadoc', Javadoc) { + enabled = false } -javadoc.enabled = false -groovydoc.use = true +tasks.named('groovydoc', Groovydoc) { + use = true +} // javadocJar is created after evaluation, so we need to configure it here afterEvaluate { @@ -42,32 +83,44 @@ afterEvaluate { from groovydoc.destinationDir } } + */ testing { - suites.configureEach { JvmTestSuite suite -> + def suiteSpec = { JvmTestSuite suite -> suite.dependencies { implementation.add project() - implementation.add gradleTestKit() - libs.bundles.spock.get().forEach { dependency -> - implementation.add dependency - } + implementation.add testLibs.gradle + compileOnly.add libs.nulls + implementation.bundle testLibs.bundles.spock } - suite.useJUnitJupiter(libs.junit.get().version) + suite.useJUnitJupiter(testLibs.versions.junit) suite.targets.configureEach { testTask.configure { - shouldRunAfter test + shouldRunAfter tasks.named('test') + } + } + + // Remove's Gradle's local test kit since we are supplying our own + afterEvaluate { project -> + project.configurations.named(suite.sources.implementationConfigurationName) { + dependencies.remove(project.dependencies.gradleTestKit()) } } } - suites.named('test', JvmTestSuite) - suites.register('functionalTest', JvmTestSuite) + suites.named('test', JvmTestSuite, suiteSpec) + suites.register('functionalTest', JvmTestSuite, suiteSpec) +} + +changelog { + from '1.0' + publishAll = false } gradlePlugin { - testSourceSets sourceSets.functionalTest + testSourceSet sourceSets.functionalTest website = gitversion.url vcsUrl = gitversion.url + '.git' @@ -81,36 +134,27 @@ gradlePlugin { } } -tasks.named('jar', Jar) { - archiveClassifier = 'thin' -} - -tasks.named('shadowJar', ShadowJar) { - enableRelocation = true - archiveClassifier = null - relocationPrefix = 'net.minecraftforge.licenser.shadow' -} - publishing { publications.register('pluginMaven', MavenPublication) { + artifactId = projectArtifactId + changelog.publish it + pom { pom -> - artifactId = project.name name = projectDisplayName description = project.description - gradleutils.pom.gitHubDetails = pom + gradleutils.pom.addRemoteDetails(pom) - license gradleutils.pom.licenses.MIT + licenses { + license gradleutils.pom.licenses.MIT + } } } repositories { - // TODO [Licenser] Use publishing Forge maven? - maven { - name = 'localFolder' - url = 'file://' + file('build/repo').absolutePath - } + maven gradleutils.publishingForgeMaven } } idea.module { downloadSources = downloadJavadoc = true } +eclipse.classpath { downloadSources = downloadJavadoc = true } diff --git a/gradle.properties b/gradle.properties index 27af0d6..395f414 100644 --- a/gradle.properties +++ b/gradle.properties @@ -11,17 +11,17 @@ org.gradle.parallel=true org.gradle.configureondemand=true # Configuration Cache -# TODO [Licenser][Gradle9] Re-enable in Gradle 9 (if updated) # https://docs.gradle.org/current/userguide/configuration_cache.html -#org.gradle.configuration-cache=true +org.gradle.configuration-cache=true # Parallel configuration caching -# TODO [Licenser][Gradle9] Re-enable in Gradle 9 (if updated) # https://docs.gradle.org/current/userguide/configuration_cache.html#config_cache:usage:parallel -#org.gradle.configuration-cache.parallel=true +org.gradle.configuration-cache.parallel=true # Ignoring problems with configuration cache # Fixes issues with core plugins (publish, idea, eclipse, etc.) that are not compatible with the configuration cache -# TODO [Licenser][Gradle9] Re-enable in Gradle 9 (if updated) # https://docs.gradle.org/current/userguide/configuration_cache.html#config_cache:usage:ignore_problems -#org.gradle.configuration-cache.problems=warn +org.gradle.configuration-cache.problems=warn + +# Suppresses adding Gradle's own API dependency with the 'java-gradle-plugin' plugin +systemProp.org.gradle.unsafe.suppress-gradle-api=true diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar index d64cd49..9bbc975 100644 Binary files a/gradle/wrapper/gradle-wrapper.jar and b/gradle/wrapper/gradle-wrapper.jar differ diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 37f853b..2a84e18 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-9.0.0-bin.zip networkTimeout=10000 validateDistributionUrl=true zipStoreBase=GRADLE_USER_HOME diff --git a/gradlew b/gradlew index 1aa94a4..faf9300 100755 --- a/gradlew +++ b/gradlew @@ -15,6 +15,8 @@ # See the License for the specific language governing permissions and # limitations under the License. # +# SPDX-License-Identifier: Apache-2.0 +# ############################################################################## # @@ -55,7 +57,7 @@ # Darwin, MinGW, and NonStop. # # (3) This script is generated from the Groovy template -# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt +# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt # within the Gradle project. # # You can find Gradle at https://github.com/gradle/gradle/. @@ -84,7 +86,7 @@ done # shellcheck disable=SC2034 APP_BASE_NAME=${0##*/} # Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036) -APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit +APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s\n' "$PWD" ) || exit # Use the maximum available, or set MAX_FD != -1 to use that value. MAX_FD=maximum @@ -203,7 +205,7 @@ fi DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' # Collect all arguments for the java command: -# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments, +# * DEFAULT_JVM_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments, # and any embedded shellness will be escaped. # * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be # treated as '${Hostname}' itself on the command line. diff --git a/gradlew.bat b/gradlew.bat index 93e3f59..9d21a21 100644 --- a/gradlew.bat +++ b/gradlew.bat @@ -13,6 +13,8 @@ @rem See the License for the specific language governing permissions and @rem limitations under the License. @rem +@rem SPDX-License-Identifier: Apache-2.0 +@rem @if "%DEBUG%"=="" @echo off @rem ########################################################################## @@ -43,11 +45,11 @@ set JAVA_EXE=java.exe %JAVA_EXE% -version >NUL 2>&1 if %ERRORLEVEL% equ 0 goto execute -echo. -echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. -echo. -echo Please set the JAVA_HOME variable in your environment to match the -echo location of your Java installation. +echo. 1>&2 +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2 +echo. 1>&2 +echo Please set the JAVA_HOME variable in your environment to match the 1>&2 +echo location of your Java installation. 1>&2 goto fail @@ -57,11 +59,11 @@ set JAVA_EXE=%JAVA_HOME%/bin/java.exe if exist "%JAVA_EXE%" goto execute -echo. -echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% -echo. -echo Please set the JAVA_HOME variable in your environment to match the -echo location of your Java installation. +echo. 1>&2 +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2 +echo. 1>&2 +echo Please set the JAVA_HOME variable in your environment to match the 1>&2 +echo location of your Java installation. 1>&2 goto fail diff --git a/settings.gradle b/settings.gradle index 5bc9910..90cb742 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1,16 +1,63 @@ +pluginManagement { + repositories { + //mavenLocal() + mavenCentral() + gradlePluginPortal() + maven { url = 'https://maven.minecraftforge.net/' } + } +} + plugins { - id 'org.gradle.toolchains.foojay-resolver-convention' version '0.9.0' + id 'org.gradle.toolchains.foojay-resolver-convention' version '1.0.0' // https://plugins.gradle.org/plugin/org.gradle.toolchains.foojay-resolver-convention } rootProject.name = 'licenser' //@formatter:off -dependencyResolutionManagement.versionCatalogs.register('libs') { - // Testing - version 'spock', '2.3-groovy-3.0' - library 'spock-core', 'org.spockframework', 'spock-core' versionRef 'spock' - library 'spock-junit4', 'org.spockframework', 'spock-junit4' versionRef 'spock' - bundle 'spock', ['spock-core', 'spock-junit4'] - library 'junit', 'junit', 'junit' version '4.13.2' +dependencyResolutionManagement { + repositories { + //mavenLocal() + mavenCentral() + maven { url = 'https://maven.moddinglegacy.com' } // Gradle API + } + + versionCatalogs { + final gradle = '7.0.2' + + register('libs') { + version 'gitversion-gradle', '3.0.0-beta.19' + + plugin 'licenser', 'net.minecraftforge.licenser' version '1.2.0' // https://plugins.gradle.org/plugin/net.minecraftforge.licenser + plugin 'gradleutils', 'net.minecraftforge.gradleutils' version '3.0.0-beta.20' // https://plugins.gradle.org/plugin/net.minecraftforge.gradleutils + plugin 'gitversion', 'net.minecraftforge.gitversion' version '3.0.0-beta.19' // https://plugins.gradle.org/plugin/net.minecraftforge.gitversion + plugin 'changelog', 'net.minecraftforge.changelog' version '3.0.0-beta.19' // https://plugins.gradle.org/plugin/net.minecraftforge.changelog + plugin 'plugin-publish', 'com.gradle.plugin-publish' version '1.3.1' // https://plugins.gradle.org/plugin/com.gradle.plugin-publish + + // Static Analysis + library 'nulls', 'org.jetbrains', 'annotations' version '26.0.2' + + // Gradle API + // Original: https://github.com/remal-gradle-api/packages/packages/760197?version=7.0.2 + // Mirror: https://repos.moddinglegacy.com/#/modding-legacy/name/remal/gradle-api/gradle-api/7.0.2 + version 'gradle', gradle + library 'gradle', 'name.remal.gradle-api', 'gradle-api' versionRef 'gradle' + } + + register('testLibs') { + // Gradle Test Kit + // Original: https://github.com/remal-gradle-api/packages/packages/760199?version=7.0.2 + // Mirror: https://repos.moddinglegacy.com/#/modding-legacy/name/remal/gradle-api/gradle-test-kit/7.0.2 + library 'gradle', 'name.remal.gradle-api', 'gradle-test-kit' version gradle + + // Spock + version 'spock', '2.3-groovy-3.0' + library 'spock-core', 'org.spockframework', 'spock-core' versionRef 'spock' + library 'spock-junit4', 'org.spockframework', 'spock-junit4' versionRef 'spock' + bundle 'spock', ['spock-core', 'spock-junit4'] + + // JUnit (Dependency artifact managed by JvmTestSuite) + version 'junit', '4.13.2' + } + } } //@formatter:on diff --git a/src/functionalTest/groovy/net/minecraftforge/licenser/LicenserPluginFunctionalTest.groovy b/src/functionalTest/groovy/net/minecraftforge/licenser/LicenserPluginFunctionalTest.groovy index 63aa4e5..6c4aeb9 100644 --- a/src/functionalTest/groovy/net/minecraftforge/licenser/LicenserPluginFunctionalTest.groovy +++ b/src/functionalTest/groovy/net/minecraftforge/licenser/LicenserPluginFunctionalTest.groovy @@ -1,27 +1,8 @@ /* - * The MIT License (MIT) - * * Copyright (c) 2015, Minecrell - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. + * Forked by Forge Development LLC and contributors + * SPDX-License-Identifier: MIT */ - package net.minecraftforge.licenser import org.gradle.testkit.runner.GradleRunner diff --git a/src/main/groovy/net/minecraftforge/licenser/LicenseExtension.groovy b/src/main/groovy/net/minecraftforge/licenser/LicenseExtension.groovy index 3a25486..0944da6 100644 --- a/src/main/groovy/net/minecraftforge/licenser/LicenseExtension.groovy +++ b/src/main/groovy/net/minecraftforge/licenser/LicenseExtension.groovy @@ -1,27 +1,8 @@ /* - * The MIT License (MIT) - * * Copyright (c) 2015, Minecrell - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. + * Forked by Forge Development LLC and contributors + * SPDX-License-Identifier: MIT */ - package net.minecraftforge.licenser import groovy.transform.PackageScope diff --git a/src/main/groovy/net/minecraftforge/licenser/LicenseProperties.groovy b/src/main/groovy/net/minecraftforge/licenser/LicenseProperties.groovy index 51d993a..23a7ce9 100644 --- a/src/main/groovy/net/minecraftforge/licenser/LicenseProperties.groovy +++ b/src/main/groovy/net/minecraftforge/licenser/LicenseProperties.groovy @@ -1,27 +1,8 @@ /* - * The MIT License (MIT) - * * Copyright (c) 2015, Minecrell - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. + * Forked by Forge Development LLC and contributors + * SPDX-License-Identifier: MIT */ - package net.minecraftforge.licenser import org.gradle.api.model.ObjectFactory diff --git a/src/main/groovy/net/minecraftforge/licenser/LicenseTaskProperties.groovy b/src/main/groovy/net/minecraftforge/licenser/LicenseTaskProperties.groovy index 567d0d3..6744fdb 100644 --- a/src/main/groovy/net/minecraftforge/licenser/LicenseTaskProperties.groovy +++ b/src/main/groovy/net/minecraftforge/licenser/LicenseTaskProperties.groovy @@ -1,27 +1,8 @@ /* - * The MIT License (MIT) - * * Copyright (c) 2015, Minecrell - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. + * Forked by Forge Development LLC and contributors + * SPDX-License-Identifier: MIT */ - package net.minecraftforge.licenser import groovy.transform.PackageScope diff --git a/src/main/groovy/net/minecraftforge/licenser/LicenseViolationException.java b/src/main/groovy/net/minecraftforge/licenser/LicenseViolationException.java index 1a08fe0..e769a94 100644 --- a/src/main/groovy/net/minecraftforge/licenser/LicenseViolationException.java +++ b/src/main/groovy/net/minecraftforge/licenser/LicenseViolationException.java @@ -1,27 +1,8 @@ /* - * The MIT License (MIT) - * * Copyright (c) 2015, Minecrell - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. + * Forked by Forge Development LLC and contributors + * SPDX-License-Identifier: MIT */ - package net.minecraftforge.licenser; import org.gradle.api.GradleException; diff --git a/src/main/groovy/net/minecraftforge/licenser/Licenser.groovy b/src/main/groovy/net/minecraftforge/licenser/Licenser.groovy index 489609c..6b06040 100644 --- a/src/main/groovy/net/minecraftforge/licenser/Licenser.groovy +++ b/src/main/groovy/net/minecraftforge/licenser/Licenser.groovy @@ -1,27 +1,8 @@ /* - * The MIT License (MIT) - * * Copyright (c) 2015, Minecrell - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. + * Forked by Forge Development LLC and contributors + * SPDX-License-Identifier: MIT */ - package net.minecraftforge.licenser import groovy.text.SimpleTemplateEngine diff --git a/src/main/groovy/net/minecraftforge/licenser/header/CommentHeaderFormat.groovy b/src/main/groovy/net/minecraftforge/licenser/header/CommentHeaderFormat.groovy index 73a163d..0d69086 100644 --- a/src/main/groovy/net/minecraftforge/licenser/header/CommentHeaderFormat.groovy +++ b/src/main/groovy/net/minecraftforge/licenser/header/CommentHeaderFormat.groovy @@ -1,27 +1,8 @@ /* - * The MIT License (MIT) - * * Copyright (c) 2015, Minecrell - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. + * Forked by Forge Development LLC and contributors + * SPDX-License-Identifier: MIT */ - package net.minecraftforge.licenser.header import groovy.transform.EqualsAndHashCode diff --git a/src/main/groovy/net/minecraftforge/licenser/header/Header.groovy b/src/main/groovy/net/minecraftforge/licenser/header/Header.groovy index 893d27b..f51f25e 100644 --- a/src/main/groovy/net/minecraftforge/licenser/header/Header.groovy +++ b/src/main/groovy/net/minecraftforge/licenser/header/Header.groovy @@ -1,27 +1,8 @@ /* - * The MIT License (MIT) - * * Copyright (c) 2015, Minecrell - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. + * Forked by Forge Development LLC and contributors + * SPDX-License-Identifier: MIT */ - package net.minecraftforge.licenser.header import net.minecraftforge.licenser.util.HeaderHelper diff --git a/src/main/groovy/net/minecraftforge/licenser/header/HeaderFormat.java b/src/main/groovy/net/minecraftforge/licenser/header/HeaderFormat.java index d19bda8..ba3cda9 100644 --- a/src/main/groovy/net/minecraftforge/licenser/header/HeaderFormat.java +++ b/src/main/groovy/net/minecraftforge/licenser/header/HeaderFormat.java @@ -1,27 +1,8 @@ /* - * The MIT License (MIT) - * * Copyright (c) 2015, Minecrell - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. + * Forked by Forge Development LLC and contributors + * SPDX-License-Identifier: MIT */ - package net.minecraftforge.licenser.header; public interface HeaderFormat { diff --git a/src/main/groovy/net/minecraftforge/licenser/header/HeaderFormatRegistry.groovy b/src/main/groovy/net/minecraftforge/licenser/header/HeaderFormatRegistry.groovy index d196fbc..778811a 100644 --- a/src/main/groovy/net/minecraftforge/licenser/header/HeaderFormatRegistry.groovy +++ b/src/main/groovy/net/minecraftforge/licenser/header/HeaderFormatRegistry.groovy @@ -1,27 +1,8 @@ /* - * The MIT License (MIT) - * * Copyright (c) 2015, Minecrell - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. + * Forked by Forge Development LLC and contributors + * SPDX-License-Identifier: MIT */ - package net.minecraftforge.licenser.header import net.minecraftforge.licenser.util.CaseInsensitiveMap diff --git a/src/main/groovy/net/minecraftforge/licenser/header/HeaderStyle.groovy b/src/main/groovy/net/minecraftforge/licenser/header/HeaderStyle.groovy index 5963e1a..e5db8b3 100644 --- a/src/main/groovy/net/minecraftforge/licenser/header/HeaderStyle.groovy +++ b/src/main/groovy/net/minecraftforge/licenser/header/HeaderStyle.groovy @@ -1,27 +1,8 @@ /* - * The MIT License (MIT) - * * Copyright (c) 2015, Minecrell - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. + * Forked by Forge Development LLC and contributors + * SPDX-License-Identifier: MIT */ - package net.minecraftforge.licenser.header import javax.annotation.Nullable diff --git a/src/main/groovy/net/minecraftforge/licenser/header/PreparedCommentHeader.groovy b/src/main/groovy/net/minecraftforge/licenser/header/PreparedCommentHeader.groovy index a650c21..f5bdefe 100644 --- a/src/main/groovy/net/minecraftforge/licenser/header/PreparedCommentHeader.groovy +++ b/src/main/groovy/net/minecraftforge/licenser/header/PreparedCommentHeader.groovy @@ -1,27 +1,8 @@ /* - * The MIT License (MIT) - * * Copyright (c) 2015, Minecrell - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. + * Forked by Forge Development LLC and contributors + * SPDX-License-Identifier: MIT */ - package net.minecraftforge.licenser.header import groovy.transform.PackageScope diff --git a/src/main/groovy/net/minecraftforge/licenser/header/PreparedHeader.java b/src/main/groovy/net/minecraftforge/licenser/header/PreparedHeader.java index 839313b..b221ba3 100644 --- a/src/main/groovy/net/minecraftforge/licenser/header/PreparedHeader.java +++ b/src/main/groovy/net/minecraftforge/licenser/header/PreparedHeader.java @@ -1,27 +1,8 @@ /* - * The MIT License (MIT) - * * Copyright (c) 2015, Minecrell - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. + * Forked by Forge Development LLC and contributors + * SPDX-License-Identifier: MIT */ - package net.minecraftforge.licenser.header; import java.io.File; diff --git a/src/main/groovy/net/minecraftforge/licenser/tasks/LicenseCheck.groovy b/src/main/groovy/net/minecraftforge/licenser/tasks/LicenseCheck.groovy index 4ca90a0..653cbd5 100644 --- a/src/main/groovy/net/minecraftforge/licenser/tasks/LicenseCheck.groovy +++ b/src/main/groovy/net/minecraftforge/licenser/tasks/LicenseCheck.groovy @@ -1,27 +1,8 @@ /* - * The MIT License (MIT) - * * Copyright (c) 2015, Minecrell - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. + * Forked by Forge Development LLC and contributors + * SPDX-License-Identifier: MIT */ - package net.minecraftforge.licenser.tasks import net.minecraftforge.licenser.LicenseViolationException diff --git a/src/main/groovy/net/minecraftforge/licenser/tasks/LicenseTask.groovy b/src/main/groovy/net/minecraftforge/licenser/tasks/LicenseTask.groovy index c688205..c078332 100644 --- a/src/main/groovy/net/minecraftforge/licenser/tasks/LicenseTask.groovy +++ b/src/main/groovy/net/minecraftforge/licenser/tasks/LicenseTask.groovy @@ -1,27 +1,8 @@ /* - * The MIT License (MIT) - * * Copyright (c) 2015, Minecrell - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. + * Forked by Forge Development LLC and contributors + * SPDX-License-Identifier: MIT */ - package net.minecraftforge.licenser.tasks import net.minecraftforge.licenser.header.Header diff --git a/src/main/groovy/net/minecraftforge/licenser/tasks/LicenseUpdate.groovy b/src/main/groovy/net/minecraftforge/licenser/tasks/LicenseUpdate.groovy index 471dfd4..225299b 100644 --- a/src/main/groovy/net/minecraftforge/licenser/tasks/LicenseUpdate.groovy +++ b/src/main/groovy/net/minecraftforge/licenser/tasks/LicenseUpdate.groovy @@ -1,27 +1,8 @@ /* - * The MIT License (MIT) - * * Copyright (c) 2015, Minecrell - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. + * Forked by Forge Development LLC and contributors + * SPDX-License-Identifier: MIT */ - package net.minecraftforge.licenser.tasks import org.gradle.api.GradleException diff --git a/src/main/groovy/net/minecraftforge/licenser/util/CaseInsensitiveMap.groovy b/src/main/groovy/net/minecraftforge/licenser/util/CaseInsensitiveMap.groovy index 66ae463..f767775 100644 --- a/src/main/groovy/net/minecraftforge/licenser/util/CaseInsensitiveMap.groovy +++ b/src/main/groovy/net/minecraftforge/licenser/util/CaseInsensitiveMap.groovy @@ -1,27 +1,8 @@ /* - * The MIT License (MIT) - * * Copyright (c) 2015, Minecrell - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. + * Forked by Forge Development LLC and contributors + * SPDX-License-Identifier: MIT */ - package net.minecraftforge.licenser.util class CaseInsensitiveMap { diff --git a/src/main/groovy/net/minecraftforge/licenser/util/HeaderHelper.java b/src/main/groovy/net/minecraftforge/licenser/util/HeaderHelper.java index 2e57fc4..6870d88 100644 --- a/src/main/groovy/net/minecraftforge/licenser/util/HeaderHelper.java +++ b/src/main/groovy/net/minecraftforge/licenser/util/HeaderHelper.java @@ -1,27 +1,8 @@ /* - * The MIT License (MIT) - * * Copyright (c) 2015, Minecrell - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. + * Forked by Forge Development LLC and contributors + * SPDX-License-Identifier: MIT */ - package net.minecraftforge.licenser.util; import net.minecraftforge.licenser.header.CommentHeaderFormat; diff --git a/src/test/groovy/net/minecraftforge/licenser/LicenseExtensionTest.groovy b/src/test/groovy/net/minecraftforge/licenser/LicenseExtensionTest.groovy index 6e06166..87ec01e 100644 --- a/src/test/groovy/net/minecraftforge/licenser/LicenseExtensionTest.groovy +++ b/src/test/groovy/net/minecraftforge/licenser/LicenseExtensionTest.groovy @@ -1,27 +1,8 @@ /* - * The MIT License (MIT) - * * Copyright (c) 2015, Minecrell - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. + * Forked by Forge Development LLC and contributors + * SPDX-License-Identifier: MIT */ - package net.minecraftforge.licenser import net.minecraftforge.licenser.header.HeaderStyle diff --git a/src/test/groovy/net/minecraftforge/licenser/LicenserPluginTest.groovy b/src/test/groovy/net/minecraftforge/licenser/LicenserPluginTest.groovy index 06f1222..c33cd36 100644 --- a/src/test/groovy/net/minecraftforge/licenser/LicenserPluginTest.groovy +++ b/src/test/groovy/net/minecraftforge/licenser/LicenserPluginTest.groovy @@ -1,27 +1,8 @@ /* - * The MIT License (MIT) - * * Copyright (c) 2015, Minecrell - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. + * Forked by Forge Development LLC and contributors + * SPDX-License-Identifier: MIT */ - package net.minecraftforge.licenser import org.gradle.testfixtures.ProjectBuilder diff --git a/src/test/groovy/net/minecraftforge/licenser/header/HeaderFormatRegistryTest.groovy b/src/test/groovy/net/minecraftforge/licenser/header/HeaderFormatRegistryTest.groovy index 9832dce..ebdc6a4 100644 --- a/src/test/groovy/net/minecraftforge/licenser/header/HeaderFormatRegistryTest.groovy +++ b/src/test/groovy/net/minecraftforge/licenser/header/HeaderFormatRegistryTest.groovy @@ -1,27 +1,8 @@ /* - * The MIT License (MIT) - * * Copyright (c) 2015, Minecrell - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. + * Forked by Forge Development LLC and contributors + * SPDX-License-Identifier: MIT */ - package net.minecraftforge.licenser.header import spock.lang.Specification diff --git a/src/test/groovy/net/minecraftforge/licenser/util/HeaderHelperTest.groovy b/src/test/groovy/net/minecraftforge/licenser/util/HeaderHelperTest.groovy index 94bbc4d..54ac5a9 100644 --- a/src/test/groovy/net/minecraftforge/licenser/util/HeaderHelperTest.groovy +++ b/src/test/groovy/net/minecraftforge/licenser/util/HeaderHelperTest.groovy @@ -1,27 +1,8 @@ /* - * The MIT License (MIT) - * * Copyright (c) 2015, Minecrell - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. + * Forked by Forge Development LLC and contributors + * SPDX-License-Identifier: MIT */ - package net.minecraftforge.licenser.util