From fdc450ceff1306e861c5b7bc5359110b63fdc752 Mon Sep 17 00:00:00 2001 From: Fabio Di Fabio Date: Thu, 14 Dec 2023 12:54:51 +0100 Subject: [PATCH] Replace unmantained Gradle license plugin Signed-off-by: Fabio Di Fabio --- build.gradle | 33 +++- gradle/allowed-licenses.json | 65 ++++++++ gradle/check-licenses.gradle | 216 -------------------------- gradle/license-normalizer-bundle.json | 106 +++++++++++++ gradle/verification-metadata.xml | 132 ++++++++++++++-- settings.gradle | 12 -- 6 files changed, 318 insertions(+), 246 deletions(-) create mode 100644 gradle/allowed-licenses.json delete mode 100644 gradle/check-licenses.gradle create mode 100644 gradle/license-normalizer-bundle.json diff --git a/build.gradle b/build.gradle index 6c0970b6436..a00ea343db6 100644 --- a/build.gradle +++ b/build.gradle @@ -14,6 +14,7 @@ */ +import com.github.jk1.license.filter.LicenseBundleNormalizer import groovy.transform.CompileStatic import groovy.transform.Memoized import net.ltgt.gradle.errorprone.CheckSeverity @@ -24,7 +25,7 @@ import java.util.regex.Pattern plugins { id 'com.diffplug.spotless' version '6.23.3' id 'com.github.ben-manes.versions' version '0.50.0' - id 'com.github.hierynomus.license' version '0.16.1-fix' + id 'com.github.jk1.dependency-license-report' version '2.5' id 'com.jfrog.artifactory' version '5.1.11' id 'io.spring.dependency-management' version '1.1.4' id 'me.champeau.jmh' version '0.7.2' apply false @@ -87,13 +88,35 @@ def _strListCmdArg(name) { return _strListCmdArg(name, null) } +licenseReport { + // This is for the allowed-licenses-file in checkLicense Task + // Accepts File, URL or String path to local or remote file + allowedLicensesFile = new File("$rootDir/gradle/allowed-licenses.json") + + excludes = [ + // only used for static analysis, not actually shipped + 'com.google.errorprone:javac', + 'org.checkerframework:dataflow-shaded', + 'org.checkerframework:dataflow-errorprone', + // exclude Kotlin multiplatform dependencies container, they have the same license of what they contain + 'com.squareup.okio:okio', + 'org.jetbrains.kotlinx:kotlinx-coroutines-core' + ] + + // If set to true, then all boms will be excluded from the report + excludeBoms = true + + filters = [ + new LicenseBundleNormalizer(bundlePath: "$rootDir/gradle/license-normalizer-bundle.json") + ] +} + allprojects { apply plugin: 'java-library' apply plugin: 'io.spring.dependency-management' apply plugin: 'jacoco' apply plugin: 'net.ltgt.errorprone' apply from: "${rootDir}/gradle/versions.gradle" - apply from: "${rootDir}/gradle/check-licenses.gradle" version = rootProject.version @@ -623,10 +646,10 @@ task autocomplete(type: JavaExec) { } } -installDist { dependsOn checkLicenses, untunedStartScripts, evmToolStartScripts } +installDist { dependsOn checkLicense, untunedStartScripts, evmToolStartScripts } distTar { - dependsOn checkLicenses, autocomplete, untunedStartScripts, evmToolStartScripts + dependsOn checkLicense, autocomplete, untunedStartScripts, evmToolStartScripts doFirst { delete fileTree(dir: 'build/distributions', include: '*.tar.gz') } @@ -635,7 +658,7 @@ distTar { } distZip { - dependsOn checkLicenses, autocomplete, untunedStartScripts, evmToolStartScripts + dependsOn checkLicense, autocomplete, untunedStartScripts, evmToolStartScripts doFirst { delete fileTree(dir: 'build/distributions', include: '*.zip') } diff --git a/gradle/allowed-licenses.json b/gradle/allowed-licenses.json new file mode 100644 index 00000000000..a5d4048b224 --- /dev/null +++ b/gradle/allowed-licenses.json @@ -0,0 +1,65 @@ +{ + "allowedLicenses": [ + { + "moduleLicense": "Apache License, Version 2.0", + "moduleLicenseUrl": "https://www.apache.org/licenses/LICENSE-2.0" + }, + { + "moduleLicense": "BSD Zero Clause License", + "moduleLicenseUrl": "https://opensource.org/licenses/0BSD" + }, + { + "moduleLicense" : "The 2-Clause BSD License", + "moduleLicenseUrl" : "https://opensource.org/licenses/BSD-2-Clause" + }, + { + "moduleLicense": "The 3-Clause BSD License", + "moduleLicenseUrl": "https://opensource.org/licenses/BSD-3-Clause" + }, + { + "moduleLicense": "Bouncy Castle Licence", + "moduleLicenseUrl": "https://www.bouncycastle.org/licence.html" + }, + { + "moduleLicense": "COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.0", + "moduleLicenseUrl": "https://oss.oracle.com/licenses/CDDL" + }, + { + "moduleLicense" : "COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.1", + "moduleLicenseUrl" : "https://oss.oracle.com/licenses/CDDL-1.1" + }, + { + "moduleLicense": "Eclipse Distribution License - v 1.0", + "moduleLicenseUrl": "http://www.eclipse.org/legal/epl-v10.html" + }, + { + "moduleLicense": "Eclipse Public License - v 2.0", + "moduleLicenseUrl": "https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.txt" + }, + { + "moduleLicense": "MIT License", + "moduleLicenseUrl": "https://opensource.org/licenses/MIT" + }, + { + "moduleLicense": "CC0-1.0", + "moduleLicenseUrl": "https://creativecommons.org/publicdomain/zero/1.0/legalcode" + }, + { + "moduleLicense": "Public-Domain" + }, + { + "moduleLicense": "Unicode/ICU License", + "moduleLicenseUrl": "https://raw.githubusercontent.com/unicode-org/icu/main/icu4c/LICENSE" + }, + { + "moduleLicense": "Creative Commons Legal Code", + "moduleVersion": "1.0.3", + "moduleName": "org.reactivestreams:reactive-streams" + }, + { + "moduleLicense": "Eclipse Public License - v 1.0", + "moduleVersion": "4.13.2", + "moduleName": "junit:junit" + } + ] +} \ No newline at end of file diff --git a/gradle/check-licenses.gradle b/gradle/check-licenses.gradle deleted file mode 100644 index 3939c191166..00000000000 --- a/gradle/check-licenses.gradle +++ /dev/null @@ -1,216 +0,0 @@ -/* - * Copyright ConsenSys AG. - * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on - * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the - * specific language governing permissions and limitations under the License. - * - * SPDX-License-Identifier: Apache-2.0 - */ - -/** - * Check that the licenses of our 3rd parties are in our acceptedLicenses list. - * - * run it with "gradle checkLicenses" - * - * To add new accepted licenses you need to update this script. - * Some products may be available with multiple licenses. In this case you must update - * this script to add it in the downloadLicenses#licenses. - */ - -// Some parts of this code comes from Zipkin/https://github.com/openzipkin/zipkin/pull/852 -// Zipkin itself is under Apache License. - -/** - * The lists of the license we accept. - */ -ext.acceptedLicenses = [ - 'Apache License, Version 2.0', - 'BSD 3-Clause', - 'BSD License', - 'Bouncy Castle Licence', - 'CC0 1.0 Universal License', - 'Common Development and Distribution License 1.0', - 'Eclipse Public License 1.0', - 'Eclipse Public License - v 2.0', - 'MIT License', - 'Mozilla Public License 1.0', - 'Mozilla Public License Version 1.1', - 'Mozilla Public License Version 2.0', - 'Oracle Free Use Terms and Conditions (FUTC)', - 'Public Domain (CC0) License 1.0', - 'Public Domain', - 'Unicode/ICU License', - 'New BSD License' -]*.toLowerCase() - -/** - * This is the configuration we need for our licenses plugin: 'com.github.hierynomus.license' - * This plugin generates a list of dependencies. - */ -downloadLicenses { - includeProjectDependencies = false - reportByDependency = false - reportByLicenseType = true - dependencyConfiguration = 'runtimeClasspath' - excludeDependencies = [ - // only used for static analysis, not actually shipped - 'com.google.code.findbugs:jFormatString:3.0.0', - 'com.google.errorprone:javac:.*', - 'org.checkerframework:dataflow-shaded:.*', - 'org.checkerframework:dataflow-errorprone:.*', - ] - - ext.apache = license('Apache License, Version 2.0', 'http://opensource.org/licenses/Apache-2.0') - ext.bsd = license('BSD License', 'http://www.opensource.org/licenses/bsd-license.php') - ext.bsd3Clause = license('BSD 3-Clause', 'http://opensource.org/licenses/BSD-3-Clause') - ext.cc0 = license('Public Domain (CC0) License 1.0', 'https://creativecommons.org/publicdomain/zero/1.0') - ext.cddl = license('Common Development and Distribution License 1.0', 'http://opensource.org/licenses/CDDL-1.0') - ext.epl1 = license('Eclipse Public License 1.0', 'https://www.eclipse.org/legal/epl-v10.html') - ext.epl2 = license('Eclipse Public License - v 2.0', 'https://www.eclipse.org/legal/epl-v20.html') - ext.mit = license('MIT License', 'http://www.opensource.org/licenses/mit-license.php') - aliases = [ - (apache) : [ - 'Apache 2', - 'Apache 2.0', - 'Apache License 2.0', - 'Apache Software License - Version 2.0', - 'Apache Software License 2.0', - 'Apache v2', - 'Apache-2.0', - 'The Apache License, Version 2.0', - 'The Apache Software License, Version 2.0', - 'The Apache Software License, version 2.0', - license('', 'http://www.apache.org/licenses/LICENSE-2.0.txt') - ], - (bsd) : [ - 'BSD', - 'BSD-2-Clause', - 'BSD licence', - 'The BSD License', - ], - (bsd3Clause) : [ - '3-Clause BSD License', - 'BSD 3-Clause "New" or "Revised" License (BSD-3-Clause)', - 'BSD 3-Clause', - 'BSD Licence 3', - 'BSD License 3', - 'BSD-3-Clause', - 'Eclipse Distribution License - v 1.0', - 'Eclipse Distribution License (New BSD License)', - 'EDL 1.0', - 'New BSD License', - 'The BSD 3-Clause License', - license('', 'http://asm.ow2.org/license.html'), - license('BSD 3-Clause', 'http://www.scala-lang.org/license.html'), - license('BSD 3-clause', 'http://opensource.org/licenses/BSD-3-Clause'), - ], - (cc0) : [ - 'CC0' - ], - (cddl) : [ - 'CDDL 1.0', - 'CDDL 1.1', - 'Common Development and Distribution License (CDDL) v1.0', - 'CDDL + GPLv2 with classpath exception', - ], - (epl1) : [ - 'Eclipse Public License - Version 1.0', - 'Eclipse Public License - v 1.0', - 'Eclipse Public License 1.0 ', - ], - (epl2) : [ - 'Eclipse Public License - v 2.0', - 'Eclipse Public License version 2.0', - 'Eclipse Public License v2.0' - ], - (mit) : [ - 'MIT', - 'The MIT License', - 'The MIT License (MIT)', - 'SPDX-License-Identifier: MIT', - ], - ] - licenses = [ - (group('besu')) : apache, - (group('besu.ethereum.api')) : apache, - (group('besu.consensus')) : apache, - (group('besu.ethereum')) : apache, - (group('besu.metrics')) : apache, - (group('besu.plugins')) : apache, - (group('besu.services')) : apache, - - // JNA is dual licensed under Apache v2.0 or LGPL 2 licenses - // Explicitly declare that we are using the Apache v2.0 license - (group('net.java.dev.jna')) : apache, - - // RocksDB is dual licensed under Apache v2.0 or GPL 2 licenses - // Explicitly declare that we are using the Apache v2.0 license - (group('org.rocksdb')) : apache, - - // Logback is dual licensed under EPL v1.0 or LGPL v2.1 - // Explicitly declare that we are using the EPL v1.0 license - (group('ch.qos.logback')) : epl1, - - // JavaMail, JAXB, Glassfish and Java Servlet are dual licensed under CDDL 1.1 or GPL 2 w/ Classpath Exception - // Explicitly declare that we are using the CDDL 1.1 license - (group('com.sun.mail')) : cddl, - (group('javax.servlet')) : cddl, - (group('javax.xml.bind')) : cddl, - (group('org.glassfish')) : cddl, - - // javax.persistence is dual licensed under EPL 1.0 and EDL 1.0. - // Explicitly declare that we are using the EPL 1.0 license - (group('javax.persistence')) : epl1, - - // jnr-posix is released under a tri EPL v2.0/GPL/LGPL license - 'com.github.jnr:jnr-posix:3.1.15' : epl2, - - // io.netty:netty-tcnative-boringssl-static license markings are not machine readable. - // io.netty:netty-tcnative-classes license markings are not machine readable. - // Explicitly state Apache 2 License for license scanning. - 'io.netty:netty-tcnative-boringssl-static:2.0.46.Final' : apache, - 'io.netty:netty-tcnative-classes:2.0.46.Final' : apache, - - // ANTLR license markings are not all machine readable. - // Explicitly state BSD License for license scanning. - 'org.antlr:antlr-runtime:3.5.2': bsd, - 'org.antlr:ST4:4.3.1': bsd, - ] -} - -task lazyDownloadLicenses() { - if (gradle.startParameter.taskNames.contains('clean') || !file("$rootProject.buildDir/reports/license/license-dependency.xml").exists()) { - dependsOn ':downloadLicenses' - } -} - -task checkLicenses { - description "Verify that all dependencies use accepted licenses." - dependsOn ':lazyDownloadLicenses' - - def bads = "" - doLast { - def xml = new XmlParser().parse("${rootProject.buildDir}/reports/license/license-dependency.xml") - xml.each { license -> - if (!acceptedLicenses.contains((license.@name).toLowerCase())) { - def depStrings = [] - license.dependency.each { depStrings << it.text() } - bads = bads + depStrings + " => ${license.@name} \n" - } - } - if (bads != "") { - throw new GradleException("Some 3rd parties are using licenses not in our accepted licenses list:\n" + - bads + - "If it's a license acceptable for us, add it in the file check-licenses.gradle\n" + - "Be careful, some 3rd parties may accept multiple licenses.\n" + - "In this case, select the one you want to use by changing downloadLicenses.licenses\n" - ) - } - } -} diff --git a/gradle/license-normalizer-bundle.json b/gradle/license-normalizer-bundle.json new file mode 100644 index 00000000000..341b7ab5f62 --- /dev/null +++ b/gradle/license-normalizer-bundle.json @@ -0,0 +1,106 @@ +/** + * Copyright 2018 Evgeny Naumenko + * Copyright Hyperledger Besu contributors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +{ + "bundles" : [ + { "bundleName" : "Apache-1.1", "licenseName" : "Apache Software License, Version 1.1", "licenseUrl" : "https://www.apache.org/licenses/LICENSE-1.1" }, + { "bundleName" : "Apache-2.0", "licenseName" : "Apache License, Version 2.0", "licenseUrl" : "https://www.apache.org/licenses/LICENSE-2.0" }, + { "bundleName" : "0BSD", "licenseName" : "BSD Zero Clause License", "licenseUrl" : "https://opensource.org/licenses/0BSD" }, + { "bundleName" : "BSD-2-Clause", "licenseName" : "The 2-Clause BSD License", "licenseUrl" : "https://opensource.org/licenses/BSD-2-Clause" }, + { "bundleName" : "BSD-3-Clause", "licenseName" : "The 3-Clause BSD License", "licenseUrl" : "https://opensource.org/licenses/BSD-3-Clause" }, + { "bundleName" : "CC0-1.0", "licenseName" : "Creative Commons Legal Code", "licenseUrl" : "https://creativecommons.org/publicdomain/zero/1.0/legalcode" }, + { "bundleName" : "CDDL-1.0", "licenseName" : "COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.0", "licenseUrl" : "https://oss.oracle.com/licenses/CDDL" }, + { "bundleName" : "CDDL-1.1", "licenseName" : "COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.1", "licenseUrl" : "https://oss.oracle.com/licenses/CDDL-1.1" }, + { "bundleName" : "CPL-1.0", "licenseName" : "Common Public License - v 1.0", "licenseUrl" : "https://www.eclipse.org/legal/cpl-v10.html" }, + { "bundleName" : "EPL-1.0", "licenseName" : "Eclipse Public License - v 1.0", "licenseUrl" : "http://www.eclipse.org/legal/epl-v10.html" }, + { "bundleName" : "EPL-2.0", "licenseName" : "Eclipse Public License - v 2.0", "licenseUrl" : "https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.txt" }, + { "bundleName" : "EDL-1.0", "licenseName" : "Eclipse Distribution License - v 1.0", "licenseUrl" : "https://www.eclipse.org/org/documents/edl-v10.html" }, + { "bundleName" : "GPL-1.0", "licenseName" : "GNU GENERAL PUBLIC LICENSE, Version 1", "licenseUrl" : "https://www.gnu.org/licenses/gpl-1.0" }, + { "bundleName" : "GPL-2.0-only", "licenseName" : "GNU GENERAL PUBLIC LICENSE, Version 2", "licenseUrl" : "https://www.gnu.org/licenses/gpl-2.0" }, + { "bundleName" : "GPL-3.0-only", "licenseName" : "GNU GENERAL PUBLIC LICENSE, Version 3", "licenseUrl" : "https://www.gnu.org/licenses/gpl-3.0" }, + { "bundleName" : "GPL-2.0 WITH Classpath-exception-2.0", "licenseName" : "GNU GENERAL PUBLIC LICENSE, Version 2 + Classpath Exception", "licenseUrl" : "https://openjdk.java.net/legal/gplv2+ce.html" }, + { "bundleName" : "LGPL-2.1-only", "licenseName" : "GNU LESSER GENERAL PUBLIC LICENSE, Version 2.1", "licenseUrl" : "https://www.gnu.org/licenses/lgpl-2.1" }, + { "bundleName" : "LGPL-3.0-only", "licenseName" : "GNU LESSER GENERAL PUBLIC LICENSE, Version 3", "licenseUrl" : "https://www.gnu.org/licenses/lgpl-3.0" }, + { "bundleName" : "MIT", "licenseName" : "MIT License", "licenseUrl" : "https://opensource.org/licenses/MIT" }, + { "bundleName" : "MPL-1.1", "licenseName" : "Mozilla Public License Version 1.1", "licenseUrl" : "https://www.mozilla.org/en-US/MPL/1.1" }, + { "bundleName" : "MPL-2.0", "licenseName" : "Mozilla Public License, Version 2.0", "licenseUrl" : "https://www.mozilla.org/en-US/MPL/2.0" }, + { "bundleName" : "Public-Domain", "licenseName" : "PUBLIC DOMAIN", "licenseUrl" : "" } + ], + "transformationRules" : [ + { "bundleName" : "0BSD", "licenseNamePattern" : "BSD Zero Clause License" }, + { "bundleName" : "0BSD", "licenseNamePattern" : "BSD$" }, + { "bundleName" : "0BSD", "licenseNamePattern" : "BSD( |-)clause.*" }, + { "bundleName" : "0BSD", "licenseNamePattern" : "(The )?BSD( |-)(l|L)icen(s|c)e.*" }, + { "bundleName" : "Apache-2.0", "licenseNamePattern" : ".*The Apache Software License, Version 2\\.0.*" }, + { "bundleName" : "Apache-2.0", "licenseNamePattern" : ".*?Apache( |-|_)2.*" }, + { "bundleName" : "Apache-2.0", "licenseNamePattern" : "ASL 2\\.0" }, + { "bundleName" : "Apache-2.0", "licenseNamePattern" : ".*Apache License,?( Version)? 2.*" }, + { "bundleName" : "Apache-2.0", "licenseUrlPattern" : ".*(www\\.)?opensource\\.org/licenses/Apache-2\\.0.*" }, + { "bundleName" : "Apache-2.0", "licenseUrlPattern" : ".*www\\.apache\\.org/licenses/LICENSE-2\\.0.*" }, + { "bundleName" : "LGPL-2.1-only", "licenseUrlPattern" : ".*www\\.gnu\\.org/licenses/old-licenses/lgpl-2\\.1\\.html" }, + { "bundleName" : "Apache-2.0", "licenseFileContentPattern" : ".*Apache License,?( Version)? 2.*" }, + { "bundleName" : "Apache-1.1", "licenseFileContentPattern" : ".*Apache Software License, Version 1\\.1.*" }, + { "bundleName" : "CC0-1.0", "licenseNamePattern" : "CC0(( |-)1(\\.0)?)?" }, + { "bundleName" : "CC0-1.0", "licenseUrlPattern" : ".*(www\\.)?creativecommons\\.org/publicdomain/zero/1\\.0/" }, + { "bundleName" : "CDDL-1.0", "licenseFileContentPattern" : ".*CDDL.*1\\.0" }, + { "bundleName" : "CDDL-1.0", "licenseUrlPattern" : ".*CDDL.*.?1\\.0" }, + { "bundleName" : "CDDL-1.1", "licenseUrlPattern" : ".*CDDL.*.?1\\.1" }, + { "bundleName" : "CDDL-1.0", "licenseNamePattern" : "Common Development and Distribution License( \\(CDDL\\),?)? (version )?(.?\\s?)?1\\.0" }, + { "bundleName" : "CDDL-1.1", "licenseNamePattern" : "Common Development and Distribution License( \\(CDDL\\),?)? (version )?(.?\\s?)?1\\.1" }, + { "bundleName" : "BSD-3-Clause", "licenseNamePattern" : ".*BSD( |-)3-clause.*" }, + { "bundleName" : "BSD-3-Clause", "licenseUrlPattern" : ".*(www\\.)?opensource\\.org/licenses/BSD-3-Clause" }, + { "bundleName" : "BSD-3-Clause", "licenseNamePattern" : ".*?(The )New BSD License.*" }, + { "bundleName" : "BSD-3-Clause", "licenseNamePattern" : ".*?Modified BSD License.*" }, + { "bundleName" : "BSD-2-Clause", "licenseNamePattern" : "BSD( |-)2-clause.*" }, + { "bundleName" : "BSD-2-Clause", "licenseUrlPattern" : ".*(www\\.)?opensource\\.org/licenses/BSD-2-Clause" }, + { "bundleName" : "BSD-2-Clause", "licenseUrlPattern" : ".*(www\\.)?opensource\\.org/licenses/bsd-license(\\.php)?" }, + { "bundleName" : "CDDL-1.0", "licenseNamePattern" : "Common Development and Distribution( License)?" }, + { "bundleName" : "CDDL-1.0", "licenseNamePattern" : "CDDL 1(\\.0)" }, + { "bundleName" : "CDDL-1.1", "licenseNamePattern" : "CDDL 1\\.1" }, + { "bundleName" : "CDDL-1.1", "licenseUrlPattern" : ".*(www\\.).opensource\\.org/licenses/CDDL-1\\.0" }, + { "bundleName" : "EPL-1.0", "licenseNamePattern" : "Eclipse Publish License.*(v|version)\\.?\\s?1(\\.?0)?" }, + { "bundleName" : "EPL-1.0", "licenseNamePattern" : "Eclipse Public License.*(v|version)\\.?\\s?1(\\.?0)?" }, + { "bundleName" : "EPL-2.0", "licenseNamePattern" : "Eclipse Public License.*(v|version)\\.?\\s?2(\\.?0)?" }, + { "bundleName" : "EPL-2.0", "licenseUrlPattern" : ".*(www\\.).opensource\\.org/licenses/EPL-2\\.0" }, + { "bundleName" : "EPL-2.0", "licenseUrlPattern" : ".*http.?://www\\.eclipse\\.org/legal/epl-.?2\\.?0.*" }, + { "bundleName" : "EPL-2.0", "licenseUrlPattern" : ".*http.?://www\\.eclipse\\.org/org.*/epl-.?2\\.?0.*" }, + { "bundleName" : "EPL-2.0", "licenseUrlPattern" : ".*http.?://projects\\.eclipse\\.org/.*/epl-.?2\\.?0.*" }, + { "bundleName" : "EDL-1.0", "licenseNamePattern" : "Eclipse Distribution License.*(v|version)\\.?\\s?1(\\.0)?" }, + { "bundleName" : "EDL-1.0", "licenseNamePattern" : "Eclipse Distribution License \\(New BSD License\\)" }, + { "bundleName" : "EDL-1.0", "licenseUrlPattern" : ".*http.?://(www\\.)?eclipse\\.org/org.*/edl-.?1\\.?0.*" }, + { "bundleName" : "GPL-2.0-only", "licenseUrlPattern" : ".*(www\\.)?opensource\\.org/licenses/GPL-2\\.0" }, + { "bundleName" : "GPL-2.0 WITH Classpath-exception-2.0", "licenseNamePattern" : "GNU General Public License, version 2.*classpath exception" }, + { "bundleName" : "GPL-2.0 WITH Classpath-exception-2.0", "licenseNamePattern" : "GNU General Public License, version 2.*cp?e" }, + { "bundleName" : "GPL-2.0 WITH Classpath-exception-2.0", "licenseNamePattern" : "GNU General Public License, version 2.*, with the classpath exception" }, + { "bundleName" : "GPL-2.0 WITH Classpath-exception-2.0", "licenseNamePattern" : "GPL2 w/ CPE" }, + { "bundleName" : "GPL-3.0-only", "licenseUrlPattern" : ".*(www\\.)?opensource\\.org/licenses/GPL-3\\.0" }, + { "bundleName" : "LGPL-2.1-only", "licenseUrlPattern" : ".*(www\\.)?opensource\\.org/licenses/LGPL-2\\.1" }, + { "bundleName" : "LGPL-2.1-only", "licenseUrlPattern" : ".*(www\\.)?gnu\\.org/licenses(/old-licenses)?/lgpl-2\\.1(\\.(html|txt))?" }, + { "bundleName" : "LGPL-2.1-only", "licenseNamePattern" : "LGPL 2\\.1" }, + { "bundleName" : "LGPL-2.1-only", "licenseNamePattern" : "LGPL.*(v|version)\\.?\\s?2\\.1" }, + { "bundleName" : "LGPL-2.1-only", "licenseUrlPattern" : ".*(www\\.)?repository.jboss.org/licenses/lgpl-2.1\\.txt" }, + { "bundleName" : "LGPL-3.0-only", "licenseUrlPattern" : ".*(www\\.).opensource\\.org/licenses/LGPL-3\\.0" }, + { "bundleName" : "LGPL-3.0-only", "licenseNamePattern" : "lgplv?3" }, + { "bundleName" : "LGPL-3.0-only", "licenseUrlPattern" : ".*(www\\.)?gnu\\.org/licenses(/old-licenses)?/lgpl(-3)?(\\.(html|txt))?" }, + { "bundleName" : "MIT", "licenseNamePattern" : "(The\\s)?MIT(\\slicen(c|s)e)?(\\s\\(MIT\\))?" }, + { "bundleName" : "MIT", "licenseUrlPattern" : ".*(www\\.)?opensource\\.org/licenses/MIT(\\.php)?" }, + { "bundleName" : "MPL-1.1", "licenseNamePattern" : "MPL 1\\.1" }, + { "bundleName" : "MPL-2.0", "licenseUrlPattern" : ".*(www\\.).opensource\\.org/licenses/MPL-2\\.0" }, + { "bundleName" : "Public-Domain", "licenseNamePattern" : "((public)\\s(domain)).*", "transformUrl" : false }, + { "bundleName" : "Public-Domain", "licenseFileContentPattern" : ".*(Creative)\\s(Commons).*", "transformUrl" : false }, + { "bundleName" : "Public-Domain", "licenseFileContentPattern" : ".*((Public)\\s(Domain)).*", "transformUrl" : false } + ] +} \ No newline at end of file diff --git a/gradle/verification-metadata.xml b/gradle/verification-metadata.xml index 8a767fb6093..8265a2810c4 100644 --- a/gradle/verification-metadata.xml +++ b/gradle/verification-metadata.xml @@ -368,6 +368,9 @@ + + + @@ -440,14 +443,17 @@ - - - + + + + + + - - - + + + @@ -616,6 +622,9 @@ + + + @@ -1295,13 +1304,8 @@ - - - - - - - + + @@ -1427,6 +1431,9 @@ + + + @@ -1435,6 +1442,9 @@ + + + @@ -1443,6 +1453,9 @@ + + + @@ -1498,6 +1511,9 @@ + + + @@ -2345,6 +2361,9 @@ + + + @@ -2361,6 +2380,9 @@ + + + @@ -2369,6 +2391,9 @@ + + + @@ -2377,6 +2402,9 @@ + + + @@ -2385,6 +2413,9 @@ + + + @@ -2393,6 +2424,9 @@ + + + @@ -2409,6 +2443,9 @@ + + + @@ -2417,6 +2454,9 @@ + + + @@ -2433,6 +2473,9 @@ + + + @@ -2449,6 +2492,9 @@ + + + @@ -2457,6 +2503,9 @@ + + + @@ -2473,6 +2522,9 @@ + + + @@ -2481,6 +2533,9 @@ + + + @@ -2489,6 +2544,9 @@ + + + @@ -2505,6 +2563,9 @@ + + + @@ -2521,6 +2582,9 @@ + + + @@ -2635,6 +2699,9 @@ + + + @@ -2664,6 +2731,9 @@ + + + @@ -3991,6 +4061,9 @@ + + + @@ -4012,6 +4085,9 @@ + + + @@ -5623,6 +5699,9 @@ + + + @@ -5631,6 +5710,9 @@ + + + @@ -5783,6 +5865,9 @@ + + + @@ -5807,6 +5892,9 @@ + + + @@ -5831,6 +5919,9 @@ + + + @@ -5847,6 +5938,9 @@ + + + @@ -5863,6 +5957,9 @@ + + + @@ -5900,6 +5997,9 @@ + + + @@ -6461,6 +6561,9 @@ + + + @@ -6772,6 +6875,9 @@ + + + diff --git a/settings.gradle b/settings.gradle index 3a1c245a7f6..15a0f8617d6 100644 --- a/settings.gradle +++ b/settings.gradle @@ -16,18 +16,6 @@ pluginManagement { repositories { - /* - * Temporary repository to host the improved version of the - * com.github.hierynomus.license plugin. Can be removed when an - * official version with the fix is release upstream - */ - maven { - url = uri('https://raw.githubusercontent.com/ConsenSys/license-gradle-plugin-fix-artifacts/main/') - content { - includeGroup('com.github.hierynomus.license') - includeGroup('com.hierynomus.gradle.plugins') - } - } gradlePluginPortal() } }