aboutcode-org / scancode-toolkit

:mag: ScanCode detects licenses, copyrights, dependencies by "scanning code" ... to discover and inventory open source and third-party packages used in your code. Sponsored by NLnet project https://nlnet.nl/project/vulnerabilitydatabase, the Google Summer of Code, Azure credits, nexB and others generous sponsors!
https://aboutcode.org/scancode/
2.15k stars 553 forks source link

Enhance Request for Java's JCP-based license #1510

Open reversi-fun opened 5 years ago

reversi-fun commented 5 years ago

Description

Since Java 10, the java library is changing from .jar format to .mod format, the license is also changing. Popular licenses for the java library are:

Projects that collect a large number of license names for each artifact ID, such as Black Duck, are at an increased risk of incorrectly displaying Java library license names, such as the latest version of the license that replaces Apache-2.0.

The license to be revised in the Java JCP process is Based on several types of templates, various variations are made. In my analysis, I think that there are probably six types of templates. However, the appropriate number of classifications depends on the expressive power of scanCode-ToolKit's RULE-engine.

It is my essential request to transform the habit of using the name of the work as the license name to the template name of the license text. As a means of doing this, rather than adding a lot of .RULE files, I would like to improve the matching ability of the RULE engine to suppress the explosion of .Rule files.

System configuration

The above original text can be downloaded from the link below.

pombredanne commented 5 years ago

@reversi-fun excellent! I am on hand to help in anyway shape or form I can. Note also that we have a chat at https://gitter.im/aboutcode-org/discuss

reversi-fun commented 5 years ago

My directed graph will be useful for classifying JCP-based licenses.

If you open the following file in a browser and search for "/ JSR", you may be able to estimate the distance of the goal.

license-JSR-templates https://github.com/reversi-fun/license_doc_similality1/blob/master/data/lic_graph.sfdp.svg

reversi-fun commented 5 years ago

Sorry, If my broken English breaks SPDX-members mood, I want you to compensate. https://github.com/spdx/license-list-XML/issues/847

reversi-fun commented 5 years ago

I could not get approval. https://github.com/spdx/license-list-XML/issues/847

pombredanne commented 5 years ago

@reversi-fun not a problem. I can still accept these licenses here alright even if they are not approved at SPDX.

pombredanne commented 5 years ago

@reversi-fun so which license should I add to ScanCode?

reversi-fun commented 5 years ago

@pombredanne,Thanks for the response. My enhancement request is to add:

In addition, the rules engine needs to be improved in its ability to classify similarity.

in-fke commented 1 year ago

So if these SPDX Identifiers are not introduced, what do you guys take as a "proxy" replacement? CDDL-1.1?