Skip to content

Releases: derklaro/java-spiget-client

v2.0

18 Oct 08:10
6a3589d

Choose a tag to compare

✨ Improvements

This release brings some smaller breaking changes and new features which allows better interaction with the spiget api:

  • Removed all request creators from SpigetClient. Requests are now created by using <Request>.create(SpigetClient) to reduce the amount of classes when shadowing the client into a jar file (#11).
  • Removed the XXXSpigetClient(JsonMapper) constructors and replaced them with XXXSpigetClient(SpigetClientConfig). The config now allows to customize the client even further by changing the user-agent, connect- or request timeout (the config might get expanded in the future, these are the core options which were hardcoded previously and are now better accessible).
  • When sending a request, the direct usages of Field#get got replaced with method handles. This should improve the performance a bit.
  • A new json mapper based on jackson was added for those who use jackson over gson in their projects.

Take a look at the examples in the readme to see the changes in action.

⚡Dependencies

Maven:

<dependencies>
  <dependency>
    <groupId>dev.derklaro.spiget</groupId>
    <artifactId>{component}</artifactId>
    <version>2.0.0</version>
  </dependency>
</dependencies>

Gradle:

implementation group: 'dev.derklaro.spiget', name: '{component}', version: '2.0.0'

For a list of all components take a look at the readme.

🔗 Links

Version 1.0.0 - Initial release

17 Jan 16:51
56e3995

Choose a tag to compare

Initial release of this library published to maven central. All routes and response models are included. Happy request sending!

Maven:

<dependencies>
  <dependency>
    <groupId>dev.derklaro.spiget</groupId>
    <artifactId>{component}</artifactId>
    <version>1.0.0</version>
  </dependency>
</dependencies>

Gradle:

implementation group: 'dev.derklaro.spiget', name: '{component}', version: '1.0.0'

All commits: https://github.com/derklaro/java-spiget-client/commits/v1.0.0