Skip to content

Commit

Permalink
Move tournament package to tournaments (#157)
Browse files Browse the repository at this point in the history
* Move tournament package to tournaments

* Fix unit test

---------

Co-authored-by: Michael Lieshoff <michael.lieshoff@virtual-solution.com>
  • Loading branch information
mlieshoff and Michael Lieshoff authored Jul 12, 2023
1 parent e830fe2 commit 46f1f45
Show file tree
Hide file tree
Showing 10 changed files with 23 additions and 19 deletions.
14 changes: 11 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

## [Unreleased]


## [2.1.0] - 2023-07-12

### Changed

- Move tournament package to tournaments (#147)

## [2.0.6] - 2023-07-12

### Added
Expand Down Expand Up @@ -34,6 +41,7 @@

- Create a Release job (#152)

[unreleased]: https://github.com/mlieshoff/jcrapi2/compare/v2.0.6...HEAD
[2.0.6]: https://github.com/mlieshoff/jcrapi2/compare/v2.0.6...v2.0.6
[2.0.5]: https://github.com/mlieshoff/jcrapi2/compare/v2.0.5...v2.0.6
[unreleased]: https://github.com/mlieshoff/jcrapi2/compare/v2.1.0...HEAD
[2.1.0]: https://github.com/mlieshoff/jcrapi2/compare/v2.0.6...v2.1.0
[2.0.6]: https://github.com/mlieshoff/jcrapi2/compare/v2.0.5...v2.0.6
[2.0.5]: https://github.com/mlieshoff/jcrapi2/compare/v2.0.5...v2.0.5
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[![](https://img.shields.io/badge/java-packagecloud.io-844fec.svg)](https://packagecloud.io/)

# jcrapi2 2.0.6
# jcrapi2 2.1.0
A Java Wrapper For Official Supercell Clash Royal Api

## Why we don't use the Swagger scheme?
Expand Down Expand Up @@ -372,15 +372,15 @@ All requests are returning *java.concurrent.Future*. The execution will be async

to Gradle:
```groovy
implementation group: 'jcrapi2', name: 'jcrapi2', version: '2.0.6'
implementation group: 'jcrapi2', name: 'jcrapi2', version: '2.1.0'
```

to Maven:
```xml
<dependency>
<groupId>jcrapi2</groupId>
<artifactId>jcrapi2</artifactId>
<version>2.0.6</version>
<version>2.1.0</version>
</dependency>
```

Expand Down
2 changes: 1 addition & 1 deletion VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2.0.6
v2.1.0
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<artifactId>jcrapi2</artifactId>
<packaging>jar</packaging>
<version>2.0.6</version>
<version>2.1.0</version>
<groupId>jcrapi2</groupId>
<url>https://maven.apache.org</url>
<inceptionYear>2018</inceptionYear>
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/jcrapi2/api/intern/DefaultApiClasses.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import jcrapi2.api.intern.globaltournaments.GlobalTournamentApi;
import jcrapi2.api.intern.locations.LocationApi;
import jcrapi2.api.intern.players.PlayerApi;
import jcrapi2.api.intern.tournament.TournamentApi;
import jcrapi2.api.intern.tournaments.TournamentApi;

import java.util.Collections;
import java.util.HashMap;
Expand All @@ -40,7 +40,7 @@ public class DefaultApiClasses {
put(CardApi.class, "jcrapi2.api.intern.cards.CardApiImpl");
put(
TournamentApi.class,
"jcrapi2.api.intern.tournament.TournamentApiImpl");
"jcrapi2.api.intern.tournaments.TournamentApiImpl");
put(LocationApi.class, "jcrapi2.api.intern.locations.LocationApiImpl");
put(
ChallengeApi.class,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package jcrapi2.api.intern.tournament;
package jcrapi2.api.intern.tournaments;

import jcrapi2.api.Api;
import jcrapi2.api.intern.tournaments.TournamentsRequest;
import jcrapi2.api.intern.tournaments.TournamentsResponse;
import jcrapi2.api.intern.tournaments.info.TournamentRequest;
import jcrapi2.api.intern.tournaments.info.TournamentResponse;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,10 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package jcrapi2.api.intern.tournament;
package jcrapi2.api.intern.tournaments;

import jcrapi2.api.ApiContext;
import jcrapi2.api.BaseApi;
import jcrapi2.api.intern.tournaments.TournamentsRequest;
import jcrapi2.api.intern.tournaments.TournamentsResponse;
import jcrapi2.api.intern.tournaments.info.TournamentRequest;
import jcrapi2.api.intern.tournaments.info.TournamentResponse;

Expand Down
2 changes: 1 addition & 1 deletion src/test/java/jcrapi2/EndToEnd.java
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
import jcrapi2.api.intern.players.info.PlayerResponse;
import jcrapi2.api.intern.players.upcomingchests.UpcomingChestsRequest;
import jcrapi2.api.intern.players.upcomingchests.UpcomingChestsResponse;
import jcrapi2.api.intern.tournament.TournamentApi;
import jcrapi2.api.intern.tournaments.TournamentApi;
import jcrapi2.api.intern.tournaments.TournamentsRequest;
import jcrapi2.api.intern.tournaments.TournamentsResponse;
import jcrapi2.api.intern.tournaments.info.TournamentRequest;
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/jcrapi2/JCrApiTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ void listApis_whenCalled_shouldReturnListOfApiInterfaceNames() {
"jcrapi2.api.intern.globaltournaments.GlobalTournamentApi",
"jcrapi2.api.intern.locations.LocationApi",
"jcrapi2.api.intern.players.PlayerApi",
"jcrapi2.api.intern.tournament.TournamentApi"));
"jcrapi2.api.intern.tournaments.TournamentApi"));

List<String> actual = unitUnderTest.listApis();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package jcrapi2.api.intern.tournament;
package jcrapi2.api.intern.tournaments;

import static wiremock.org.apache.commons.lang3.StringUtils.EMPTY;

Expand Down

0 comments on commit 46f1f45

Please sign in to comment.