You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+10-1Lines changed: 10 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,12 @@
1
+
# Release 4.2.1 (May 8, 2021)
2
+
3
+
* Fixed a compilation error observed on OpenJDK 15/Linux where the 'degree' symbol was not a UTF-8 character. Whatever it was previously, it's been replaced with a compliant character. This changes the value returned by `toString` in `Latitude` and `Longitude`.
4
+
5
+
* The project's build script has been updated to be compatible with Gradle 7.0 and the latest version of [BuildScripts](https://github.com/kloverde/BuildScripts).
6
+
7
+
* Beginning with this release, releases will be source only. This includes first-party dependencies such as [NumberUtil](https://github.com/kloverde/java-NumberUtil), which you'll need to build yourself.
8
+
9
+
1
10
# Release 4.2 (June 16, 2018)
2
11
3
12
* Added a `getPrintName` method to the `CompassDirection` classes. This returns a grammatically correct version of `name()`, changing all letters to lowercase and all underscores to spaces
@@ -105,7 +114,7 @@ This release contains several breaking changes which were necessary for code cle
105
114
* Removed GeographicCoordinate.Type from all GeographicCoordinate constructors. No client code should be impacted, since client code would have been working with the Latitude and Longitude classes directly.
106
115
* Removed GeographicCoordinateException.Messages.COORDINATE_TYPE_NULL, as it can no longer be thrown
107
116
* Changed GeographicCoordinateException.Messages from public to protected, as client code should not be using them. The constants contained therein exist solely to keep the internal code and JUnit tests in sync. The javadoc has been updated to indicate this.
108
-
* Changed the Latitude/Longitude toString methods to return a degree/minute/second format, such as 12°34'56.789"N. Likewise, Point's toString method now uses this format.
117
+
* Changed the Latitude/Longitude toString methods to return a degree/minute/second format, such as 12�34'56.789"N. Likewise, Point's toString method now uses this format.
109
118
* When using the Latitude(double) constructor to create a latitude of 0.0 (the Equator), the direction will be considered north. Previously, it was considered south. No client code should be impacted because it's never correct to examine the direction when talking about the Equator, since it is neither north nor south.
110
119
* When using the Longitude(double) constructor to create a longitude of 0.0 (the Prime Meridian), the direction will be considered east. Previously, it was considered west. No client code should be impacted because it's never correct to examine the direction when talking about the Prime Meridian, since it is neither east nor west.
111
120
* Integrated with the latest version of the BuildScripts project (https://github.com/kloverde/BuildScripts), adding findbugs integration, JUnit integration and new release packaging: one archive contains all jars and the readme, changelog and license.
Copy file name to clipboardExpand all lines: README.md
+10-29Lines changed: 10 additions & 29 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
-
GeographicCoordinate 4.2
2
-
========================
1
+
GeographicCoordinate 4.2.1
2
+
==========================
3
3
4
4
See LICENSE for this software's licensing terms.
5
5
@@ -20,7 +20,7 @@ Starting with v4.0, Java 10 or later is required. See the v4.0 release notes in
20
20
21
21
## Accuracy
22
22
23
-
Supposedly, the calculations of distance and bearing are accurate. I didn't verify distance or bearing calculations in the real world. Doing so would have required purchasing a military-issue compass and then taking it on a hike. The hiking part sounded fine to me, but the purchase of an expensive compass did not. That being said:
23
+
Supposedly, the calculations of distance and bearing are accurate. I didn't verify distance or bearing calculations in the real world. Doing so would have required purchasing a military-grade compass, which I presume would be expensive. (Whether necessary or not, preciseness is a thing for me). That being said:
24
24
25
25
Distance was verified by interpolating a course I plotted on Bing Maps (see the DistanceCalculator JUnit tests). The calculated value agreed with Bing's.
26
26
@@ -29,34 +29,15 @@ Bearing was verified by comparing my calculations to two online calculators, and
2. The Eclipse Buildship plugin (available on the Eclipse Marketplace if it wasn't pre-packaged with your version of Eclipse). This is alluded to in the IDE Setup section below.
43
-
3. Gradle
44
-
45
-
46
-
## IDE Setup
47
-
48
-
In the root directory, you'll find a subdirectory named `.eclipse_project_files`, which contains... you guessed it, Eclipse project files. They enable you to import a pre-configured project that "just works" so that you don't have to fuss around.
49
-
50
-
If you're an Eclipse user, you'll know that this is not where Eclipse keeps them - rather, they belong in the project root directory. I archived the project files in a different location so that they could be saved without interfering with people who like to set up projects their own way.
51
-
52
-
If you want to use them, read `.eclipse_project_files/README.txt` for a description of the Eclipse plugins you'll need to install. Copy `.classpath` and `.project` to the project root directory, then import the project.
53
-
54
-
55
32
## Building
56
33
57
-
1. Update the path to BuildScripts in gradle.properties
58
-
2. Provide a value for builtByName in gradle.properties
59
-
3. Provide the path to the NumberUtil jar in build.gradle
34
+
This project is known to build on Gradle 7.0.
35
+
36
+
1. Get [BuildScripts](https://github.com/kloverde/BuildScripts)
37
+
2. Build [NumberUtil](https://github.com/kloverde/java-NumberUtil) and publish it locally with `gradle publishtomavenlocal`
38
+
3. Set `buildScriptsDir` (the path to BuildScripts) in gradle.properties
0 commit comments