Changed basic package name. Improved 'pom.xml' configuration.

This commit is contained in:
Prominence 2018-07-19 23:52:22 +03:00
parent 2eae7755b5
commit f00ae8d37c
25 changed files with 82 additions and 45 deletions

1
.gitignore vendored
View File

@ -21,4 +21,5 @@ hs_err_pid*
*.iml
.idea/
target/
**/ApplicationTest.java

View File

@ -259,5 +259,8 @@ Forecasts:
| Unit.IMPERIAL_SYSTEM | Fahrenheit, miles/hour, hPa, mm(rain, snow). |
| Unit.STANDARD_SYSTEM | Kelvin, meter/sec, hPa, mm(rain, snow) |
### Dependencies
* com.alibaba:fastjson:1.2.44
### License
MIT

37
pom.xml
View File

@ -4,9 +4,42 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>openweather-api</groupId>
<artifactId>by.prominence.openweatermap.api</artifactId>
<groupId>com.github.prominence</groupId>
<artifactId>openweathermap-api</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>
<name>Java OpenWeatherMap API</name>
<description>Java API for OpenWeatherMap services.</description>
<url>https://github.com/Prominence/openweathermap-java-api</url>
<scm>
<url>https://github.com/Prominence/openweathermap-java-api</url>
<connection>scm:git:git://github.com/Prominence/openweathermap-java-api.git</connection>
<developerConnection>scm:git:git@github.com:prominence/openweathermap-java-api.git</developerConnection>
</scm>
<issueManagement>
<url>https://github.com/Prominence/openweathermap-java-api/issues</url>
<system>GitHub Issues</system>
</issueManagement>
<licenses>
<license>
<name>MIT License</name>
<url>http://www.opensource.org/licenses/mit-license.php</url>
<distribution>repo</distribution>
</license>
</licenses>
<developers>
<developer>
<email>prominence96@gmail.com</email>
<name>Alexey Zinchenko</name>
<url>https://github.com/prominence</url>
<id>Prominence</id>
</developer>
</developers>
<build>
<plugins>

View File

