Add pom files to publishing steps (#2)
Necessary in order to be added to jcenter
This commit is contained in:
parent
0297fe0393
commit
618a097254
|
@ -1,5 +1,6 @@
|
||||||
apply plugin: 'java-library'
|
apply plugin: 'java-library'
|
||||||
apply plugin: 'com.jfrog.bintray'
|
apply plugin: 'com.jfrog.bintray'
|
||||||
|
apply plugin: 'maven-publish'
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compileOnly 'org.projectlombok:lombok:1.18.12'
|
compileOnly 'org.projectlombok:lombok:1.18.12'
|
||||||
|
@ -7,23 +8,56 @@ dependencies {
|
||||||
}
|
}
|
||||||
|
|
||||||
ext {
|
ext {
|
||||||
libraryVersion = '0.1.0'
|
libraryVersion = '0.2.0'
|
||||||
}
|
}
|
||||||
|
|
||||||
version = libraryVersion
|
version = libraryVersion
|
||||||
group = 'com.theokanning.openai-gpt3-java'
|
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 = "theokanning@gmail.com"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
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 {
|
bintray {
|
||||||
user = System.getenv("BINTRAY_USER")
|
user = System.getenv("BINTRAY_USER")
|
||||||
key = System.getenv("BINTRAY_KEY")
|
key = System.getenv("BINTRAY_KEY")
|
||||||
|
|
||||||
configurations = ['archives']
|
publications = ['ApiPublication']
|
||||||
pkg {
|
pkg {
|
||||||
repo = 'openai-gpt3-java'
|
repo = 'openai-gpt3-java'
|
||||||
name = 'api'
|
name = 'api'
|
||||||
vcsUrl = 'https://github.com/TheoKanning/openai-java.git'
|
vcsUrl = 'https://github.com/TheoKanning/openai-java.git'
|
||||||
licenses = ["MIT"]
|
licenses = ["MIT"]
|
||||||
publish = true
|
publish = false
|
||||||
version {
|
version {
|
||||||
name = libraryVersion
|
name = libraryVersion
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
apply plugin: 'java-library'
|
apply plugin: 'java-library'
|
||||||
apply plugin: 'com.jfrog.bintray'
|
apply plugin: 'com.jfrog.bintray'
|
||||||
|
apply plugin: 'maven-publish'
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
api project(":api")
|
api project(":api")
|
||||||
|
@ -9,23 +10,56 @@ dependencies {
|
||||||
}
|
}
|
||||||
|
|
||||||
ext {
|
ext {
|
||||||
libraryVersion = '0.1.0'
|
libraryVersion = '0.2.0'
|
||||||
}
|
}
|
||||||
|
|
||||||
version = libraryVersion
|
version = libraryVersion
|
||||||
group = 'com.theokanning.openai-gpt3-java'
|
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 = "theokanning@gmail.com"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
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 {
|
bintray {
|
||||||
user = System.getenv("BINTRAY_USER")
|
user = System.getenv("BINTRAY_USER")
|
||||||
key = System.getenv("BINTRAY_KEY")
|
key = System.getenv("BINTRAY_KEY")
|
||||||
|
|
||||||
configurations = ['archives']
|
publications = ['ClientPublication']
|
||||||
pkg {
|
pkg {
|
||||||
repo = 'openai-gpt3-java'
|
repo = 'openai-gpt3-java'
|
||||||
name = 'client'
|
name = 'client'
|
||||||
vcsUrl = 'https://github.com/TheoKanning/openai-java.git'
|
vcsUrl = 'https://github.com/TheoKanning/openai-java.git'
|
||||||
licenses = ["MIT"]
|
licenses = ["MIT"]
|
||||||
publish = true
|
publish = false
|
||||||
version {
|
version {
|
||||||
name = libraryVersion
|
name = libraryVersion
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue