Skip to content

Commit

Permalink
Add setup for Pluto licenses verification (ISO, 5.32)
Browse files Browse the repository at this point in the history
  • Loading branch information
ewelinagr committed Dec 30, 2024
1 parent b599644 commit ac4f9d0
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 0 deletions.
28 changes: 28 additions & 0 deletions projects/pluto/allowed-licenses.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"allowedLicenses": [
{
"moduleLicense": "Apache License, Version 2.0"
},
{
"moduleLicense": "MIT License"
},
{
"moduleLicense": "MIT-0"
},
{
"moduleLicense": "Eclipse Public License - v 1.0"
},
{
"moduleLicense": "Eclipse Public License - v 2.0"
},
{
"moduleLicense": "Creative Commons Legal Code"
},
{
"moduleLicense": "Bouncy Castle Licence"
},
{
"moduleLicense": "PUBLIC DOMAIN"
}
]
}
7 changes: 7 additions & 0 deletions projects/pluto/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ plugins {
id "org.owasp.dependencycheck" version '8.2.1'
id 'io.spring.dependency-management' version '1.1.4'
id "com.diffplug.spotless" version "6.25.0"
id 'com.github.jk1.dependency-license-report' version '2.9'
}

group 'nl.fairspace'
Expand Down Expand Up @@ -98,3 +99,9 @@ dependencyManagement {
mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
}
}

import com.github.jk1.license.filter.LicenseBundleNormalizer
licenseReport {
filters = [new LicenseBundleNormalizer(bundlePath: "$projectDir/license-normalizer-bundle.json")]
allowedLicensesFile = new File("$projectDir/allowed-licenses.json")
}
10 changes: 10 additions & 0 deletions projects/pluto/license-normalizer-bundle.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"bundles" : [
{ "bundleName" : "apache2", "licenseName" : "Apache License, Version 2.0", "licenseUrl" : "http://www.apache.org/licenses/LICENSE-2.0" }
],
"transformationRules" : [
{ "bundleName" : "apache2", "licenseNamePattern" : ".*The Apache Software License, Version 2.0.*" },
{ "bundleName" : "apache2", "licenseNamePattern" : "Apache 2" },
{ "bundleName" : "apache2", "licenseNamePattern" : "Apache License 2.0" }
]
}

0 comments on commit ac4f9d0

Please sign in to comment.