Skip to content

Commit 878e95f

Browse files
committed
Add recognition of MPL 2.0 (#31226)
This commit adds the ability for the dependencies info check to recognize version 2.0 of the Mozilla Public License.
1 parent 359ee5c commit 878e95f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

buildSrc/src/main/groovy/org/elasticsearch/gradle/DependenciesInfoTask.groovy

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,8 @@ SOFTWARE\\.
245245

246246
final String MOZILLA_1_1 = "Mozilla Public License.*Version 1.1"
247247

248+
final String MOZILLA_2_0 = "Mozilla\\s*Public\\s*License\\s*Version\\s*2\\.0"
249+
248250
switch (licenseText) {
249251
case ~/.*${APACHE_2_0}.*/:
250252
spdx = 'Apache-2.0'
@@ -273,6 +275,9 @@ SOFTWARE\\.
273275
case ~/.*${MOZILLA_1_1}.*/:
274276
spdx = 'MPL-1.1'
275277
break
278+
case ~/.*${MOZILLA_2_0}.*/:
279+
spdx = 'MPL-2.0'
280+
break
276281
default:
277282
break
278283
}

0 commit comments

Comments
 (0)