3.42.0
(feat): Add support for custom Gradle plugins via the custom-plugins configuration
option. Users can now specify custom Gradle plugins (with optional versions)
that will be added to the generated build.gradle file. Format:
["plugin-id:version", "plugin-id"]. Plugins are applied after built-in
plugins (java-library, maven-publish, spotless).
3.41.0
(feat): Add custom-interceptors configuration option for the Java SDK generator.
When enabled (custom-interceptors: true in generators.yml), the generated
client builder exposes an addInterceptor(Interceptor) method that allows SDK
users to add custom OkHttp interceptors. Interceptors are applied to the
OkHttpClient when the client is built. This enables use cases like PKCV (Public
Key Client Validation), custom request signing, and other HTTP-level
customizations via custom code protected by .fernignore.
3.40.9
(fix): Fix wire test generation for form-urlencoded request bodies: objects
now serialize as Java’s Map.toString() format ({key=value}) instead
of JSON ({"key":"value"}), and ISO 8601 dates with zero seconds drop
the :00 to match Java’s OffsetDateTime.toString() output (e.g.
2015-07-30T20:00Z instead of 2015-07-30T20:00:00Z).
3.40.8
(fix): Fix wire test generation to convert RFC 2822 dates to ISO 8601 in both
the mock response body (served by MockWebServer) and the expected response
assertion. Previously, only the expected response was converted, leaving
RFC 2822 dates in the mock response which caused DateTimeParseException
during Jackson deserialization for fields typed as dateTime (not
dateTimeRfc2822). The conversion now happens upfront so a single
normalized resource file is shared by both mock setup and validation.
3.40.7
(fix): Fix wire test generation for URI and path paginated endpoints returning
wrong type. The published @fern-fern/ir-sdk doesn’t include uri/path
as Pagination union members, so the raw IR JSON passes through
undeserialized with _type discriminant fields instead of type. The
generator now normalizes raw IR JSON (_type → type) before extracting
the pagination item type, so wire tests correctly use
SyncPagingIterable<T> instead of the raw response type.
3.40.6
(fix): Fix wire test generation for form-urlencoded request body encoding.
The generator now uses + for spaces (matching Java’s URLEncoder.encode())
instead of %20 (from encodeURIComponent), serializes arrays as
[val1, val2] (matching Java’s List.toString()), and serializes objects
as JSON strings.
(fix): Fix wire test generation for RFC 2822 date fields. The expected response
body in wire tests now converts RFC 2822 dates (e.g.
Thu, 30 Jul 2015 20:00:00 +0000) to ISO 8601 with Z suffix (e.g.
2015-07-30T20:00:00Z) to match Jackson’s JavaTimeModule serialization
of OffsetDateTime. The mock response body retains RFC 2822 dates since
the SDK’s Rfc2822DateTimeDeserializer handles them correctly.
3.40.5
(fix): Fix wire test generation for URI and path paginated endpoints. The generated
wire tests incorrectly used the raw response type (e.g. ListMessagesResponse)
instead of the paginated return type (SyncPagingIterable<T>) for endpoints
using URI or path-based pagination, causing compilation failures.