@ -20,7 +20,7 @@
* SOFTWARE.
*/
package by.prominence.openweathermap.api;
package com.github.prominence.openweathermap.api;
abstract class AuthenticationTokenBasedRequester {

View File

@ -20,13 +20,13 @@
* SOFTWARE.
*/
package by.prominence.openweathermap.api;
package com.github.prominence.openweathermap.api;
import by.prominence.openweathermap.api.constants.System;
import by.prominence.openweathermap.api.constants.Unit;
import by.prominence.openweathermap.api.exception.DataNotFoundException;
import by.prominence.openweathermap.api.exception.InvalidAuthTokenException;
import by.prominence.openweathermap.api.model.Coordinates;
import com.github.prominence.openweathermap.api.constants.System;
import com.github.prominence.openweathermap.api.constants.Unit;
import com.github.prominence.openweathermap.api.exception.DataNotFoundException;
import com.github.prominence.openweathermap.api.exception.InvalidAuthTokenException;
import com.github.prominence.openweathermap.api.model.Coordinates;
import java.net.MalformedURLException;
import java.net.URL;

View File

@ -20,14 +20,14 @@
* SOFTWARE.
*/
package by.prominence.openweathermap.api;
package com.github.prominence.openweathermap.api;
import by.prominence.openweathermap.api.constants.Unit;
import by.prominence.openweathermap.api.exception.DataNotFoundException;
import by.prominence.openweathermap.api.exception.InvalidAuthTokenException;
import by.prominence.openweathermap.api.model.response.HourlyForecast;
import by.prominence.openweathermap.api.utils.JsonUtils;
import by.prominence.openweathermap.api.utils.RequestUtils;
import com.github.prominence.openweathermap.api.constants.Unit;
import com.github.prominence.openweathermap.api.exception.DataNotFoundException;
import com.github.prominence.openweathermap.api.exception.InvalidAuthTokenException;
import com.github.prominence.openweathermap.api.model.response.HourlyForecast;
import com.github.prominence.openweathermap.api.utils.JsonUtils;
import com.github.prominence.openweathermap.api.utils.RequestUtils;
import java.io.IOException;
import java.io.InputStream;

View File

@ -20,7 +20,7 @@
* SOFTWARE.
*/
package by.prominence.openweathermap.api;
package com.github.prominence.openweathermap.api;
public class OpenWeatherMapManager {

View File

@ -20,14 +20,14 @@
* SOFTWARE.
*/
package by.prominence.openweathermap.api;
package com.github.prominence.openweathermap.api;
import by.prominence.openweathermap.api.constants.Unit;
import by.prominence.openweathermap.api.exception.DataNotFoundException;
import by.prominence.openweathermap.api.exception.InvalidAuthTokenException;
import by.prominence.openweathermap.api.model.response.Weather;
import by.prominence.openweathermap.api.utils.JsonUtils;
import by.prominence.openweathermap.api.utils.RequestUtils;
import com.github.prominence.openweathermap.api.constants.Unit;
import com.github.prominence.openweathermap.api.exception.DataNotFoundException;
import com.github.prominence.openweathermap.api.exception.InvalidAuthTokenException;
import com.github.prominence.openweathermap.api.model.response.Weather;
import com.github.prominence.openweathermap.api.utils.JsonUtils;
import com.github.prominence.openweathermap.api.utils.RequestUtils;
import java.io.IOException;
import java.io.InputStream;

View File

@ -20,7 +20,7 @@
* SOFTWARE.
*/
package by.prominence.openweathermap.api.constants;
package com.github.prominence.openweathermap.api.constants;
public final class Accuracy {

View File

@ -20,7 +20,7 @@
* SOFTWARE.
*/
package by.prominence.openweathermap.api.constants;
package com.github.prominence.openweathermap.api.constants;
public final class Language {

View File

@ -20,7 +20,7 @@
* SOFTWARE.
*/
package by.prominence.openweathermap.api.constants;
package com.github.prominence.openweathermap.api.constants;
public final class System {

View File

@ -20,7 +20,7 @@
* SOFTWARE.
*/
package by.prominence.openweathermap.api.constants;
package com.github.prominence.openweathermap.api.constants;
public final class Unit {

View File

@ -20,7 +20,7 @@
* SOFTWARE.
*/
package by.prominence.openweathermap.api.exception;
package com.github.prominence.openweathermap.api.exception;
public class DataNotFoundException extends Exception {

View File

@ -20,7 +20,7 @@
* SOFTWARE.
*/
package by.prominence.openweathermap.api.exception;
package com.github.prominence.openweathermap.api.exception;
public class InvalidAuthTokenException extends Exception {

View File

@ -20,7 +20,7 @@
* SOFTWARE.
*/
package by.prominence.openweathermap.api.model;
package com.github.prominence.openweathermap.api.model;
import com.alibaba.fastjson.annotation.JSONField;

View File

@ -20,7 +20,7 @@
* SOFTWARE.
*/
package by.prominence.openweathermap.api.model;
package com.github.prominence.openweathermap.api.model;
import com.alibaba.fastjson.annotation.JSONField;

View File

@ -20,7 +20,7 @@
* SOFTWARE.
*/
package by.prominence.openweathermap.api.model;
package com.github.prominence.openweathermap.api.model;
public interface OpenWeatherResponse {

View File

@ -20,7 +20,7 @@
* SOFTWARE.
*/
package by.prominence.openweathermap.api.model;
package com.github.prominence.openweathermap.api.model;
import com.alibaba.fastjson.annotation.JSONField;

View File

@ -20,7 +20,7 @@
* SOFTWARE.
*/
package by.prominence.openweathermap.api.model;
package com.github.prominence.openweathermap.api.model;
import com.alibaba.fastjson.annotation.JSONField;

View File

@ -20,7 +20,7 @@
* SOFTWARE.
*/
package by.prominence.openweathermap.api.model;
package com.github.prominence.openweathermap.api.model;
import com.alibaba.fastjson.annotation.JSONField;

View File

@ -20,7 +20,7 @@
* SOFTWARE.
*/
package by.prominence.openweathermap.api.model;
package com.github.prominence.openweathermap.api.model;
import com.alibaba.fastjson.annotation.JSONField;

View File

@ -20,10 +20,10 @@
* SOFTWARE.
*/
package by.prominence.openweathermap.api.model.response;
package com.github.prominence.openweathermap.api.model.response;
import by.prominence.openweathermap.api.model.*;
import com.alibaba.fastjson.annotation.JSONField;
import com.github.prominence.openweathermap.api.model.*;
import java.util.Comparator;
import java.util.Date;

View File

@ -20,10 +20,10 @@
* SOFTWARE.
*/
package by.prominence.openweathermap.api.model.response;
package com.github.prominence.openweathermap.api.model.response;
import by.prominence.openweathermap.api.model.*;
import com.alibaba.fastjson.annotation.JSONField;
import com.github.prominence.openweathermap.api.model.*;
import java.util.Date;
import java.util.List;

View File

@ -20,7 +20,7 @@
* SOFTWARE.
*/
package by.prominence.openweathermap.api.utils;
package com.github.prominence.openweathermap.api.utils;
import com.alibaba.fastjson.JSON;

View File

@ -20,10 +20,10 @@
* SOFTWARE.
*/
package by.prominence.openweathermap.api.utils;
package com.github.prominence.openweathermap.api.utils;
import by.prominence.openweathermap.api.exception.DataNotFoundException;
import by.prominence.openweathermap.api.exception.InvalidAuthTokenException;
import com.github.prominence.openweathermap.api.exception.DataNotFoundException;
import com.github.prominence.openweathermap.api.exception.InvalidAuthTokenException;
import java.io.IOException;
import java.io.InputStream;