Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FINERACT-266 - Handling License issues for both source and binary distributions #254

Merged
merged 1 commit into from Dec 5, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
127 changes: 101 additions & 26 deletions LICENSE
Expand Up @@ -203,63 +203,138 @@

******************************************

For API & System Architecture Documentation Apache Fineract includes following css and js packages with separate copyright notices and license terms.
======================================
LICENSES FOR INCLUDED DEPENDENCIES
======================================

This product bundles normalize v1.1.1 and v2.1.0, copyright Nicolas Gallagher and
Jonathan Neal, which is available under a MIT license.
For details, see licenses/normalize.MIT.
All the source code for the Apache Fineract project is released under the
license above. Additionally, the Apache Fineract source and binary distribution includes a number of third-party files that are required in
order to the software to function. Unless noted below, these jars
and resource files are also released under the ASF license above.

==================================================
*The exceptions for source release are as follows:
==================================================

For API & System Architecture Documentation Apache Fineract includes following css and js packages.

This product bundles normalize v1.1.1 and v2.1.0, copyright Nicolas Gallagher and Jonathan Neal, which is available under a MIT license.
For details, see licenses/source/normalize.MIT

This product bundles Modernizr v2.6.2, which is available under a MIT license.
For details, see licenses/modernizr.MIT.
For details, see licenses/source/modernizr.MIT

This product bundles filesaver, copyright Eli Grey,
which is available under a MIT license.
For details, see licenses/filesaver.MIT.
This product bundles filesaver, copyright Eli Grey, which is available under a MIT license.
For details, see licenses/source/filesaver.MIT

This product bundles Glyphicons Halflings Regular, copyright Jan Kovarik,
which is available under a MIT license.
For details, see licenses/glyphicons.MIT.
For details, see licenses/source/glyphicons.MIT

This product bundles jszip, copyright Stuart Knightley,
David Duponchel, Franz Buchinger and Ant�nio Afonso,
which is available under a MIT license.
For details, see licenses/jszip.MIT.
David Duponchel, Franz Buchinger and Ant�nio Afonso, which is available under a MIT license.
For details, see licenses/source/jszip.MIT

This product bundles jQuery v1.7, v1.7.1, v1.9.1, v1.10.2, copyright jQuery Foundation, Inc.
which is available under a MIT license.
For details, see licenses/jQuery.MIT.
This product bundles jQuery v1.7, v1.7.1, v1.9.1, v1.10.2, copyright jQuery Foundation, Inc. which is available under a MIT license.
For details, see licenses/source/jQuery.MIT

This product bundles Respond v1.1.0, copyright Scott Jehl,
which is available under a MIT license.
For details, see licenses/respond.MIT.
For details, see licenses/source/respond.MIT

This product bundles matchMedia polyfill, copyright Scott Jehl,
which is available under a MIT license.
For details, see licenses/polyfill.MIT.
For details, see licenses/polyfill.MIT

This product bundles HTML5Shiv v3.6.2pre, copyright Alexander Farkas,
which is available under a MIT license.
For details, see licenses/html5shiv.MIT.
For details, see licenses/source/html5shiv.MIT

This product bundles UglifyJS copyright Mihai Bazon,
which available under a BSD license.
For details, see licenses/uglify.BSD.
For details, see licenses/source/uglify.BSD

This product bundles sizzle copyright jQuery Foundation and other contributors,
which is available under a MIT license.
For details, see licenses/sizzle.MIT.
This product bundles sizzle copyright jQuery Foundation and other contributors, which is available under a MIT license.
For details, see licenses/source/sizzle.MIT

This product bundles some parts of es5-shim, copyright Kristopher Michael Kowal and contributors, which is available under a MIT license.
For details, see licenses/es5shim.MIT.
For details, see licenses/source/es5shim.MIT

This product bundles toc v0.1.2, copyright Greg Allen,
which is available under a MIT license.
For details, see licenses/toc.MIT.
For details, see licenses/source/toc.MIT

This product bundles livejs Version 4, copyright Martin Kool and Q42,
which is available under a MIT license.
For details, see licenses/livejs.MIT.
For details, see licenses/source/livejs.MIT

This product bundles HTML5 Boilerplate, which is under a MIT license.
For details, see licenses/h5bp.MIT.
For details, see licenses/source/h5bp.MIT.

