Skip to content

Commit

Permalink
Add new license detection rules
Browse files Browse the repository at this point in the history
These are misc. rules, mostly seen in Maven POMs
Also deprecate a few LGPL-3.0 rules that were incorrect and
replace by LGPL-2.1 rules

Signed-off-by: Philippe Ombredanne <[email protected]>
  • Loading branch information
pombredanne committed Nov 5, 2023
1 parent 91a1ede commit 3ba94c2
Show file tree
Hide file tree
Showing 62 changed files with 815 additions and 4 deletions.
15 changes: 15 additions & 0 deletions src/licensedcode/data/rules/apache-2.0_1302.RULE
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
license_expression: apache-2.0
is_license_tag: yes
ignorable_urls:
- http://www.apache.org/licenses/LICENSE-2.0.txt
---

<licenses>
<license>
<name>Apache License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
<comments>A business-friendly OSS license</comments>
</license>
</licenses>
13 changes: 13 additions & 0 deletions src/licensedcode/data/rules/apache-2.0_1303.RULE
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
license_expression: apache-2.0
is_license_tag: yes
ignorable_urls:
- http://www.apache.org/licenses/LICENSE-2.0.txt
---

<license>
<name>Apache License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
<comments>A business-friendly OSS license</comments>
</license>
11 changes: 11 additions & 0 deletions src/licensedcode/data/rules/apache-2.0_1304.RULE
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
license_expression: apache-2.0
is_license_tag: yes
relevance: 100
ignorable_urls:
- http://www.apache.org/licenses/LICENSE-2.0.txt
---

<license>
<name>Apache License, Version 2.0
<url>http://www.apache.org/licenses/LICENSE-2.0.txt
11 changes: 11 additions & 0 deletions src/licensedcode/data/rules/bsd-new_1333.RULE
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
license_expression: bsd-new
is_license_tag: yes
relevance: 100
ignorable_urls:
- https://github.com/googleapis/gax-java/blob/master/LICENSE
---

