Skip to content

Commit 067f3cb

Browse files
authored
add copyright and license to jar (#7520)
* add copyright and license to jar * add copyright and license to META-INF
1 parent df3c2b9 commit 067f3cb

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

COPYRIGHT

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Copyright (c) 2016-present, RxJava Contributors.
2+
3+
Licensed under the Apache License, Version 2.0 (the "License");
4+
you may not use this file except in compliance with the License.
5+
You may obtain a copy of the License at
6+
7+
http://www.apache.org/licenses/LICENSE-2.0
8+
9+
Unless required by applicable law or agreed to in writing, software
10+
distributed under the License is distributed on an "AS IS" BASIS,
11+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
See the License for the specific language governing permissions and
13+
limitations under the License.

build.gradle

+6
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,12 @@ animalsniffer {
8787
}
8888

8989
jar {
90+
from('.') {
91+
include 'LICENSE'
92+
include 'COPYRIGHT'
93+
into('META-INF/')
94+
}
95+
9096
// Cover for bnd still not supporting MR Jars: https://github.com/bndtools/bnd/issues/2227
9197
bnd('-fixupmessages': '^Classes found in the wrong directory: \\\\{META-INF/versions/9/module-info\\\\.class=module-info}$')
9298
bnd(

0 commit comments

Comments
 (0)