Skip to content

Commit ee9914c

Browse files
authored
Add Maven publishing configuration for Java SDK (#469)
1 parent 6d31678 commit ee9914c

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ config:
8585
</ParamField>
8686
8787
<ParamField path="publish-to" type="'central' | 'ossrh'" required={false} toc={true}>
88+
Publish target for Maven packages. Use `central` for Maven Central Portal or `ossrh` for legacy Nexus Repository.
8889
</ParamField>
8990
9091
<ParamField path="wrapped-aliases" type="boolean" default="false" required={false} toc={true}>

fern/products/sdks/overview/java/publishing-to-maven-central.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ groups:
7171
groupId:artifactId` field. This specifies how your Java SDK will be
7272
published and referenced in the Maven Central respository.
7373

74-
```yaml {8}
74+
```yaml {8,11}
7575
groups:
7676
java-sdk:
7777
generators:
@@ -80,6 +80,8 @@ groups:
8080
output:
8181
location: maven
8282
coordinate: com.company:sdk-name # <company name in reverse domain name format>:<SDK name>
83+
config:
84+
publish-to: central # Use 'central' for new Sonatype Central Portal (most common)
8385
github:
8486
repository: your-org/company-java
8587
```

0 commit comments

Comments
 (0)