Skip to content

Commit 41fd657

Browse files
authored
Merge pull request #30 from launchableinc/fix_deploy_issue
fix deploy issue
2 parents 39f0db2 + f8c4f0c commit 41fd657

File tree

2 files changed

+27
-7
lines changed

2 files changed

+27
-7
lines changed

README.md

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![GitHub Packages](https://img.shields.io/badge/GitHub%20Packages-Available-green)](https://github.com/launchableinc/openai-java/packages)
1+
![Maven Central](https://img.shields.io/maven-central/v/com.launchableinc.openai-java/service?color=blue)
22

33
> ⚠️OpenAI has deprecated all Engine-based APIs.
44
> 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.
3838

3939
## Importing
4040

41+
This library is available through [Maven Central](https://central.sonatype.com/search?q=g:com.launchableinc.openai-java) - **no authentication required!**
42+
4143
### Gradle
4244

43-
`implementation 'com.launchableinc.openai-java:<api|client|service>:<version>'`
45+
Simply add the dependency to your `build.gradle`:
46+
47+
```gradle
48+
dependencies {
49+
implementation 'com.launchableinc.openai-java:service:0.4.1'
50+
// Or specific modules:
51+
implementation 'com.launchableinc.openai-java:api:0.4.1'
52+
implementation 'com.launchableinc.openai-java:client:0.4.1'
53+
}
54+
```
4455

4556
### Maven
4657

47-
```xml
58+
Add the dependency to your `pom.xml`:
4859

60+
```xml
61+
<dependency>
62+
<groupId>com.launchableinc.openai-java</groupId>
63+
<artifactId>service</artifactId>
64+
<version>0.4.1</version>
65+
</dependency>
66+
<!-- Or specific modules -->
4967
<dependency>
50-
<groupId>com.launchableinc.openai-java</groupId>
51-
<artifactId>{api|client|service}</artifactId>
52-
<version>version</version>
68+
<groupId>com.launchableinc.openai-java</groupId>
69+
<artifactId>api</artifactId>
70+
<version>0.4.1</version>
5371
</dependency>
5472
```
5573

74+
That's it! No additional repository configuration or authentication is needed since the library is available on Maven Central.
75+
5676
## Usage
5777

5878
### Data classes only

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ allprojects {
66
plugins.withId("com.vanniktech.maven.publish") {
77
mavenPublishing {
88
// Publish to Maven Central via Central Portal (no authentication required for users!)
9-
publishToMavenCentral()
9+
publishToMavenCentral(true)
1010
signAllPublications()
1111
}
1212
}

0 commit comments

Comments
 (0)