Skip to content

Commit ee189a0

Browse files
artembilangaryrussell
authored andcommitted
INT-4481: Add licence and notice to each artifact
JIRA: https://jira.spring.io/browse/INT-4481 * Now each generated jar has `licence.txt` and `notice.txt` entries in its `META-INF` * Copy `notice.txt` from the Spring Framework with an appropriate polishing
1 parent 8894599 commit ee189a0

File tree

2 files changed

+19
-21
lines changed

2 files changed

+19
-21
lines changed

build.gradle

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,13 @@ subprojects { subproject ->
292292
'Automatic-Module-Name': subproject.name.replace('-', '.') // for Jigsaw
293293
)
294294
}
295+
296+
from("${rootProject.projectDir}/src/dist") {
297+
include "license.txt"
298+
include "notice.txt"
299+
into "META-INF"
300+
expand(copyright: new Date().format("yyyy"), version: project.version)
301+
}
295302
}
296303

297304
check.dependsOn javadoc
@@ -1002,6 +1009,7 @@ task distZip(type: Zip, dependsOn: [docsZip, schemaZip]) {
10021009
include 'license.txt'
10031010
include 'notice.txt'
10041011
into "${baseDir}"
1012+
expand(copyright: new Date().format("yyyy"), version: project.version)
10051013
}
10061014

10071015
from(zipTree(docsZip.archivePath)) {

src/dist/notice.txt

Lines changed: 11 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,11 @@
1-
========================================================================
2-
== NOTICE file corresponding to section 4 d of the Apache License, ==
3-
== Version 2.0, in this case for the Spring Integration distribution. ==
4-
========================================================================
5-
6-
This product includes software developed by
7-
the Apache Software Foundation (http://www.apache.org).
8-
9-
The end-user documentation included with a redistribution, if any,
10-
must include the following acknowledgement:
11-
12-
"This product includes software developed by the Spring Framework
13-
Project (http://www.springframework.org)."
14-
15-
Alternatively, this acknowledgement may appear in the software itself,
16-
if and wherever such third-party acknowledgements normally appear.
17-
18-
The names "Spring", "Spring Framework", and "Spring Integration" must
19-
not be used to endorse or promote products derived from this software
20-
without prior written permission. For written permission, please contact
21-
1+
Spring Integration Framework ${version}
2+
Copyright (c) 2009-${copyright} Pivotal, Inc.
3+
4+
This product is licensed to you under the Apache License, Version 2.0
5+
(the "License"). You may not use this product except in compliance with
6+
the License.
7+
8+
This product may include a number of subcomponents with separate
9+
copyright notices and license terms. Your use of the source code for
10+
these subcomponents is subject to the terms and conditions of the
11+
subcomponent's license, as noted in the license.txt file.

0 commit comments

Comments
 (0)