Skip to content

Commit

Permalink
Updated headers and license information. (#642)
Browse files Browse the repository at this point in the history
Switched to use com.mycila.license-maven-plugin for the updating.
Appended DevInstructions.md with usage instructions.
  • Loading branch information
Ansku authored Aug 30, 2023
1 parent a301f6e commit e6dd915
Show file tree
Hide file tree
Showing 695 changed files with 7,659 additions and 5,268 deletions.
31 changes: 30 additions & 1 deletion DevInstructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,4 +142,33 @@ EGit:
1. right-click project > *Team* > *Remote* > *Configure Push To Upstream...*
*-* Push URIs: <code> ssh://<i>yourusername</i>@dev.vaadin.com:29418/charts.git </code>
*-* Ref mappings: <code> HEAD:refs/for/master </code>
1. right-click project > *Team* > *Push to Upstream*
1. right-click project > *Team* > *Push to Upstream*

Maintenance
=====

Updating copyright year range
-----
1. update <code>currentYear</code> in the parent module's <code>pom.xml</code> as the first thing every year
1. run <code>license:format</code> for the parent module to update the year range in all the Java files of all the modules (based on <code>addon/src/license/header.txt</code> and <code>currentYear</code>)
1. check that only <code>.java</code> files got updated and update the exclusion list for <code>com.mycila.license-maven-plugin</code> in the parent module's <code>pom.xml</code> if needed
1. update the header of <code>addon/src/main/resources/com/vaadin/addon/charts/Widgetset.gwt.xml</code> manually (the plugin is configured to ignore all <code>.xml</code> files)

Updating license name or version
-----
Java class license headers:
1. update the files <code>header.txt</code> and <code>license.txt</code> in both <code>addon/src/license/</code> and <code>compatibility-addon/src/license/</code> (duplicated because both jars need to contain the files)
1. run <code>license:format</code> for the parent module to update the license information and the year range in all the Java files of all the modules (based on <code>addon/src/license/header.txt</code> and <code>currentYear</code> in the parent module's <code>pom.xml</code>)
1. check that only <code>.java</code> files got updated and update the exclusion list for <code>com.mycila.license-maven-plugin</code> in the parent module's <code>pom.xml</code> if needed
1. update the header of <code>addon/src/main/resources/com/vaadin/addon/charts/Widgetset.gwt.xml</code> manually (the plugin is configured to ignore all <code>.xml</code> files)

Other places where the licensing information should be updated:
1. <code>LICENSE.txt</code>
1. <code>AdVaaLicen</code> tag for <code>org.apache.maven.plugins.maven-jar-plugin</code> in both <code>addon/pom.xml</code> and <code>compatibility-addon/pom.xml</code>
1. Vaadin Charts documentation for [Vaadin 8](https://vaadin.com/docs/v8/charts/charts-overview) and [Vaadin 7](https://vaadin.com/docs/v7/charts/charts-overview)
1. general add-on licensing documentation ([V8](https://vaadin.com/docs/v8/framework/addons) and [V7](https://vaadin.com/docs/v7/framework/addons))

Removal should be considered, but update while they still exist:
1. <code>license.html</code> and <code>README.txt</code> in <code>directory/assembly/</code>
1. <code>documentation/charts-overview.asciidoc</code>
1. <code>documentation/java-api/charts-installing.asciidoc</code>
1,410 changes: 1,136 additions & 274 deletions LICENSE.txt

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Vaadin Charts is a UI component add-on for Vaadin Framework 7+ which provides me

## License & Author

This Add-on is distributed under [Commercial Vaadin Add-on License version 3](http://vaadin.com/license/cval-3) (CVALv3). For license terms, see LICENSE.txt.
This Add-on is distributed under [Vaadin Commercial License and Service Terms version 2](https://vaadin.com/commercial-license-and-service-terms) (VCL-2). For license terms, see LICENSE.txt.

Vaadin Charts is written by Vaadin Ltd.

Expand Down
15 changes: 1 addition & 14 deletions addon/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,6 @@
</resources>

<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>license-maven-plugin</artifactId>
<version>1.19</version>
<configuration>
<licenseName>cval3</licenseName>
<licenseResolver>file://${basedir}/src/license</licenseResolver>
<includes>
<include>**/main/**/*.java</include>
</includes>
</configuration>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
Expand All @@ -62,7 +49,7 @@
<Vaadin-Package-Version>1</Vaadin-Package-Version>

<!-- Add-on specific fields to update -->
<AdVaaLicen>cval</AdVaaLicen>
<AdVaaLicen>VCL-2</AdVaaLicen>
<AdVaaName>vaadin-charts</AdVaaName>
<AdVaaPkg>com.vaadin.addon.charts.client</AdVaaPkg>

Expand Down
8 changes: 0 additions & 8 deletions addon/src/license/cval3/header.txt

This file was deleted.

8 changes: 8 additions & 0 deletions addon/src/license/header.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Vaadin Charts Addon

Copyright (C) 2012-${year} Vaadin Ltd

This program is available under Vaadin Commercial License and Service Terms.

See <https://vaadin.com/commercial-license-and-service-terms> for the full
license.
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
This Add-on component ("Software") to Vaadin Framework is distributed
under the terms of Commercial Vaadin Add-On License version 3.0
("CVALv3") included as LICENSE in this software package.
under the Vaadin Commercial License and Service Terms
("VCL-2") included as LICENSE in this software package.

You must either accept the terms of the above mentioned license agreement
or delete the Software immediately.
or delete the Software immediately.

This software may also be available for download under alternative
licenses at http://vaadin.com/directory.


licenses at http://vaadin.com/directory.
1 change: 0 additions & 1 deletion addon/src/license/licenses.properties

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,21 +1,14 @@
package com.vaadin.addon.charts;

/*-
* #%L
/*
* Vaadin Charts Addon
* %%
* Copyright (C) 2012 - 2019 Vaadin Ltd
* %%
* This program is available under Commercial Vaadin Add-On License 3.0
* (CVALv3).
*
* See the file licensing.txt distributed with this software for more
* information about licensing.
*
* You should have received a copy of the CVALv3 along with this program.
* If not, see <https://vaadin.com/license/cval-3>.
* #L%
*
* Copyright (C) 2012-2023 Vaadin Ltd
*
* This program is available under Vaadin Commercial License and Service Terms.
*
* See <https://vaadin.com/commercial-license-and-service-terms> for the full
* license.
*/
package com.vaadin.addon.charts;

import com.vaadin.addon.charts.model.Axis;
import com.vaadin.ui.Component;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,21 +1,14 @@
package com.vaadin.addon.charts;

/*-
* #%L
/*
* Vaadin Charts Addon
* %%
* Copyright (C) 2012 - 2019 Vaadin Ltd
* %%
* This program is available under Commercial Vaadin Add-On License 3.0
* (CVALv3).
*
* See the file licensing.txt distributed with this software for more
* information about licensing.
*
* You should have received a copy of the CVALv3 along with this program.
* If not, see <https://vaadin.com/license/cval-3>.
* #L%
*
* Copyright (C) 2012-2023 Vaadin Ltd
*
* This program is available under Vaadin Commercial License and Service Terms.
*
* See <https://vaadin.com/commercial-license-and-service-terms> for the full
* license.
*/
package com.vaadin.addon.charts;

import com.vaadin.addon.charts.model.Series;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,21 +1,14 @@
package com.vaadin.addon.charts;

/*-
* #%L
/*
* Vaadin Charts Addon
* %%
* Copyright (C) 2012 - 2019 Vaadin Ltd
* %%
* This program is available under Commercial Vaadin Add-On License 3.0
* (CVALv3).
*
* See the file licensing.txt distributed with this software for more
* information about licensing.
*
* You should have received a copy of the CVALv3 along with this program.
* If not, see <https://vaadin.com/license/cval-3>.
* #L%
*
* Copyright (C) 2012-2023 Vaadin Ltd
*
* This program is available under Vaadin Commercial License and Service Terms.
*
* See <https://vaadin.com/commercial-license-and-service-terms> for the full
* license.
*/
package com.vaadin.addon.charts;

import com.vaadin.addon.charts.model.Series;
import com.vaadin.ui.Component;
Expand Down
25 changes: 9 additions & 16 deletions addon/src/main/java/com/vaadin/addon/charts/Chart.java
Original file line number Diff line number Diff line change
@@ -1,21 +1,14 @@
package com.vaadin.addon.charts;

/*-
* #%L
/*
* Vaadin Charts Addon
* %%
* Copyright (C) 2012 - 2019 Vaadin Ltd
* %%
* This program is available under Commercial Vaadin Add-On License 3.0
* (CVALv3).
*
* See the file licensing.txt distributed with this software for more
* information about licensing.
*
* You should have received a copy of the CVALv3 along with this program.
* If not, see <https://vaadin.com/license/cval-3>.
* #L%
*
* Copyright (C) 2012-2023 Vaadin Ltd
*
* This program is available under Vaadin Commercial License and Service Terms.
*
* See <https://vaadin.com/commercial-license-and-service-terms> for the full
* license.
*/
package com.vaadin.addon.charts;

import static com.vaadin.addon.charts.util.ChartSerialization.toJSON;

Expand Down
25 changes: 9 additions & 16 deletions addon/src/main/java/com/vaadin/addon/charts/ChartClickEvent.java
Original file line number Diff line number Diff line change
@@ -1,21 +1,14 @@
package com.vaadin.addon.charts;

/*-
* #%L
/*
* Vaadin Charts Addon
* %%
* Copyright (C) 2012 - 2019 Vaadin Ltd
* %%
* This program is available under Commercial Vaadin Add-On License 3.0
* (CVALv3).
*
* See the file licensing.txt distributed with this software for more
* information about licensing.
*
* You should have received a copy of the CVALv3 along with this program.
* If not, see <https://vaadin.com/license/cval-3>.
* #L%
*
* Copyright (C) 2012-2023 Vaadin Ltd
*
* This program is available under Vaadin Commercial License and Service Terms.
*
* See <https://vaadin.com/commercial-license-and-service-terms> for the full
* license.
*/
package com.vaadin.addon.charts;

import com.vaadin.addon.charts.shared.MouseEventDetails;
import com.vaadin.addon.charts.shared.MouseEventDetails.MouseButton;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,21 +1,14 @@
package com.vaadin.addon.charts;

/*-
* #%L
/*
* Vaadin Charts Addon
* %%
* Copyright (C) 2012 - 2019 Vaadin Ltd
* %%
* This program is available under Commercial Vaadin Add-On License 3.0
* (CVALv3).
*
* See the file licensing.txt distributed with this software for more
* information about licensing.
*
* You should have received a copy of the CVALv3 along with this program.
* If not, see <https://vaadin.com/license/cval-3>.
* #L%
*
* Copyright (C) 2012-2023 Vaadin Ltd
*
* This program is available under Vaadin Commercial License and Service Terms.
*
* See <https://vaadin.com/commercial-license-and-service-terms> for the full
* license.
*/
package com.vaadin.addon.charts;

import com.vaadin.event.SerializableEventListener;

Expand Down
25 changes: 9 additions & 16 deletions addon/src/main/java/com/vaadin/addon/charts/ChartDrillupEvent.java
Original file line number Diff line number Diff line change
@@ -1,21 +1,14 @@
package com.vaadin.addon.charts;

/*-
* #%L
/*
* Vaadin Charts Addon
* %%
* Copyright (C) 2012 - 2019 Vaadin Ltd
* %%
* This program is available under Commercial Vaadin Add-On License 3.0
* (CVALv3).
*
* See the file licensing.txt distributed with this software for more
* information about licensing.
*
* You should have received a copy of the CVALv3 along with this program.
* If not, see <https://vaadin.com/license/cval-3>.
* #L%
*
* Copyright (C) 2012-2023 Vaadin Ltd
*
* This program is available under Vaadin Commercial License and Service Terms.
*
* See <https://vaadin.com/commercial-license-and-service-terms> for the full
* license.
*/
package com.vaadin.addon.charts;

import com.vaadin.ui.Component;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,21 +1,14 @@
package com.vaadin.addon.charts;

/*-
* #%L
/*
* Vaadin Charts Addon
* %%
* Copyright (C) 2012 - 2019 Vaadin Ltd
* %%
* This program is available under Commercial Vaadin Add-On License 3.0
* (CVALv3).
*
* See the file licensing.txt distributed with this software for more
* information about licensing.
*
* You should have received a copy of the CVALv3 along with this program.
* If not, see <https://vaadin.com/license/cval-3>.
* #L%
*
* Copyright (C) 2012-2023 Vaadin Ltd
*
* This program is available under Vaadin Commercial License and Service Terms.
*
* See <https://vaadin.com/commercial-license-and-service-terms> for the full
* license.
*/
package com.vaadin.addon.charts;

import com.vaadin.event.SerializableEventListener;

Expand Down
25 changes: 9 additions & 16 deletions addon/src/main/java/com/vaadin/addon/charts/ChartOptions.java
Original file line number Diff line number Diff line change
@@ -1,21 +1,14 @@
package com.vaadin.addon.charts;

/*-
* #%L
/*
* Vaadin Charts Addon
* %%
* Copyright (C) 2012 - 2019 Vaadin Ltd
* %%
* This program is available under Commercial Vaadin Add-On License 3.0
* (CVALv3).
*
* See the file licensing.txt distributed with this software for more
* information about licensing.
*
* You should have received a copy of the CVALv3 along with this program.
* If not, see <https://vaadin.com/license/cval-3>.
* #L%
*
* Copyright (C) 2012-2023 Vaadin Ltd
*
* This program is available under Vaadin Commercial License and Service Terms.
*
* See <https://vaadin.com/commercial-license-and-service-terms> for the full
* license.
*/
package com.vaadin.addon.charts;

import static com.vaadin.addon.charts.util.ChartSerialization.toJSON;

Expand Down
Loading

0 comments on commit e6dd915

Please sign in to comment.