Comments (3)
Technically speaking, MetadataStore.load(folders: Iterable<File>)
loads and merges multiple files.
You could register VerifyLicenseCompatibilityTask
task and configure VerifyLicenseCompatibilityTask.metadata
file collection with several files, so the verification task should combine the information.
Have you tried it?
However the setup indicates the task has to be configured for each modules
That sounds like a convention plugin to me.
In other words, something like
plugins {
id("com.github.vlsi.license-gather.verify")
}
// registers verification tasks for common types of projects.
// For instance, in case of java-library, and java-application it could verify runtimeClasspath
// there might be an extension for handing known cases
// For example
licenseVerifications {
allow(SpdxLicense.EPL_2_0) {
// The message would be displayed, so the verification results are easier to understand
because("ISSUE-23: EPL-2.0 is fine in our projects")
}
allow(new SimpleLicense("The W3C License", uri("http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/java-binding.zip"))) {
because("ISSUE-42: John Smith decided the license is OK")
}
// License category
// See https://www.apache.org/legal/resolved.html
allow(AsfLicenseCategory.A) {
because("The ASF category A is allowed")
}
reject(AsfLicenseCategory.X) {
because("The ASF category X is forbidden")
}
}
WDYT?
from vlsi-release-plugins.
Technically speaking,
MetadataStore.load(folders: Iterable<File>)
loads and merges multiple files.
You could registerVerifyLicenseCompatibilityTask
task and configureVerifyLicenseCompatibilityTask.metadata
file collection with several files, so the verification task should combine the information.
Have you tried it?
I'll give it a try when I have access to my laptop.
However the setup indicates the task has to be configured for each modules
That sounds like a convention plugin to me.
That's indeed a possibility, but it requires to setup the project this way (with plugin conventions). But I saw some plugins that do most of this stuff automatically like io.cloudflight.license-gradle-plugin
, which somehow pushed me to to discuss about multi-module.
from vlsi-release-plugins.
I mean I could release both com.github.vlsi.license-gather.base
and com.github.vlsi.license-gather.verify
plugins.
from vlsi-release-plugins.
Related Issues (20)
- Add quotes for javap command in jandex plugin
- UnknownTaskException: Task with name 'check' not found HOT 1
- checksum-dependency-plugin cannot download pgp keys HOT 4
- XmlSlurper is too strict when reading POM files for license report HOT 1
- Problems when publishing calcite to the private maven nexus repo HOT 5
- Add license check HOT 9
- license-gather: Handling of multi-license dependencies HOT 2
- Sigstore: signing and verification
- [license-gather-plugin] Ability to handle multiple licensed artefacts HOT 1
- [licence-gather-plugin] Upon failure to find license, indicate the dependency HOT 5
- Upgrade grgit HOT 2
- [Jandex plugin] processJandexIndex delete resources from build dir HOT 8
- [stage-vote-release-plugin] Execution failed for task ':releaseRepository' due to missing nexus.txt file HOT 5
- [Gradle Extensions Plugin] Typed property delegates for required properties HOT 2
- After upgrade to gradle 8.x com.github.vlsi.jandex.JandexWork fails with CIRCULAR REFERENCE ArrayIndexOutOfBoundsException HOT 1
- [stage-vote-release-plugin] signingKey instead of secretKeyRingFile HOT 5
- Gradle 8.1.1: Querying the mapped value of flatmap(provider(task 'distTar', class org.gradle.api.tasks.bundling.Tar)) before task ':release:distTar' has completed is not supported HOT 1
- Dependency Dashboard
- Jandax fail when using java modularity (JPMS) HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vlsi-release-plugins.