Skip to content

Commit f9ca7cc

Browse files
authored
Add metadata config options to Java configuration reference (#160)
1 parent e2c488b commit f9ca7cc

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

fern/products/sdks/overview/java/configuration.mdx

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,4 +87,33 @@ config:
8787
For example, if you have an alias `ResourceId: string` then if this is true, the
8888
generator will generate a `ResourceId.java` file. If false, it will just treat it
8989
as `java.util.String`.
90+
</ParamField>
91+
92+
## Publishing metadata configuration options
93+
94+
If you want to customize how your publishing metadata looks in your
95+
`build.gradle` file, update the `metadata` field in `generators.yml`.
96+
97+
```yml {4-9}
98+
generators:
99+
- name: fernapi/fern-java-sdk
100+
version: 2.7.0
101+
metadata:
102+
author: "AuthorName"
103+
104+
package-description: "Your site description here"
105+
reference-url: "https://example.com"
106+
license: "MIT"
107+
108+
```
109+
110+
<ParamField path="author" type="string" required={false} toc={true}>
111+
</ParamField>
112+
<ParamField path="email" type="string" required={false} toc={true}>
113+
</ParamField>
114+
<ParamField path="license" type="'MIT' | 'Apache-2.0' | { custom: 'Custom License Name' }" required={false} toc={true}>
115+
</ParamField>
116+
<ParamField path="package-description" type="string" required={false} toc={true}>
117+
</ParamField>
118+
<ParamField path="reference-url" type="string" required={false} toc={true}>
90119
</ParamField>

0 commit comments

Comments
 (0)