Skip to content

Commit 7c1b697

Browse files
authored
Include the LICENSE file inside the jars (#415)
* Include the LICENSE file inside the jars * Update CHANGES.md with license update
1 parent ad5c9f2 commit 7c1b697

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

CHANGES.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@
77
* Java 1.8 or newer ([Issue #331](https://github.com/hamcrest/JavaHamcrest/issues/331), [PR #411](https://github.com/hamcrest/JavaHamcrest/issues/411)).
88
* FileMatchersTest simplification ([PR #389](https://github.com/hamcrest/JavaHamcrest/issues/389))
99
* License cleanup ([PR #414](https://github.com/hamcrest/JavaHamcrest/issues/414),
10-
see also [#264](https://github.com/hamcrest/JavaHamcrest/issues/264),
11-
[#355](https://github.com/hamcrest/JavaHamcrest/issues/355), and
10+
[PR #415](https://github.com/hamcrest/JavaHamcrest/issues/415), see also
11+
[#264](https://github.com/hamcrest/JavaHamcrest/issues/264),
12+
[#355](https://github.com/hamcrest/JavaHamcrest/issues/355),
13+
[#396](https://github.com/hamcrest/JavaHamcrest/issues/396),and
1214
[#399](https://github.com/hamcrest/JavaHamcrest/issues/399))
1315

1416
TBD

build.gradle

+7-1
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,12 @@ subprojects {
4949
}
5050
}
5151

52+
jar {
53+
metaInf {
54+
from rootProject.file('LICENSE')
55+
}
56+
}
57+
5258
task sourcesJar(type: Jar) {
5359
archiveClassifier = 'sources'
5460
from sourceSets.main.allSource
@@ -75,7 +81,7 @@ def pomConfigurationFor(String pomName, String pomDescription) {
7581
licenses {
7682
license {
7783
name = 'BSD-3-Clause'
78-
url = 'http://opensource.org/licenses/BSD-3-Clause'
84+
url = 'https://raw.githubusercontent.com/hamcrest/JavaHamcrest/master/LICENSE'
7985
}
8086
}
8187

0 commit comments

Comments
 (0)