Releases: IndicoDataSolutions/indico-client-java
6.0.0
Removes some inaccurate documentation. Fixes bugs (including names of tokens). Updates dependencies to address CVEs.
Adds the ability to craft raw graphql queries.
What's Changed
- bump version number by @goatrocks in #44
- fix sonatype by @goatrocks in #45
- adds shadowJar task for creating fat jar by @nateshim-indico in #46
- [CAT-75] Java SDK shouldn't assume every token is named "indico_api_token.txt" by @nateshim-indico in #48
- [CAT-180]: raw graphql query by @nateshim-indico in #47
- [CAT-271] Remove DocExtraction and ModelGroupPredict stuff from docs by @fitzworkhub in #49
- tweaks to make tests easier to run by @meghanhickey in #51
- [CAT-627] fetch from env vars by @goatrocks in #52
- [CAT-618] update kotlin and library dependencies, fix some new warnings. by @goatrocks in #54
- add dockerfile to build docs (#55) by @goatrocks in #56
New Contributors
- @nateshim-indico made their first contribution in #46
- @fitzworkhub made their first contribution in #49
Full Changelog: 5.1.0...v6.0.0
5.1
[BACKPORT] 4.11.4
4.11.4 applies the log4j-api v 2.17 update to the pre-kotlin rewrite version of the indico-client-java. This is for people unable to upgrade to 4.12.x only
4.12.2 - Log4j exploit patch
This updates log4j dependency to 2.15, addressing CVE 2021-44228.
4.12.1 - Retry Submission
Provides submission retry functionality.
4.12.0 -- Kotlin Rewrite
4.12.0 is the latest version including a rewrite of most of the code base in Kotlin. Much of the interfaces remain the same but there are some potentially breaking changes listed below for awareness:
-
SubmissionFilter builder() → Builder.
-
SubmissionFilter .oR() → or()
List<SubmissionFilter> filters = new ArrayList<>();
filters.add(new SubmissionFilter.Builder().status(SubmissionStatus.COMPLETE).build());
filters.add(new SubmissionFilter.Builder().status(SubmissionStatus.FAILED).build());
SubmissionFilter subFilter = new SubmissionFilter.Builder().ors(filters).build();
-
refresh
function is deprecated. -
New exceptions are thrown from queries and mutations, although catching RuntimeException will still work.
-
IndicoClient is now an interface and the concrete implementation is IndicoKtorClient
IndicoConfig config = new IndicoConfig.Builder()
.host("app.indico.io")
.tokenPath("__TOKEN_PATH__")
.build();
try (IndicoClient client = new IndicoKtorClient(config)) {
- Relies on kotlin runtime so requires additional dependencies for projects who cannot use automatic dependency resolution
- Removed raw graphql class, seems it did not function properly.
- Removed multiple obsolete examples.
- Removed the “WorkflowJob” concept as it is obsolete and was causing confusion.
- Deprecates some API features, especially those that have consumers add full objects to a query.
- Objects in package com.indico.jobs moved to com.indico.query
4.11.1 - Version number jump and Duplication Id Support
This version supports sending a UUID along with a submission to ensure that, in the case of transient network errors or retries, the same file is not processed multiple times.
This version also pegs the version number of the client to the minimum major minor version of the platform. This version supports platform version 4.11.0 and up.
4.0.12
This release addresses client stability and errors in the logs sometimes seen regarding leaked connections. It also adds trace logging for additional information when troubleshooting.
Consumers should take note of the new .close() method on Blob storage objects, which now implements the AutoCloseable interface. It is important to call close() to indicate you are done with the object in order to free up underlying resources.