Skip to content

Commit

Permalink
Switch to Java Build Essentials (#214)
Browse files Browse the repository at this point in the history
* Add dependency to java build essentials

* Increase version

* Add ChangeLog checker

* Add ReadMe checker

* Set version
  • Loading branch information
mlieshoff authored Feb 14, 2025
1 parent be0d291 commit be55563
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 7 deletions.
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

## [Unreleased]

## [4.0.13] - 2025-02-14

### Changed

- Use classes from Java Build Essentials for building time instead of Supercell API Wrapper Essentials

## [4.0.12] - 2025-02-13

### Added
Expand Down Expand Up @@ -284,7 +290,8 @@

- Create a Release job (#152)

[unreleased]: https://github.com/mlieshoff/jcrapi2/compare/v4.0.12...HEAD
[unreleased]: https://github.com/mlieshoff/jcrapi2/compare/v4.0.13...HEAD
[4.0.13]: https://github.com/mlieshoff/jcrapi2/compare/v4.0.12...4.0.13
[4.0.12]: https://github.com/mlieshoff/jcrapi2/compare/v4.0.11...4.0.12
[4.0.11]: https://github.com/mlieshoff/jcrapi2/compare/v4.0.10...4.0.11
[4.0.10]: https://github.com/mlieshoff/jcrapi2/compare/v4.0.9...4.0.10
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[![](https://img.shields.io/badge/java-packagecloud.io-844fec.svg)](https://packagecloud.io/)
[![Nightlies](https://github.com/mlieshoff/jcrapi2/actions/workflows/nightlies.yml/badge.svg)](https://github.com/mlieshoff/jcrapi2/actions/workflows/nightlies.yml)

# jcrapi2 4.0.12
# jcrapi2 4.0.13
A Java Wrapper For Official Supercell Clash Royal Api

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

to Gradle:
```groovy
implementation group: 'jcrapi2', name: 'jcrapi2', version: '4.0.12'
implementation group: 'jcrapi2', name: 'jcrapi2', version: '4.0.13'
```

to Maven:
```xml
<dependency>
<groupId>jcrapi2</groupId>
<artifactId>jcrapi2</artifactId>
<version>4.0.12</version>
<version>4.0.13</version>
</dependency>
```

Expand Down
2 changes: 1 addition & 1 deletion VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v4.0.12
v4.0.13
50 changes: 48 additions & 2 deletions 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>4.0.12</version>
<version>4.0.13</version>
<groupId>jcrapi2</groupId>
<url>https://maven.apache.org</url>
<inceptionYear>2018</inceptionYear>
Expand Down Expand Up @@ -36,6 +36,7 @@
<version.io>2.18.0</version.io>
<version.jacoco>0.8.12</version.jacoco>
<version.java>21</version.java>
<version.java.build.essentials>1.0.1</version.java.build.essentials>
<version.json>1.1.4</version.json>
<version.junit>5.11.4</version.junit>
<version.lombok>1.18.36</version.lombok>
Expand Down Expand Up @@ -138,13 +139,43 @@
<goal>java</goal>
</goals>
<configuration>
<mainClass>supercell.api.wrapper.essentials.build.ReleaseVersionChecker</mainClass>
<mainClass>com.mlieshoff.build.essentials.ReleaseVersionChecker</mainClass>
<arguments>
<argument>./VERSION.txt</argument>
<argument>./pom.xml</argument>
</arguments>
</configuration>
</execution>
<execution>
<id>ChangelogVersion</id>
<phase>prepare-package</phase>
<goals>
<goal>java</goal>
</goals>
<configuration>
<mainClass>com.mlieshoff.build.essentials.ChangeLogVersionChecker</mainClass>
<arguments>
<argument>./VERSION.txt</argument>
<argument>./CHANGELOG.md</argument>
</arguments>
</configuration>
</execution>
<execution>
<id>ReadmeVersion</id>
<phase>prepare-package</phase>
<goals>
<goal>java</goal>
</goals>
<configuration>
<mainClass>com.mlieshoff.build.essentials.ReadmeVersionChecker</mainClass>
<arguments>
<argument>./VERSION.txt</argument>
<argument>./README.md</argument>
<argument>${project.groupId}</argument>
<argument>${project.artifactId}</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
Expand Down Expand Up @@ -221,6 +252,11 @@
<artifactId>supercell-api-wrapper-essentials</artifactId>
<version>${version.supercell.api.wrapper.essentials}</version>
</dependency>
<dependency>
<groupId>com.mlieshoff</groupId>
<artifactId>java-build-essentials</artifactId>
<version>${version.java.build.essentials}</version>
</dependency>

<!-- others -->
<dependency>
Expand Down Expand Up @@ -319,5 +355,15 @@
<enabled>true</enabled>
</snapshots>
</repository>
<repository>
<id>packagecloud-java-build-essentials</id>
<url>https://packagecloud.io/mlieshoff/java-build-essentials/maven2</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
</project>

0 comments on commit be55563

Please sign in to comment.