diff --git a/README.md b/README.md index 3f8bf033..fb728286 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[![GitHub Packages](https://img.shields.io/badge/GitHub%20Packages-Available-green)](https://github.com/launchableinc/openai-java/packages) +![Maven Central](https://img.shields.io/maven-central/v/com.launchableinc.openai-java/service?color=blue) > ⚠️OpenAI has deprecated all Engine-based APIs. > See [Deprecated Endpoints](https://github.com/launchableinc/openai-java#deprecated-endpoints) below @@ -38,21 +38,41 @@ as well as an example project using the service. ## Importing +This library is available through [Maven Central](https://central.sonatype.com/search?q=g:com.launchableinc.openai-java) - **no authentication required!** + ### Gradle -`implementation 'com.launchableinc.openai-java::'` +Simply add the dependency to your `build.gradle`: + +```gradle +dependencies { + implementation 'com.launchableinc.openai-java:service:0.4.1' + // Or specific modules: + implementation 'com.launchableinc.openai-java:api:0.4.1' + implementation 'com.launchableinc.openai-java:client:0.4.1' +} +``` ### Maven -```xml +Add the dependency to your `pom.xml`: +```xml + + com.launchableinc.openai-java + service + 0.4.1 + + - com.launchableinc.openai-java - {api|client|service} - version + com.launchableinc.openai-java + api + 0.4.1 ``` +That's it! No additional repository configuration or authentication is needed since the library is available on Maven Central. + ## Usage ### Data classes only diff --git a/build.gradle b/build.gradle index 9e659c5c..c2d2584c 100644 --- a/build.gradle +++ b/build.gradle @@ -6,7 +6,7 @@ allprojects { plugins.withId("com.vanniktech.maven.publish") { mavenPublishing { // Publish to Maven Central via Central Portal (no authentication required for users!) - publishToMavenCentral() + publishToMavenCentral(true) signAllPublications() } }