diff --git a/fern/products/sdks/overview/java/configuration.mdx b/fern/products/sdks/overview/java/configuration.mdx index e79042962..bc4440483 100644 --- a/fern/products/sdks/overview/java/configuration.mdx +++ b/fern/products/sdks/overview/java/configuration.mdx @@ -2,7 +2,83 @@ title: Java Configuration description: Configuration options for the Fern Java SDK. --- +You can customize the behavior of the Java SDK generator in `generators.yml`: -Discover how to configure the Fern Java SDK for your project. +```yaml {7-9} +default-group: local +groups: + local: + generators: + - name: fernapi/fern-java-sdk + version: + config: + client_class_name: YourApiClient +``` -This page is a WIP, please refer to our previous [documentation](https://buildwithfern.com/learn/sdks/reference/configuration). \ No newline at end of file +## SDK Configuration Options + + + +The provided string will be used as the client class name. + + + + + + + + + + +Example: + + ```yaml + custom-dependencies: + - "implementation com.foo:bar:0.0.0" + - "testImplementation com.foo:bar:0.0.0" + - "api com.foo:bar:0.0.0" + ``` + + + + + + + + + + + When enabled, generates wrapper types for each alias to increase type-safety. +For example, if you have an alias `ResourceId: string` then if this is true, the +generator will generate a `ResourceId.java` file. If false, it will just treat it +as `java.util.String`. + + + + + + + + + + + + + +When enabled, generates public constructors for model types. + + + + + + + + + + + + + + + +