license
name: BSD
url: {{ https://github.com/googleapis/gax-java/blob/master/LICENSE }}
13 changes: 13 additions & 0 deletions src/licensedcode/data/rules/bsd-new_1334.RULE
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
license_expression: bsd-new
is_license_tag: yes
ignorable_urls:
- https://github.com/googleapis/gax-java/blob/master/LICENSE
---

<licenses>
<license>
<name>BSD</name>
{{ <url>https://github.com/googleapis/gax-java/blob/master/LICENSE</url> }}
</license>
</licenses>
12 changes: 12 additions & 0 deletions src/licensedcode/data/rules/bsd-new_1335.RULE
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
license_expression: bsd-new
is_license_tag: yes
relevance: 100
ignorable_urls:
- https://github.com/googleapis/gax-java/blob/master/LICENSE
---

<licenses>
<license>
<name>BSD</name>
{{ <url>https://github.com/googleapis/gax-java/blob/master/LICENSE</url> }}
12 changes: 12 additions & 0 deletions src/licensedcode/data/rules/bsd-new_1336.RULE
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
license_expression: bsd-new
is_license_tag: yes
relevance: 100
ignorable_urls:
- https://github.com/googleapis/gax-java/blob/master/LICENSE
---

<licenses>
<license>
<name>BSD
{{ <url>https://github.com/googleapis/gax-java/blob/master/LICENSE }}
10 changes: 10 additions & 0 deletions src/licensedcode/data/rules/bsd-new_1337.RULE
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
license_expression: bsd-new
is_license_tag: yes
relevance: 100
ignorable_urls:
- https://github.com/googleapis/gax-java/blob/master/LICENSE
---

<name>BSD
{{ <url>https://github.com/googleapis/gax-java/blob/master/LICENSE }}
14 changes: 14 additions & 0 deletions src/licensedcode/data/rules/bsd-new_1338.RULE
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
license_expression: bsd-new
is_license_tag: yes
ignorable_urls:
- http://www.eclipse.org/org/documents/edl-v10.php
---

<licenses>
<license>
<name>Eclipse Distribution License - v 1.0</name>
<url>http://www.eclipse.org/org/documents/edl-v10.php</url>
<distribution>repo</distribution>
</license>
</licenses>
12 changes: 12 additions & 0 deletions src/licensedcode/data/rules/bsd-new_1339.RULE
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
license_expression: bsd-new
is_license_tag: yes
ignorable_urls:
- http://www.eclipse.org/org/documents/edl-v10.php
---

<license>
<name>Eclipse Distribution License - v 1.0</name>
<url>http://www.eclipse.org/org/documents/edl-v10.php</url>
<distribution>repo</distribution>
</license>
10 changes: 10 additions & 0 deletions src/licensedcode/data/rules/bsd-new_1340.RULE
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
license_expression: bsd-new
is_license_tag: yes
ignorable_urls:
- http://www.eclipse.org/org/documents/edl-v10.php
---

<license>
<name>Eclipse Distribution License - v 1.0
<url>http://www.eclipse.org/org/documents/edl-v10.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
license_expression: epl-2.0 OR gpl-2.0 WITH classpath-exception-2.0
is_license_tag: yes
ignorable_urls:
- https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.txt
- https://www.gnu.org/software/classpath/license.html
---

<licenses>
<license>
<name>Eclipse Public License v. 2.0</name>
<url>https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.txt</url>
<distribution>repo</distribution>
</license>
<license>
<name>GNU General Public License, version 2 with the GNU Classpath Exception</name>
<url>https://www.gnu.org/software/classpath/license.html</url>
<distribution>repo</distribution>
</license>
</licenses>
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
license_expression: epl-2.0 OR gpl-2.0 WITH classpath-exception-2.0
is_license_tag: yes
ignorable_urls:
- https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.txt
- https://www.gnu.org/software/classpath/license.html
---

<license>
<name>Eclipse Public License v. 2.0</name>
<url>https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.txt</url>
<distribution>repo</distribution>
</license>
<license>
<name>GNU General Public License, version 2 with the GNU Classpath Exception</name>
<url>https://www.gnu.org/software/classpath/license.html</url>
<distribution>repo</distribution>
</license>
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
license_expression: epl-2.0 OR gpl-2.0 WITH classpath-exception-2.0
is_license_tag: yes
ignorable_urls:
- https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.txt
- https://www.gnu.org/software/classpath/license.html
---

<license>
<name>Eclipse Public License v. 2.0</name>
<url>https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.txt</url>
</license>
<license>
<name>GNU General Public License, version 2 with the GNU Classpath Exception</name>
<url>https://www.gnu.org/software/classpath/license.html</url>
</license>
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
license_expression: epl-2.0 OR gpl-2.0 WITH classpath-exception-2.0
is_license_tag: yes
ignorable_urls:
- https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.txt
- https://www.gnu.org/software/classpath/license.html
---

<license>
<name>Eclipse Public License v. 2.0
<url>https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.txt
<license>
<name>GNU General Public License, version 2 with the GNU Classpath Exception
<url>https://www.gnu.org/software/classpath/license.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
license_expression: (epl-2.0 OR gpl-2.0 WITH classpath-exception-2.0) AND bsd-new
is_license_tag: yes
ignorable_urls:
- http://www.eclipse.org/legal/epl-2.0
- http://www.eclipse.org/org/documents/edl-v10.php
- https://www.gnu.org/software/classpath/license.html
---

<licenses>
<license>
<name>EPL 2.0</name>
<url>http://www.eclipse.org/legal/epl-2.0</url>
<distribution>repo</distribution>
</license>
<license>
<name>GPL2 w/ CPE</name>
<url>https://www.gnu.org/software/classpath/license.html</url>
<distribution>repo</distribution>
</license>
<license>
<name>EDL 1.0</name>
<url>http://www.eclipse.org/org/documents/edl-v10.php</url>
<distribution>repo</distribution>
</license>
</licenses>
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
license_expression: (epl-2.0 OR gpl-2.0 WITH classpath-exception-2.0) AND bsd-new
is_license_tag: yes
ignorable_urls:
- http://www.eclipse.org/legal/epl-2.0
- http://www.eclipse.org/org/documents/edl-v10.php
- https://www.gnu.org/software/classpath/license.html
---

<license>
<name>EPL 2.0</name>
<url>http://www.eclipse.org/legal/epl-2.0</url>
<distribution>repo</distribution>
</license>
<license>
<name>GPL2 w/ CPE</name>
<url>https://www.gnu.org/software/classpath/license.html</url>
<distribution>repo</distribution>
</license>
<license>
<name>EDL 1.0</name>
<url>http://www.eclipse.org/org/documents/edl-v10.php</url>
<distribution>repo</distribution>
</license>
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
license_expression: (epl-2.0 OR gpl-2.0 WITH classpath-exception-2.0) AND bsd-new
is_license_tag: yes
ignorable_urls:
- http://www.eclipse.org/legal/epl-2.0
- http://www.eclipse.org/org/documents/edl-v10.php
- https://www.gnu.org/software/classpath/license.html
---

<license>
<name>EPL 2.0</name>
<url>http://www.eclipse.org/legal/epl-2.0</url>
</license>
<license>
<name>GPL2 w/ CPE</name>
<url>https://www.gnu.org/software/classpath/license.html</url>
</license>
<license>
<name>EDL 1.0</name>
<url>http://www.eclipse.org/org/documents/edl-v10.php</url>
</license>
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
license_expression: (epl-2.0 OR gpl-2.0 WITH classpath-exception-2.0) AND bsd-new
is_license_tag: yes
ignorable_urls:
- http://www.eclipse.org/legal/epl-2.0
- http://www.eclipse.org/org/documents/edl-v10.php
- https://www.gnu.org/software/classpath/license.html
---

<license>
<name>EPL 2.0
<url>http://www.eclipse.org/legal/epl-2.0
<license>
<name>GPL2 w/ CPE
<url>https://www.gnu.org/software/classpath/license.html
<license>
<name>EDL 1.0
<url>http://www.eclipse.org/org/documents/edl-v10.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
license_expression: gpl-2.0 WITH classpath-exception-2.0 OR cddl-1.1
is_license_tag: yes
ignorable_urls:
- https://glassfish.dev.java.net/nonav/public/CDDL+GPL.html
---

<license>
<name>CDDL + GPLv2 with classpath exception</name>
<url>https://glassfish.dev.java.net/nonav/public/CDDL+GPL.html</url>
<distribution>repo</distribution>
<comments>A business-friendly OSS license</comments>
</license>
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
license_expression: gpl-2.0 WITH classpath-exception-2.0 OR cddl-1.1
is_license_tag: yes
ignorable_urls:
- https://glassfish.dev.java.net/nonav/public/CDDL+GPL.html
---

<license>
<name>CDDL + GPLv2 with classpath exception</name>
<url>https://glassfish.dev.java.net/nonav/public/CDDL+GPL.html</url>
<license>
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
license_expression: gpl-2.0 WITH classpath-exception-2.0 OR cddl-1.1
is_license_tag: yes
relevance: 100
ignorable_urls:
- https://glassfish.dev.java.net/nonav/public/CDDL+GPL.html
---

<license>
<name>CDDL + GPLv2 with classpath exception
<url>https://glassfish.dev.java.net/nonav/public/CDDL+GPL.html
11 changes: 11 additions & 0 deletions src/licensedcode/data/rules/lgpl-2.1-plus_475.RULE
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
license_expression: lgpl-2.1-plus
is_license_tag: yes
ignorable_urls:
- http://www.gnu.org/licenses/lgpl.txt
---

<licenses>
<license>
<name>GNU Lesser General Public Licence</name>
<url>http://www.gnu.org/licenses/lgpl.txt</url>
11 changes: 11 additions & 0 deletions src/licensedcode/data/rules/lgpl-2.1-plus_476.RULE
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
license_expression: lgpl-2.1-plus
is_license_tag: yes
relevance: 100
ignorable_urls:
- http://www.gnu.org/licenses/lgpl.txt
---

<license>
<name>GNU Lesser General Public Licence
<url>http://www.gnu.org/licenses/lgpl.txt
Loading

0 comments on commit 3ba94c2

Please sign in to comment.