Skip to content

Commit

Permalink
add copyright and license to jar (#7520)
Browse files Browse the repository at this point in the history
* add copyright and license to jar

* add copyright and license to META-INF
  • Loading branch information
tobi5775 committed May 22, 2023
1 parent df3c2b9 commit 067f3cb
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
13 changes: 13 additions & 0 deletions COPYRIGHT
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Copyright (c) 2016-present, RxJava Contributors.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
6 changes: 6 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,12 @@ animalsniffer {
}

jar {
from('.') {
include 'LICENSE'
include 'COPYRIGHT'
into('META-INF/')
}

// Cover for bnd still not supporting MR Jars: https://github.com/bndtools/bnd/issues/2227
bnd('-fixupmessages': '^Classes found in the wrong directory: \\\\{META-INF/versions/9/module-info\\\\.class=module-info}$')
bnd(
Expand Down

0 comments on commit 067f3cb

Please sign in to comment.