Skip to content

Commit

Permalink
Include the LICENSE file inside the jars (#415)
Browse files Browse the repository at this point in the history
* Include the LICENSE file inside the jars

* Update CHANGES.md with license update
  • Loading branch information
tumbarumba authored Jul 24, 2024
1 parent ad5c9f2 commit 7c1b697
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
6 changes: 4 additions & 2 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@
* Java 1.8 or newer ([Issue #331](https://github.com/hamcrest/JavaHamcrest/issues/331), [PR #411](https://github.com/hamcrest/JavaHamcrest/issues/411)).
* FileMatchersTest simplification ([PR #389](https://github.com/hamcrest/JavaHamcrest/issues/389))
* License cleanup ([PR #414](https://github.com/hamcrest/JavaHamcrest/issues/414),
see also [#264](https://github.com/hamcrest/JavaHamcrest/issues/264),
[#355](https://github.com/hamcrest/JavaHamcrest/issues/355), and
[PR #415](https://github.com/hamcrest/JavaHamcrest/issues/415), see also
[#264](https://github.com/hamcrest/JavaHamcrest/issues/264),
[#355](https://github.com/hamcrest/JavaHamcrest/issues/355),
[#396](https://github.com/hamcrest/JavaHamcrest/issues/396),and
[#399](https://github.com/hamcrest/JavaHamcrest/issues/399))

TBD
Expand Down
8 changes: 7 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ subprojects {
}
}

jar {
metaInf {
from rootProject.file('LICENSE')
}
}

task sourcesJar(type: Jar) {
archiveClassifier = 'sources'
from sourceSets.main.allSource
Expand All @@ -75,7 +81,7 @@ def pomConfigurationFor(String pomName, String pomDescription) {
licenses {
license {
name = 'BSD-3-Clause'
url = 'http://opensource.org/licenses/BSD-3-Clause'
url = 'https://raw.githubusercontent.com/hamcrest/JavaHamcrest/master/LICENSE'
}
}

Expand Down

0 comments on commit 7c1b697

Please sign in to comment.