Skip to content

Commit 1bd1ef6

Browse files
committed
doc: use SPDX license identifiers in pom.xml and in Bundle-License attribute
Fixes hamcrest#264 See also hamcrest#396
1 parent e4b9afd commit 1bd1ef6

File tree

4 files changed

+7
-2
lines changed

4 files changed

+7
-2
lines changed

build.gradle

+4-2
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,10 @@ def pomConfigurationFor(String pomName, String pomDescription) {
7171

7272
licenses {
7373
license {
74-
name = 'BSD License 3'
75-
url = 'http://opensource.org/licenses/BSD-3-Clause'
74+
name = 'BSD-3-Clause'
75+
// The file includes copyright text, so URL like http://opensource.org/licenses/BSD-3-Clause can't
76+
// be used here.
77+
url = 'https://raw.githubusercontent.com/hamcrest/JavaHamcrest/e4b9afdc2624bbebef3c7c739e6074ecd8a6c06e/LICENSE.txt'
7678
}
7779
}
7880

hamcrest-core/hamcrest-core.gradle

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ jar {
77
attributes 'Implementation-Title': project.name,
88
'Implementation-Vendor': 'hamcrest.org',
99
'Implementation-Version': version,
10+
'Bundle-License': 'BSD-3-Clause',
1011
'Automatic-Module-Name': 'org.hamcrest.core.deprecated'
1112
}
1213
}

hamcrest-library/hamcrest-library.gradle

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ jar {
77
attributes 'Implementation-Title': project.name,
88
'Implementation-Vendor': 'hamcrest.org',
99
'Implementation-Version': version,
10+
'Bundle-License': 'BSD-3-Clause',
1011
'Automatic-Module-Name': 'org.hamcrest.library.deprecated'
1112
}
1213
}

hamcrest/hamcrest.gradle

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ jar {
1313
attributes 'Implementation-Title': project.name,
1414
'Implementation-Vendor': 'hamcrest.org',
1515
'Implementation-Version': version,
16+
'Bundle-License': 'BSD-3-Clause',
1617
'Automatic-Module-Name': 'org.hamcrest'
1718
instruction 'Import-Package', '''javax.xml.namespace; resolution:=optional,
1819
javax.xml.xpath; resolution:=optional,

0 commit comments

Comments
 (0)