diff --git a/fern/products/sdks/overview/java/configuration.mdx b/fern/products/sdks/overview/java/configuration.mdx index 7a1fe972a..04dfde919 100644 --- a/fern/products/sdks/overview/java/configuration.mdx +++ b/fern/products/sdks/overview/java/configuration.mdx @@ -85,6 +85,7 @@ config: +Publish target for Maven packages. Use `central` for Maven Central Portal or `ossrh` for legacy Nexus Repository. diff --git a/fern/products/sdks/overview/java/publishing-to-maven-central.mdx b/fern/products/sdks/overview/java/publishing-to-maven-central.mdx index 790760c80..0325aa427 100644 --- a/fern/products/sdks/overview/java/publishing-to-maven-central.mdx +++ b/fern/products/sdks/overview/java/publishing-to-maven-central.mdx @@ -71,7 +71,7 @@ groups: groupId:artifactId` field. This specifies how your Java SDK will be published and referenced in the Maven Central respository. - ```yaml {8} + ```yaml {8,11} groups: java-sdk: generators: @@ -80,6 +80,8 @@ groups: output: location: maven coordinate: com.company:sdk-name # : + config: + publish-to: central # Use 'central' for new Sonatype Central Portal (most common) github: repository: your-org/company-java ```