==================================================
*The exceptions for binary release are as follows:
==================================================
This product bundles AOP Alliance v1.0, which is available under a Public Domain license. For details, see licenses/binary/Aopa.PL

This product bundles ASM Core v3.1, which is available under a BSD license.
For details, see licenses/binary/Asm.BSD

This product bundles JavaMail API(compat) v1.5.0-b01,
which is available under a CDDL v1.0 license.
For details, see licenses/binary/Javamail.CDDL

This product bundles AspectJ Runtime v1.8.2, Copyright (c) 1999-2001 Xerox Corporation, 2002 Palo Alto Research Center, Incorporated (PARC), which is available under a EPL v1.0 license.
For details, see licenses/binary/Aspectrt.EPL

This product bundles AspectJ Weaver v1.8.2, Copyright (c) 2002 Palo Alto Research Center, Incorporated (PARC), which is available under a EPL v1.0 license. For details, see licenses/binary/Aspectweaver.EPL

This product bundles IText(A Free Java PDF Library) v2.1.7, Copyright 2007 Bruno Lowagie, which is available under a MPL v1.1 license.
For details, see licenses/binary/IText.MPL

This product bundles DOM4J, Copyright 2001-2005 (C) MetaStuff, Ltd., which is available under a BSD license.
For details, see licenses/binary/Dom4J.BSD

This product bundles JDBC driver for MySQL and Drizzle v1.3, Copyright (c) 2009-2013, Marcus Eriksson which is available under a BSD license.
For details, see licenses/binary/Drizzle.BSD

This product bundles Ical4J v1.0.4, Copyright (c) 2012, Ben Fortuna,
which is available under a BSD license.
For details, see licenses/binary/Ical4J.BSD

This product bundles Jersey Core v1.17, Copyright (c) 2010-2012 Oracle and/or its affiliates, which is available under a CDDL 1.1 license.
For details, see licenses/binary/Jersey.CDDL

This product bundles Jersey Json v1.17, Copyright (c) 2010-2012 Oracle and/or its affiliates, which is available under a CDDL 1.1 license.
For details, see licenses/binary/Jersey.CDDL

This product bundles Jersey Multipart v1.17, Copyright (c) 2010-2011 Oracle and/or its affiliates, which is available under a CDDL 1.1 license.
For details, see licenses/binary/Jersey.CDDL

This product bundles Jersey Server v1.17, Copyright (c) 2010-2011 Oracle and/or its affiliates, which is available under a CDDL 1.1 license.
For details, see licenses/binary/Jersey.CDDL

This product bundles Jersey Servlet v1.17, Copyright (c) 2010-2011 Oracle and/or its affiliates, which is available under a CDDL 1.1 license.
For details, see licenses/binary/Jersey.CDDL

This product bundles Jersey Spring v1.17, Copyright (c) 2010-2011 Oracle and/or its affiliates, which is available under a CDDL 1.1 license.
For details, see licenses/binary/Jersey.CDDL

This product bundles Logback Classic Module v1.1.2, Copyright (C) 1999-2012, QOS.ch. All rights reserved, which is available under a EPL v1.0 license.
For details, see licenses/binary/Logback.EPL

This product bundles Logback Core Module v1.1.2, Copyright (C) 1999-2012, QOS.ch. All rights reserved, which is available under a EPL v1.0 license.
For details, see licenses/binary/Logback.EPL

This product bundles MIME Streaming Extension v1.6, Copyright (c) 1997-2010 Oracle and/or its affiliates. All rights reserved., which is available under a CDDL v1.1 license.
For details, see licenses/binary/Mimepull.CDDL

This product bundles JUnit v3.8.1 created by Erich Gamma and Kent Beck which is available under a CPL v1.0 license.
For details, see licenses/binary/Junit.CPL

This product bundles SLF4J API Module v1.7.7 opyright (c) 2004-2013 QOS.ch All rights reserved., which is available under a MIT license.
For details, see licenses/binary/Slf4j.MIT

This product bundles Backport Util Concurrent v3.1 written by Dawid Kurzyniec,
which is avilable under Public Domain license. For details see licenses/binary/Backport.PL

******************************************
53 changes: 53 additions & 0 deletions NOTICE
Expand Up @@ -3,3 +3,56 @@ Copyright 2008-2016 The Apache Software Foundation

