mirror of
https://github.com/Prominence/openweathermap-java-api.git
synced 2026-01-10 11:56:44 +03:00
Changed basic package name. Improved 'pom.xml' configuration.
This commit is contained in:
parent
2eae7755b5
commit
f00ae8d37c
1
.gitignore
vendored
1
.gitignore
vendored
@ -21,4 +21,5 @@ hs_err_pid*
|
|||||||
|
|
||||||
*.iml
|
*.iml
|
||||||
.idea/
|
.idea/
|
||||||
|
target/
|
||||||
**/ApplicationTest.java
|
**/ApplicationTest.java
|
||||||
@ -259,5 +259,8 @@ Forecasts:
|
|||||||
| Unit.IMPERIAL_SYSTEM | Fahrenheit, miles/hour, hPa, mm(rain, snow). |
|
| Unit.IMPERIAL_SYSTEM | Fahrenheit, miles/hour, hPa, mm(rain, snow). |
|
||||||
| Unit.STANDARD_SYSTEM | Kelvin, meter/sec, hPa, mm(rain, snow) |
|
| Unit.STANDARD_SYSTEM | Kelvin, meter/sec, hPa, mm(rain, snow) |
|
||||||
|
|
||||||
|
### Dependencies
|
||||||
|
* com.alibaba:fastjson:1.2.44
|
||||||
|
|
||||||
### License
|
### License
|
||||||
MIT
|
MIT
|
||||||
|
|||||||
37
pom.xml
37
pom.xml
@ -4,9 +4,42 @@
|
|||||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
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>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
<groupId>openweather-api</groupId>
|
<groupId>com.github.prominence</groupId>
|
||||||
<artifactId>by.prominence.openweatermap.api</artifactId>
|
<artifactId>openweathermap-api</artifactId>
|
||||||
<version>1.0-SNAPSHOT</version>
|
<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>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
|
|||||||
@ -20,7 +20,7 @@
|
|||||||
* SOFTWARE.
|
* SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package by.prominence.openweathermap.api;
|
package com.github.prominence.openweathermap.api;
|
||||||
|
|
||||||
abstract class AuthenticationTokenBasedRequester {
|
abstract class AuthenticationTokenBasedRequester {
|
||||||
|
|
||||||
@ -20,13 +20,13 @@
|
|||||||
* SOFTWARE.
|
* SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package by.prominence.openweathermap.api;
|
package com.github.prominence.openweathermap.api;
|
||||||
|
|
||||||
import by.prominence.openweathermap.api.constants.System;
|
import com.github.prominence.openweathermap.api.constants.System;
|
||||||
import by.prominence.openweathermap.api.constants.Unit;
|
import com.github.prominence.openweathermap.api.constants.Unit;
|
||||||
import by.prominence.openweathermap.api.exception.DataNotFoundException;
|
import com.github.prominence.openweathermap.api.exception.DataNotFoundException;
|
||||||
import by.prominence.openweathermap.api.exception.InvalidAuthTokenException;
|
import com.github.prominence.openweathermap.api.exception.InvalidAuthTokenException;
|
||||||
import by.prominence.openweathermap.api.model.Coordinates;
|
import com.github.prominence.openweathermap.api.model.Coordinates;
|
||||||
|
|
||||||
import java.net.MalformedURLException;
|
import java.net.MalformedURLException;
|
||||||
import java.net.URL;
|
import java.net.URL;
|
||||||
@ -20,14 +20,14 @@
|
|||||||
* SOFTWARE.
|
* SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package by.prominence.openweathermap.api;
|
package com.github.prominence.openweathermap.api;
|
||||||
|
|
||||||
import by.prominence.openweathermap.api.constants.Unit;
|
import com.github.prominence.openweathermap.api.constants.Unit;
|
||||||
import by.prominence.openweathermap.api.exception.DataNotFoundException;
|
import com.github.prominence.openweathermap.api.exception.DataNotFoundException;
|
||||||
import by.prominence.openweathermap.api.exception.InvalidAuthTokenException;
|
import com.github.prominence.openweathermap.api.exception.InvalidAuthTokenException;
|
||||||
import by.prominence.openweathermap.api.model.response.HourlyForecast;
|
import com.github.prominence.openweathermap.api.model.response.HourlyForecast;
|
||||||
import by.prominence.openweathermap.api.utils.JsonUtils;
|
import com.github.prominence.openweathermap.api.utils.JsonUtils;
|
||||||
import by.prominence.openweathermap.api.utils.RequestUtils;
|
import com.github.prominence.openweathermap.api.utils.RequestUtils;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
@ -20,7 +20,7 @@
|
|||||||
* SOFTWARE.
|
* SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package by.prominence.openweathermap.api;
|
package com.github.prominence.openweathermap.api;
|
||||||
|
|
||||||
public class OpenWeatherMapManager {
|
public class OpenWeatherMapManager {
|
||||||
|
|
||||||
@ -20,14 +20,14 @@
|
|||||||
* SOFTWARE.
|
* SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package by.prominence.openweathermap.api;
|
package com.github.prominence.openweathermap.api;
|
||||||
|
|
||||||
import by.prominence.openweathermap.api.constants.Unit;
|
import com.github.prominence.openweathermap.api.constants.Unit;
|
||||||
import by.prominence.openweathermap.api.exception.DataNotFoundException;
|
import com.github.prominence.openweathermap.api.exception.DataNotFoundException;
|
||||||
import by.prominence.openweathermap.api.exception.InvalidAuthTokenException;
|
import com.github.prominence.openweathermap.api.exception.InvalidAuthTokenException;
|
||||||
import by.prominence.openweathermap.api.model.response.Weather;
|
import com.github.prominence.openweathermap.api.model.response.Weather;
|
||||||
import by.prominence.openweathermap.api.utils.JsonUtils;
|
import com.github.prominence.openweathermap.api.utils.JsonUtils;
|
||||||
import by.prominence.openweathermap.api.utils.RequestUtils;
|
import com.github.prominence.openweathermap.api.utils.RequestUtils;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
@ -20,7 +20,7 @@
|
|||||||
* SOFTWARE.
|
* SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package by.prominence.openweathermap.api.constants;
|
package com.github.prominence.openweathermap.api.constants;
|
||||||
|
|
||||||
public final class Accuracy {
|
public final class Accuracy {
|
||||||
|
|
||||||
@ -20,7 +20,7 @@
|
|||||||
* SOFTWARE.
|
* SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package by.prominence.openweathermap.api.constants;
|
package com.github.prominence.openweathermap.api.constants;
|
||||||
|
|
||||||
public final class Language {
|
public final class Language {
|
||||||
|
|
||||||
@ -20,7 +20,7 @@
|
|||||||
* SOFTWARE.
|
* SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package by.prominence.openweathermap.api.constants;
|
package com.github.prominence.openweathermap.api.constants;
|
||||||
|
|
||||||
public final class System {
|
public final class System {
|
||||||
|
|
||||||
@ -20,7 +20,7 @@
|
|||||||
* SOFTWARE.
|
* SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package by.prominence.openweathermap.api.constants;
|
package com.github.prominence.openweathermap.api.constants;
|
||||||
|
|
||||||
public final class Unit {
|
public final class Unit {
|
||||||
|
|
||||||
@ -20,7 +20,7 @@
|
|||||||
* SOFTWARE.
|
* SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package by.prominence.openweathermap.api.exception;
|
package com.github.prominence.openweathermap.api.exception;
|
||||||
|
|
||||||
public class DataNotFoundException extends Exception {
|
public class DataNotFoundException extends Exception {
|
||||||
|
|
||||||
@ -20,7 +20,7 @@
|
|||||||
* SOFTWARE.
|
* SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package by.prominence.openweathermap.api.exception;
|
package com.github.prominence.openweathermap.api.exception;
|
||||||
|
|
||||||
public class InvalidAuthTokenException extends Exception {
|
public class InvalidAuthTokenException extends Exception {
|
||||||
|
|
||||||
@ -20,7 +20,7 @@
|
|||||||
* SOFTWARE.
|
* SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package by.prominence.openweathermap.api.model;
|
package com.github.prominence.openweathermap.api.model;
|
||||||
|
|
||||||
import com.alibaba.fastjson.annotation.JSONField;
|
import com.alibaba.fastjson.annotation.JSONField;
|
||||||
|
|
||||||
@ -20,7 +20,7 @@
|
|||||||
* SOFTWARE.
|
* SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package by.prominence.openweathermap.api.model;
|
package com.github.prominence.openweathermap.api.model;
|
||||||
|
|
||||||
import com.alibaba.fastjson.annotation.JSONField;
|
import com.alibaba.fastjson.annotation.JSONField;
|
||||||
|
|
||||||
@ -20,7 +20,7 @@
|
|||||||
* SOFTWARE.
|
* SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package by.prominence.openweathermap.api.model;
|
package com.github.prominence.openweathermap.api.model;
|
||||||
|
|
||||||
public interface OpenWeatherResponse {
|
public interface OpenWeatherResponse {
|
||||||
|
|
||||||
@ -20,7 +20,7 @@
|
|||||||
* SOFTWARE.
|
* SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package by.prominence.openweathermap.api.model;
|
package com.github.prominence.openweathermap.api.model;
|
||||||
|
|
||||||
import com.alibaba.fastjson.annotation.JSONField;
|
import com.alibaba.fastjson.annotation.JSONField;
|
||||||
|
|
||||||
@ -20,7 +20,7 @@
|
|||||||
* SOFTWARE.
|
* SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package by.prominence.openweathermap.api.model;
|
package com.github.prominence.openweathermap.api.model;
|
||||||
|
|
||||||
import com.alibaba.fastjson.annotation.JSONField;
|
import com.alibaba.fastjson.annotation.JSONField;
|
||||||
|
|
||||||
@ -20,7 +20,7 @@
|
|||||||
* SOFTWARE.
|
* SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package by.prominence.openweathermap.api.model;
|
package com.github.prominence.openweathermap.api.model;
|
||||||
|
|
||||||
import com.alibaba.fastjson.annotation.JSONField;
|
import com.alibaba.fastjson.annotation.JSONField;
|
||||||
|
|
||||||
@ -20,7 +20,7 @@
|
|||||||
* SOFTWARE.
|
* SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package by.prominence.openweathermap.api.model;
|
package com.github.prominence.openweathermap.api.model;
|
||||||
|
|
||||||
import com.alibaba.fastjson.annotation.JSONField;
|
import com.alibaba.fastjson.annotation.JSONField;
|
||||||
|
|
||||||
@ -20,10 +20,10 @@
|
|||||||
* SOFTWARE.
|
* 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.alibaba.fastjson.annotation.JSONField;
|
||||||
|
import com.github.prominence.openweathermap.api.model.*;
|
||||||
|
|
||||||
import java.util.Comparator;
|
import java.util.Comparator;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
@ -20,10 +20,10 @@
|
|||||||
* SOFTWARE.
|
* 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.alibaba.fastjson.annotation.JSONField;
|
||||||
|
import com.github.prominence.openweathermap.api.model.*;
|
||||||
|
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
@ -20,7 +20,7 @@
|
|||||||
* SOFTWARE.
|
* SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package by.prominence.openweathermap.api.utils;
|
package com.github.prominence.openweathermap.api.utils;
|
||||||
|
|
||||||
import com.alibaba.fastjson.JSON;
|
import com.alibaba.fastjson.JSON;
|
||||||
|
|
||||||
@ -20,10 +20,10 @@
|
|||||||
* SOFTWARE.
|
* SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package by.prominence.openweathermap.api.utils;
|
package com.github.prominence.openweathermap.api.utils;
|
||||||
|
|
||||||
import by.prominence.openweathermap.api.exception.DataNotFoundException;
|
import com.github.prominence.openweathermap.api.exception.DataNotFoundException;
|
||||||
import by.prominence.openweathermap.api.exception.InvalidAuthTokenException;
|
import com.github.prominence.openweathermap.api.exception.InvalidAuthTokenException;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
Loading…
x
Reference in New Issue
Block a user