This repository has been archived by the owner on Jun 6, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add pom files to publishing steps (#2)
Necessary in order to be added to jcenter
- Loading branch information
1 parent
0297fe0
commit 618a097
Showing
2 changed files
with
74 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,63 @@ | ||
apply plugin: 'java-library' | ||
apply plugin: 'com.jfrog.bintray' | ||
apply plugin: 'maven-publish' | ||
|
||
dependencies { | ||
compileOnly 'org.projectlombok:lombok:1.18.12' | ||
annotationProcessor 'org.projectlombok:lombok:1.18.12' | ||
} | ||
|
||
ext { | ||
libraryVersion = '0.1.0' | ||
libraryVersion = '0.2.0' | ||
} | ||
|
||
version = libraryVersion | ||
group = 'com.theokanning.openai-gpt3-java' | ||
|
||
publishing { | ||
publications { | ||
ApiPublication(MavenPublication) { | ||
from components.java | ||
groupId project.group | ||
artifactId 'api' | ||
version libraryVersion | ||
pom { | ||
description = 'POJOs for the OpenAI GPT-3 API' | ||
name = 'api' | ||
url = 'https://github.com/theokanning/openai-java' | ||
developers { | ||
developer { | ||
id = "theokanning" | ||
name = "Theo Kanning" | ||
email = "[email protected]" | ||
} | ||
} | ||
scm { | ||
url = "https://github.com/theokanning/openai-java" | ||
} | ||
licenses { | ||
license { | ||
name = "The MIT License" | ||
url = "https://www.mit.edu/~amini/LICENSE.md" | ||
distribution = "repo" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
bintray { | ||
user = System.getenv("BINTRAY_USER") | ||
key = System.getenv("BINTRAY_KEY") | ||
|
||
configurations = ['archives'] | ||
publications = ['ApiPublication'] | ||
pkg { | ||
repo = 'openai-gpt3-java' | ||
name = 'api' | ||
vcsUrl = 'https://github.com/TheoKanning/openai-java.git' | ||
licenses = ["MIT"] | ||
publish = true | ||
publish = false | ||
version { | ||
name = libraryVersion | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
apply plugin: 'java-library' | ||
apply plugin: 'com.jfrog.bintray' | ||
apply plugin: 'maven-publish' | ||
|
||
dependencies { | ||
api project(":api") | ||
|
@@ -9,23 +10,56 @@ dependencies { | |
} | ||
|
||
ext { | ||
libraryVersion = '0.1.0' | ||
libraryVersion = '0.2.0' | ||
} | ||
|
||
version = libraryVersion | ||
group = 'com.theokanning.openai-gpt3-java' | ||
|
||
publishing { | ||
publications { | ||
ClientPublication(MavenPublication) { | ||
from components.java | ||
groupId project.group | ||
artifactId 'client' | ||
version libraryVersion | ||
pom { | ||
description = 'Basic retrofit client for OpenAI\'s GPT-3 API' | ||
name = 'client' | ||
url = 'https://github.com/theokanning/openai-java' | ||
developers { | ||
developer { | ||
id = "theokanning" | ||
name = "Theo Kanning" | ||
email = "[email protected]" | ||
} | ||
} | ||
scm { | ||
url = "https://github.com/theokanning/openai-java" | ||
} | ||
licenses { | ||
license { | ||
name = "The MIT License" | ||
url = "https://www.mit.edu/~amini/LICENSE.md" | ||
distribution = "repo" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
bintray { | ||
user = System.getenv("BINTRAY_USER") | ||
key = System.getenv("BINTRAY_KEY") | ||
|
||
configurations = ['archives'] | ||
publications = ['ClientPublication'] | ||
pkg { | ||
repo = 'openai-gpt3-java' | ||
name = 'client' | ||
vcsUrl = 'https://github.com/TheoKanning/openai-java.git' | ||
licenses = ["MIT"] | ||
publish = true | ||
publish = false | ||
version { | ||
name = libraryVersion | ||
} | ||
|