This product includes software developed by The Apache Software
Foundation (http://www.apache.org/).

Apache Fineract - notice for binary distribution
==========================================
Apache Fineract includes JavaMail API(compat) v1.5.0-b01.
Copyright (c) 1997-2013 Oracle and/or its affiliates. All rights reserved.
Fineract elects to include this software in this distribution under the
CDDL license. You can obtain a copy of the License at:
https://glassfish.java.net/public/CDDL+GPL.html

Apache Fineract includes all Jersey libraries (Jersey Core v1.17, Jersey Json v1.17, Jersey Multipart v1.17, Jersey Server v1.17,Jersey Servlet v1.17,
Jersey Spring v1.17). Copyright (c) 2010-2011 Oracle and/or its affiliates. All rights reserved. Fineract elects to include this software in this distribution under the CDDL license. You can obtain a copy of the License at:
https://glassfish.java.net/public/CDDL+GPL.html

Apache Fineract includes Logback Classic Module v1.1.2 and Logback Core Module v1.1.2, Copyright (C) 1999-2012, QOS.ch. All rights reserved. Fineract elects to include this software in this distribution under the
EPL license. You can obtain a copy of the License at:
http://www.eclipse.org/legal/epl-v10.html

Apache Fineract includes MIME Streaming Extension v1.6, CCopyright (c) 1997-2010 Oracle and/or its affiliates. All rights reserved.
Fineract elects to include this software in this distribution under the
CDDL license. You can obtain a copy of the License at:
https://glassfish.java.net/public/CDDL+GPL_1_1.html

Apache Fineract includes JUnit v3.8.1 created by Erich Gamma and Kent Beck.
Fineract elects to include this software in this distribution under the
CPL license. You can obtain a copy of the License at:
https://opensource.org/licenses/cpl1.0.txt

Apache Fineract includes Log4j Implemented Over SLF4J. Fineract elects to include this software in this distribution under the Apache license. You can obtain a copy of the License at:
http://apache.org/licenses/LICENSE-2.0

Apache Fineract includes AspectJ Runtime v1.8.2, Copyright (c) 1999-2001 Xerox Corporation, 2002 Palo Alto Research Center, Incorporated (PARC) and AspectJ Weaver v1.8.2 Copyright (c) 2002 Palo Alto Research Center, Incorporated (PARC). The library information is available at
(https://eclipse.org/aspectj/)

Apache Fineract includes IText(A Free Java PDF Library) v2.1.7 library, Copyright 2007 Bruno Lowagie. The library information is available at (http://developers.itextpdf.com/itext-java)

=====================
Apache OpenJPA NOTICE

OpenJPA includes software developed by the SERP project
Copyright (c) 2002-2006, A. Abram White. All rights reserved.

OpenJPA includes the persistence and orm schemas from the JPA specifications.
Copyright 2005-2014 Sun Microsystems, Inc. All rights reserved.

OpenJPA includes the persistence and orm schemas from the JPA specifications.
Copyright 2005-2009 Sun Microsystems, Inc. All rights reserved.
OpenJPA elects to include this software in this distribution under the
CDDL license. You can obtain a copy of the License at:
https://glassfish.dev.java.net/public/CDDL+GPL.html
The source code is available at:
https://glassfish.dev.java.net/source/browse/glassfish/

OpenJPA includes software written by Miroslav Nachev
29 changes: 28 additions & 1 deletion fineract-provider/build.gradle
Expand Up @@ -154,7 +154,25 @@ configurations {
providedRuntime // needed for Spring Boot executable WAR
providedCompile
compile() {
exclude module: 'hibernate-entitymanager'
exclude module: 'hibernate-entitymanager'
exclude module: 'hibernate-validator'
exclude module: 'activation'
exclude module: 'bcmail-jdk14'
exclude module: 'bcprov-jdk14'
exclude module: 'bctsp-jdk14'
exclude module: 'bval-core'
exclude module: 'org.apache.bval.bundle'
exclude module: 'bval-jsr303'
exclude module: 'c3p0'
exclude module: 'stax-api'
exclude module: 'jaxb-api'
exclude module: 'jaxb-impl'
exclude module: 'jboss-logging'
exclude module: 'itext-rtf'
exclude module: 'classworlds'
exclude module: 'jcl-over-slf4j'
exclude module: 'jul-to-slf4j'
exclude module: 'serp'
}
runtime
all*.exclude group: 'commons-logging'
Expand Down Expand Up @@ -223,6 +241,15 @@ compileJava{
}

war {
from('../licenses') { // notice the parens
into "WEB-INF/licenses/" // no leading slash
}
from('../LICENSE') { // notice the parens
into "WEB-INF/" // no leading slash
}
from('../NOTICE') { // notice the parens
into "WEB-INF/" // no leading slash
}
war.finalizedBy(bootRepackage)
}

Expand Down
6 changes: 3 additions & 3 deletions fineract-provider/dependencies.gradle
Expand Up @@ -43,8 +43,8 @@ dependencies {
[group: 'org.springframework.security.oauth', name: 'spring-security-oauth2', version: springOauthVersion],

[group: 'org.apache.openjpa', name:'openjpa-all', version:'2.4.1'],
[group: 'org.apache.openjpa', name:'openjpa-maven-plugin', version:'2.4.1'],
[group: 'javax.ws.rs', name: 'jsr311-api', version: '1.1.1'],
//[group: 'org.apache.openjpa', name:'openjpa-maven-plugin', version:'2.4.1'],
//[group: 'javax.ws.rs', name: 'jsr311-api', version: '1.1.1'],
[group: 'com.sun.jersey', name: 'jersey-core', version: jerseyVersion],
[group: 'com.sun.jersey', name: 'jersey-servlet', version: jerseyVersion],
[group: 'com.sun.jersey', name: 'jersey-server', version: jerseyVersion],
Expand Down Expand Up @@ -77,7 +77,7 @@ dependencies {
[group: 'org.apache.poi',name: 'poi-ooxml-schemas', version: '3.9'],

[group: 'com.lowagie', name: 'itext', version: '2.1.7'],
[group: 'com.lowagie', name: 'itext-rtf', version: '2.1.7'],
//[group: 'com.lowagie', name: 'itext-rtf', version: '2.1.7'],
[group: 'org.mnode.ical4j', name: 'ical4j', version: '1.0.4'],
[group: 'com.googlecode.flyway', name: 'flyway-core', version: '2.1.1'],
[group: 'org.quartz-scheduler', name: 'quartz', version: '2.1.7'],
Expand Down
Expand Up @@ -19,6 +19,7 @@
package org.apache.fineract.batch.service;

import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;

Expand All @@ -44,8 +45,6 @@

import com.google.gson.Gson;

import edu.emory.mathcs.backport.java.util.Collections;

/**
* Implementation for {@link BatchApiService} to iterate through all the
* incoming requests and obtain the appropriate CommandStrategy from
Expand Down
7 changes: 7 additions & 0 deletions licenses/binary/Aopa.PL
@@ -0,0 +1,7 @@
The person or persons who have associated work with this document (the "Dedicator" or "Certifier") hereby either (a) certifies that, to the best of his knowledge, the work of authorship identified is in the public domain of the country from which the work is published, or (b) hereby dedicates whatever copyright the dedicators holds in the work of authorship identified below (the "Work") to the public domain. A certifier, moreover, dedicates any copyright interest he may have in the associated work, and for these purposes, is described as a "dedicator" below.

A certifier has taken reasonable steps to verify the copyright status of this work. Certifier recognizes that his good faith efforts may not shield him from liability if in fact the work certified is not in the public domain.

Dedicator makes this dedication for the benefit of the public at large and to the detriment of the Dedicator's heirs and successors. Dedicator intends this dedication to be an overt act of relinquishment in perpetuity of all present and future rights under copyright law, whether vested or contingent, in the Work. Dedicator understands that such relinquishment of all rights includes the relinquishment of all rights to enforce (by lawsuit or otherwise) those copyrights in the Work.

Dedicator recognizes that, once placed in the public domain, the Work may be freely reproduced, distributed, transmitted, used, modified, built upon, or otherwise exploited by anyone for any purpose, commercial or non-commercial, and in any way, including by methods that have not yet been invented or conceived.
29 changes: 29 additions & 0 deletions licenses/binary/Asm.BSD
@@ -0,0 +1,29 @@
Copyright (c) 2000-2011 INRIA, France Telecom
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:

1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.

3. Neither the name of the copyright holders nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
THE POSSIBILITY OF SUCH DAMAGE.