Skip to content

Commit

Permalink
#236: improved legal stuff (#244)
Browse files Browse the repository at this point in the history
#244: workaround for maven download mirror disaster and update to 3.6.2
  • Loading branch information
hohwille authored Sep 3, 2019
1 parent 85d599c commit 52c6bfa
Show file tree
Hide file tree
Showing 15 changed files with 111 additions and 63 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
15 changes: 1 addition & 14 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,22 +1,9 @@

Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/

TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION

0. Source Code vs. Software Release

This Apache License applies to the source-code of this software.
However, a release of this software also contains other third-party
components, for which the respective open source license terms apply.
The open-source components of third parties are not from us and must be
licensed directly from the respective third party.
Therefore, in addition to Apache License you also need to agree to our terms
of use:

https://github.com/devonfw/devon-ide/blob/master/documentation/license.asciidoc

1. Definitions.

"License" shall mean the terms and conditions for use, reproduction,
Expand Down Expand Up @@ -199,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2015-2019 Capgemini SE.
Copyright [yyyy] [name of copyright owner]

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
File renamed without changes.
File renamed without changes.
38 changes: 38 additions & 0 deletions TERMS_OF_USE.asciidoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
= Terms of Use

We provide the computer program of `devon-ide`, (hereinafter "Software") free of charge to download. The documentation of this software is licensed under the terms of the Creative Commons License (Attribution-NoDerivatives 4.0 International). The source code of this software itself is licensensed under the terms of the Apache License 2.0. The user shall be responsible to provide the required system environment for using the software. In accordance with the license terms, the user is entitled to use the Software in own / other projects (also commercial projects), provided that the copyright notice will be taken.

The software also requires open-source components of third-parties (providers), for which the respective open source license terms apply. The open-source components of third parties are not from us and must be licensed directly from the respective third party. The rights to use will be granted directly by the respective right owner to the extent of each relevant open source license terms. The user himself can download the desired third party components from the servers of the respective provider and install them in his own environment. As the software (devon-ide) is also capable to download third party components automatically for you, you have to apply to this terms and the licenses of the third party components before using it.

This software integrates the following third party components:

.Third party components
[options="header"]
|=======================
|*Component*|*License*
|https://openjdk.java.net/[OpenJDK] / https://adoptopenjdk.net/[AdoptOpenJDK] (Java)|https://openjdk.java.net/legal/gplv2+ce.html[GPLv2]
|https://maven.apache.org/[Maven] |https://www.apache.org/licenses/LICENSE-2.0[ASL 2.0]
|https://gradle.org/[Gradle] |https://github.com/gradle/gradle/blob/master/LICENSE[ASL 2.0]
|https://github.com/eclipse-ee4j/jsonp[JSON-P] (API and RI) - included in release download package |https://github.com/eclipse-ee4j/jsonp/blob/master/LICENSE.md[EPL 2.0]
|https://code.visualstudio.com/[VS Code] |https://github.com/Microsoft/vscode/blob/master/LICENSE.txt[MIT] (https://code.visualstudio.com/#home-terms[Terms])
|https://github.com/devonfw/extension-pack-vscode[extension-pack-vscode] |https://github.com/devonfw/extension-pack-vscode/blob/master/LICENSE[ASL 2.0]
|https://www.eclipse.org/[Eclipse]|https://www.eclipse.org/legal/epl-2.0/[EPL 2.0]
|https://github.com/devonfw/tools-cobigen[CobiGen] |https://github.com/devonfw/tools-cobigen/blob/master/LICENSE.txt[ASL 2.0]
|https://marketplace.eclipse.org/content/tm-terminal[TM Terminal] |https://www.eclipse.org/legal/epl-2.0/[EPL]
|http://andrei.gmxhome.de/anyedit/[AnyEdit] |https://github.com/iloveeclipse/anyedittools/blob/master/LICENSE.md[EPL 1.0]
|https://checkstyle.org/eclipse-cs/[EclipseCS] |https://github.com/checkstyle/eclipse-cs/blob/master/LICENSE[LGPL 2.1]
|https://marketplace.eclipse.org/content/spotbugs-eclipse-plugin[SpotBugs Eclipse plugin] |http://www.gnu.org/licenses/lgpl.html[LGPL]
|https://www.eclemma.org/[EclEmma] |https://www.eclemma.org/license.html[EPL 1.0]
|https://basti1302.github.io/startexplorer/[StartExplorer] |http://www.wtfpl.net/txt/copying/[WTFPL 2]
|http://myregexp.com/eclipsePlugin.html[regex tester] |https://en.wikipedia.org/wiki/GNU_General_Public_License[GPL]
|https://github.com/m-m-m/eclipse-templatevariables/[eclipse-templatevariables] |https://github.com/m-m-m/eclipse-templatevariables/blob/master/LICENSE.txt[ASL 2.0]
|https://www.genuitec.com/products/devstyle/[DevStyle] |https://www.genuitec.com/products/devstyle/eula/[EULA]
|https://www.sonarlint.org/eclipse/[SonarLint] |https://github.com/SonarSource/sonarlint-eclipse/blob/master/LICENSE.txt[LGPL 3+]
|https://nodejs.org/[Node.js] |https://raw.githubusercontent.com/nodejs/node/master/LICENSE[License]
|https://www.npmjs.com/[NPM] |https://github.com/npm/cli/blob/latest/LICENSE[Artistic License 2.0] (https://www.npmjs.com/policies/terms[Terms])
|https://cli.angular.io/[Angular CLI] (ng) |https://cli.angular.io/license.html[MIT]

