Skip to content

Commit

Permalink
doc: use SPDX license identifiers in pom.xml and in Bundle-License at…
Browse files Browse the repository at this point in the history
…tribute

Fixes hamcrest#264
  • Loading branch information
vlsi committed Apr 29, 2023
1 parent e4b9afd commit 185b1bc
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
6 changes: 4 additions & 2 deletions build.gradle
Expand Up @@ -71,8 +71,10 @@ def pomConfigurationFor(String pomName, String pomDescription) {

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

Expand Down
1 change: 1 addition & 0 deletions hamcrest-core/hamcrest-core.gradle
Expand Up @@ -7,6 +7,7 @@ jar {
attributes 'Implementation-Title': project.name,
'Implementation-Vendor': 'hamcrest.org',
'Implementation-Version': version,
'Bundle-License': 'BSD-3-Clause',
'Automatic-Module-Name': 'org.hamcrest.core.deprecated'
}
}
Expand Down
1 change: 1 addition & 0 deletions hamcrest-library/hamcrest-library.gradle
Expand Up @@ -7,6 +7,7 @@ jar {
attributes 'Implementation-Title': project.name,
'Implementation-Vendor': 'hamcrest.org',
'Implementation-Version': version,
'Bundle-License': 'BSD-3-Clause',
'Automatic-Module-Name': 'org.hamcrest.library.deprecated'
}
}
Expand Down
1 change: 1 addition & 0 deletions hamcrest/hamcrest.gradle
Expand Up @@ -13,6 +13,7 @@ jar {
attributes 'Implementation-Title': project.name,
'Implementation-Vendor': 'hamcrest.org',
'Implementation-Version': version,
'Bundle-License': 'BSD-3-Clause',
'Automatic-Module-Name': 'org.hamcrest'
instruction 'Import-Package', '''javax.xml.namespace; resolution:=optional,
javax.xml.xpath; resolution:=optional,
Expand Down

0 comments on commit 185b1bc

Please sign in to comment.