Releases: derklaro/java-spiget-client
Releases · derklaro/java-spiget-client
v2.0
✨ 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 withXXXSpigetClient(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#getgot 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
- Maven Dependencies: https://search.maven.org/search?q=dev.derklaro.spiget
- If you found any issue, please report it on our issue tracker: https://github.com/derklaro/java-spiget-client/issues
Version 1.0.0 - Initial release
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