|https://github.com/devonfw/devon4j[devon4j] |https://github.com/devonfw/devon4j/blob/develop/LICENSE.txt[ASL 2.0]
|https://github.com/devonfw/devon4ng[devon4ng] |https://github.com/devonfw/devon4ng/blob/master/LICENSE.txt[ASL 2.0]
|=======================

2 changes: 2 additions & 0 deletions documentation/devon-ide-doc.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,5 @@ include::migration-from-devonfw-3.0.0-or-lower.asciidoc[leveloffset=2]
<<<<

include::license.asciidoc[leveloffset=1]

include::TERMS_OF_USE.asciidoc[leveloffset=2]
5 changes: 2 additions & 3 deletions documentation/license.asciidoc
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
= License

This documentation is licensed under http://creativecommons.org/licenses/by-nd/4.0/[Creative Commons License (Attribution-NoDerivatives 4.0 International)].
The source-code of the `devon-ide` software itself is licensed under https://github.com/devonfw/devon-ide/blob/master/LICENSE[Apache Software License 2.0]. However, this software involves several third party components under different open-source licenses.
You therefore have to apply to our https://github.com/devonfw/devon-ide/blob/master/scripts/src/main/resources/TERMS_OF_USE.adoc[terms of use] before using it.
This software is licensed as Open-Source product for free usage including commercial use.
You need to apply to our https://github.com/devonfw/devon-ide/blob/master/TERMS_OF_USE.adoc[terms of use] before using it.

30 changes: 30 additions & 0 deletions documentation/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,34 @@

