Compare commits

..

3 Commits

Author SHA1 Message Date
Prominence ec988c5f26 Releasing 2.3.0 version. 2022-04-17 00:41:54 +03:00
Prominence 7b8d46bb7a Updated README.md 2022-04-17 00:26:38 +03:00
Alexey Zinchenko 6ae281af0d Merged changes from dev branch. 2022-04-17 00:25:07 +03:00
5 changed files with 26 additions and 12 deletions
+1 -1
View File
@@ -6,4 +6,4 @@ updates:
interval: daily interval: daily
time: "03:00" time: "03:00"
open-pull-requests-limit: 10 open-pull-requests-limit: 10
target-branch: dev target-branch: master
+2 -2
View File
@@ -13,10 +13,10 @@ name: "CodeQL"
on: on:
push: push:
branches: [ dev ] branches: [ master ]
pull_request: pull_request:
# The branches below must be a subset of the branches above # The branches below must be a subset of the branches above
branches: [ dev ] branches: [ master ]
schedule: schedule:
- cron: '27 20 * * 1' - cron: '27 20 * * 1'
+8 -5
View File
@@ -8,6 +8,9 @@ Free:
* One Call API * One Call API
* Air pollution * Air pollution
Other:
* Request timeout settings
### Will be implemented later: ### Will be implemented later:
Free: Free:
@@ -26,14 +29,14 @@ Paid:
<dependency> <dependency>
<groupId>com.github.prominence</groupId> <groupId>com.github.prominence</groupId>
<artifactId>openweathermap-api</artifactId> <artifactId>openweathermap-api</artifactId>
<version>2.2.0-SNAPSHOT</version> <version>2.3.0</version>
</dependency> </dependency>
``` ```
### Gradle coordinates: ### Gradle coordinates:
```groovy ```groovy
compile('com.github.prominence:openweathermap-api:2.2.0-SNAPSHOT') compile('com.github.prominence:openweathermap-api:2.3.0')
``` ```
### Documentation ### Documentation
@@ -45,14 +48,14 @@ compile('com.github.prominence:openweathermap-api:2.2.0-SNAPSHOT')
* [OpenWeatherMap Java API - 2.1.0](docs/Release_2.1.0.md) * [OpenWeatherMap Java API - 2.1.0](docs/Release_2.1.0.md)
* [OpenWeatherMap Java API - 2.1.1](docs/Release_2.1.1.md) * [OpenWeatherMap Java API - 2.1.1](docs/Release_2.1.1.md)
* [OpenWeatherMap Java API - 2.2.0](docs/Release_2.2.0.md) * [OpenWeatherMap Java API - 2.2.0](docs/Release_2.2.0.md)
* [OpenWeatherMap Java API - SNAPSHOT](docs/SNAPSHOT.md) * [OpenWeatherMap Java API - 2.3.0](docs/Release_2.3.0.md)
### License ### License
MIT MIT
[ci-shield]: https://travis-ci.org/Prominence/openweathermap-java-api.svg?branch=dev [ci-shield]: https://travis-ci.org/Prominence/openweathermap-java-api.svg?branch=master
[ci-link]: https://travis-ci.org/Prominence/openweathermap-java-api [ci-link]: https://travis-ci.org/Prominence/openweathermap-java-api
[codecov-shield]: https://codecov.io/gh/Prominence/openweathermap-java-api/branch/dev/graph/badge.svg [codecov-shield]: https://codecov.io/gh/Prominence/openweathermap-java-api/branch/master/graph/badge.svg
[codecov-link]: https://codecov.io/gh/Prominence/openweathermap-java-api [codecov-link]: https://codecov.io/gh/Prominence/openweathermap-java-api
+13 -2
View File
@@ -4,20 +4,24 @@
* One Call API * One Call API
* Air Pollution * Air Pollution
Other:
* Request timeout settings
### Maven coordinates: ### Maven coordinates:
```xml ```xml
<dependency> <dependency>
<groupId>com.github.prominence</groupId> <groupId>com.github.prominence</groupId>
<artifactId>openweathermap-api</artifactId> <artifactId>openweathermap-api</artifactId>
<version>2.2.0-SNAPSHOT</version> <version>2.3.0</version>
</dependency> </dependency>
``` ```
### Gradle coordinates: ### Gradle coordinates:
```groovy ```groovy
compile('com.github.prominence:openweathermap-api:2.2.0-SNAPSHOT') compile('com.github.prominence:openweathermap-api:2.3.0')
``` ```
### How to use: ### How to use:
@@ -34,6 +38,13 @@ Currently, available APIs are:
* `oneCall()` * `oneCall()`
* `airPollution()` * `airPollution()`
Also, it is possible to set timeouts for the requests on `openWeatherClient` object:
```java
openWeatherClient.setReadTimeout(1000);
openWeatherClient.setConnectTimeout(1000);
```
Timeout settings are passed to the requesters as a copy.
Default(more or less) customization points: Default(more or less) customization points:
```java ```java
... ...
+2 -2
View File
@@ -6,7 +6,7 @@
<groupId>com.github.prominence</groupId> <groupId>com.github.prominence</groupId>
<artifactId>openweathermap-api</artifactId> <artifactId>openweathermap-api</artifactId>
<version>2.2.0-SNAPSHOT</version> <version>2.3.0</version>
<packaging>jar</packaging> <packaging>jar</packaging>
<name>Java OpenWeatherMap API</name> <name>Java OpenWeatherMap API</name>
@@ -80,7 +80,7 @@
<plugin> <plugin>
<groupId>org.sonatype.plugins</groupId> <groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId> <artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.8</version> <version>1.6.9</version>
<extensions>true</extensions> <extensions>true</extensions>
<configuration> <configuration>
<serverId>ossrh</serverId> <serverId>ossrh</serverId>