Publish your Java SDK with Maven
To make your Java SDK publicly accessible, publish to Maven. Once you’ve followed the steps below to connect your Maven account to your SDK, Fern will automatically publish the latest version of your SDK.
Creating a Maven username and password
Click on Access User Token
There will be a lock icon followed by the text Access User Token
. Click on Access User Token
. You may
need to re-authenticate to see the user token.
Add GitHub Secrets
You’ll need to store two repository secrets in your fern configuration repository (i.e. not the Java SDK repository), one for the username and one for the password.
For each, select New repository secret. Name your secret (we recommend MAVEN_USERNAME
and MAVEN_PASSWORD
,
respectively), add the corresponding value, and click Add secret.
Once you regenerate your SDK, a GitHub action will run to publish directly to Maven!