@@ -66,37 +66,12 @@ public class LicenseHeadersTask extends DefaultTask {
66
66
}
67
67
68
68
// BSD 4-clause stuff (is disallowed below)
69
+ // we keep this here, in case someone adds BSD code for some reason, it should never be allowed.
69
70
substringMatcher(licenseFamilyCategory : " BSD4 " ,
70
71
licenseFamilyName : " Original BSD License (with advertising clause)" ) {
71
72
pattern(substring : " All advertising materials" )
72
73
}
73
74
74
- // BSD-like stuff
75
- substringMatcher(licenseFamilyCategory : " BSD " ,
76
- licenseFamilyName : " Modified BSD License" ) {
77
- // brics automaton
78
- pattern(substring : " Copyright (c) 2001-2009 Anders Moeller" )
79
- // snowball
80
- pattern(substring : " Copyright (c) 2001, Dr Martin Porter" )
81
- // UMASS kstem
82
- pattern(substring : " THIS SOFTWARE IS PROVIDED BY UNIVERSITY OF MASSACHUSETTS AND OTHER CONTRIBUTORS" )
83
- // Egothor
84
- pattern(substring : " Egothor Software License version 1.00" )
85
- // JaSpell
86
- pattern(substring : " Copyright (c) 2005 Bruno Martins" )
87
- // d3.js
88
- pattern(substring : " THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS" )
89
- // highlight.js
90
- pattern(substring : " THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS" )
91
- }
92
-
93
- // MIT-like
94
- substringMatcher(licenseFamilyCategory : " MIT " ,
95
- licenseFamilyName : " The MIT License" ) {
96
- // ICU license
97
- pattern(substring : " Permission is hereby granted, free of charge, to any person obtaining a copy" )
98
- }
99
-
100
75
// Apache
101
76
substringMatcher(licenseFamilyCategory : " AL " ,
102
77
licenseFamilyName : " Apache" ) {
@@ -111,20 +86,12 @@ public class LicenseHeadersTask extends DefaultTask {
111
86
// Generated resources
112
87
substringMatcher(licenseFamilyCategory : " GEN " ,
113
88
licenseFamilyName : " Generated" ) {
114
- // svg files generated by gnuplot
115
- pattern(substring : " Produced by GNUPLOT" )
116
- // snowball stemmers generated by snowball compiler
117
- pattern(substring : " This file was generated automatically by the Snowball to Java compiler" )
118
- // uima tests generated by JCasGen
119
- pattern(substring : " First created by JCasGen" )
120
89
// parsers generated by antlr
121
90
pattern(substring : " ANTLR GENERATED CODE" )
122
91
}
123
92
124
93
// approved categories
125
94
approvedLicense(familyName : " Apache" )
126
- approvedLicense(familyName : " The MIT License" )
127
- approvedLicense(familyName : " Modified BSD License" )
128
95
approvedLicense(familyName : " Generated" )
129
96
}
130
97
0 commit comments