diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..36b89e1 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,18 @@ +language: java + +sudo: false + +jdk: + - openjdk8 + +install: + - export JAVA_TOOL_OPTIONS="-Dfile.encoding=UTF8" + - mvn install -DskipTests + +script: + - export JAVA_TOOL_OPTIONS="-Dfile.encoding=UTF8" + - mvn verify + +cache: + directories: + - $HOME/.m2 diff --git a/LICENSE b/LICENSE index d645695..0f28414 100644 --- a/LICENSE +++ b/LICENSE @@ -176,18 +176,7 @@ END OF TERMS AND CONDITIONS - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] + Copyright 2019, Stichting Mapcode Foundation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/NOTICE b/NOTICE index b61ad67..cf8c202 100644 --- a/NOTICE +++ b/NOTICE @@ -1,4 +1,4 @@ Original C library created by Pieter Geelen. Work on Java version of the Mapcode library by Rijn Buve (original port by Matthew Lowden). -Copyright (C) 2014-2015 Stichting Mapcode Foundation (http://www.mapcode.com) +Copyright (C) 2014-2019, Stichting Mapcode Foundation (http://www.mapcode.com) diff --git a/README.md b/README.md index 432b9ed..60a8e11 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,18 @@ -# Mapcode Library for Java - Example Code +# Example Project for Mapcode Library for Java -Copyright (C) 2014 Stichting Mapcode Foundation (http://www.mapcode.com) +[![Build Status](https://img.shields.io/travis/mapcode-foundation/mapcode-java-example.svg?maxAge=3600&branch=master)](https://travis-ci.org/mapcode-foundation/mapcode-java-example) +[![License](http://img.shields.io/badge/license-APACHE2-blue.svg)]() ----- +**Copyright (C) 2014-2019, Stichting Mapcode Foundation (http://www.mapcode.com)** This Java project contains example code of how to use the Mapcode Library. +First, make sure you have the correct file encoding (UTF8) set for Java on your system. +Include this environment variable in your `.profile` or `.bashrc`: + + export JAVA_TOOL_OPTIONS="-Dfile.encoding=UTF8" + To run the examples, simply execute: mvn clean install @@ -17,32 +23,6 @@ repository, for example by building it locally. For more information, see: http://www.mapcode.com. -## Release Notes - -* 2.0.0.0 - 2.0.1.0 - - Updated to new Mapcode Java Library version 2.0.x. - -* 1.50.0.0 - 1.50.3.0 - - Updated to new Mapcode Java Library versions. - -* 1.40.2 - - Updated to Mapcode Java Library version 1.40.2. - -* 1.40 - - Added high precision Mapcodes. - -* 1.33.2 - - Clean-up of release 1.33.2. Added release notes. - -* 1.33.1 - - First release of Java library for MapCodes. - ## License Licensed under the Apache License, Version 2.0 (the "License"); @@ -59,4 +39,3 @@ limitations under the License. Original C version created by Pieter Geelen. Work on Java version of the Mapcode library by Rijn Buve and Matthew Lowden. - diff --git a/pom.xml b/pom.xml index 230f29a..fe8518c 100644 --- a/pom.xml +++ b/pom.xml @@ -1,3 +1,19 @@ + + + ~ Copyright (C) 2016-2020, Stichting Mapcode Foundation (http://www.mapcode.com) + ~ + ~ Licensed under the Apache License, Version 2.0 (the "License"); + ~ you may not use this file except in compliance with the License. + ~ You may obtain a copy of the License at + ~ + ~ http://www.apache.org/licenses/LICENSE-2.0 + ~ + ~ Unless required by applicable law or agreed to in writing, software + ~ distributed under the License is distributed on an "AS IS" BASIS, + ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + ~ See the License for the specific language governing permissions and + ~ limitations under the License. + -->