<!-- run "mvn package" and get the PDF result in target/generated-docs/*.pdf -->

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<id>copy-terms</id>
<phase>process-resources</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/asciidoc</outputDirectory>
<resources>
<resource>
<directory>..</directory>
<includes>
<include>TERMS_OF_USE.asciidoc</include>
</includes>
<filtering>true</filtering>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>

</project>
1 change: 0 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- $Id: pom.xml 6 2013-09-13 10:20:34Z hohwille $ -->
<project xmlns="http://maven.apache.org/POM/4.0.0">
<modelVersion>4.0.0</modelVersion>
<groupId>com.devonfw.tools.ide.dev</groupId>
Expand Down
28 changes: 28 additions & 0 deletions scripts/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,15 @@
<name>${project.artifactId}</name>
<description>Scripts to setup and update the development environment.</description>

<licenses>
<license>
<name>Terms of use for devon-ide</name>
<url>https://github.com/devonfw/devon-ide/blob/master/TERMS_OF_USE.asciidoc</url>
<distribution>repo</distribution>
<comments>This software is licensed as Open-Source product for free usage including commercial use. As it makes use of components of third-parties a combination of multiple licenses applies.</comments>
</license>
</licenses>

<dependencies>
<dependency>
<groupId>${project.groupId}</groupId>
Expand Down Expand Up @@ -56,6 +65,25 @@
<useDefaultDelimiters>false</useDefaultDelimiters>
</configuration>
</execution>
<execution>
<id>copy-terms</id>
<phase>process-resources</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${project.build.outputDirectory}</outputDirectory>
<resources>
<resource>
<directory>..</directory>
<includes>
<include>TERMS_OF_USE.asciidoc</include>
</includes>
<filtering>true</filtering>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
Expand Down
38 changes: 0 additions & 38 deletions scripts/src/main/resources/TERMS_OF_USE.adoc

This file was deleted.

5 changes: 3 additions & 2 deletions scripts/src/main/resources/scripts/command/mvn
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ function doSetup() {
fi
if [ -n "${1}" ] || [ ! -d "${MAVEN_HOME}" ]
then
local software_version=${MAVEN_VERSION:-3.6.1}
local download_url="http://ftp.fau.de/apache/maven/maven-3/${software_version}/binaries/apache-maven-${software_version}-bin.tar.gz"
local software_version=${MAVEN_VERSION:-3.6.2}
local mirror="https://archive.apache.org/dist/maven/maven-3/"
local download_url="${mirror}/${software_version}/binaries/apache-maven-${software_version}-bin.tar.gz"
doInstall "${MAVEN_HOME}" "${download_url}" "maven" "${software_version}" "" "-"
fi
if [ -n "${1}" ]
Expand Down
12 changes: 7 additions & 5 deletions scripts/src/main/resources/scripts/functions
Original file line number Diff line number Diff line change
Expand Up @@ -215,11 +215,13 @@ function doLicenseAgreement() {
doLogo
echo
echo "Welcome to devon-ide!"
echo "This product and its 3rd party components is open-source software."
echo "However, before using it you need to read and accept the license agreement and terms of use."
echo "This product and its 3rd party components is open-source software and can be used free (also commercially)."
echo "However, before using it you need to read and accept the terms of use with all involved licenses agreements."
echo "With confirming you take notice and agree that there is no warranty for using this product and its 3rd party components."
echo "You are solely responsible for all risk implied by using this software."
echo "You will be able to find it in one of the following locations:"
echo "${DEVON_IDE_HOME}/TERMS_OF_USE.adoc"
echo "https://github.com/devonfw/devon-ide/wiki/license"
echo "${DEVON_IDE_HOME}/TERMS_OF_USE.asciidoc"
echo "https://github.com/devonfw/devon-ide/blob/master/TERMS_OF_USE.asciidoc"
echo
if doIsBatch
then
Expand All @@ -230,7 +232,7 @@ function doLicenseAgreement() {
read -r -p "Do you accept these terms of use and all license agreements? (yes/no) " answer
case "${answer}" in
yes)
echo -e "On $(date +"%Y-%m-%d") at $(date +"%H:%M:%S") you accepted the devon-ide terms of use.\nhttps://github.com/devonfw/devon-ide/wiki/license" > "${DEVON_HOME_DIR}/.devon/.license.agreement"
echo -e "On $(date +"%Y-%m-%d") at $(date +"%H:%M:%S") you accepted the devon-ide terms of use.\nhttps://github.com/devonfw/devon-ide/blob/master/TERMS_OF_USE.asciidoc" > "${DEVON_HOME_DIR}/.devon/.license.agreement"
break;;
no)
exit 255;;
Expand Down

0 comments on commit 52c6bfa

Please sign in to comment.