Add bintray publishing tasks to gradle

This commit is contained in:
Theo Kanning 2020-10-04 20:57:57 -05:00
parent 427883b253
commit 779be1d98f
3 changed files with 60 additions and 0 deletions

View File

@ -1,3 +1,13 @@
buildscript {
repositories {
jcenter()
}
dependencies {
classpath "com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4"
}
}
allprojects {
repositories {
jcenter()

View File

@ -1,6 +1,31 @@
apply plugin: 'java-library'
apply plugin: 'com.jfrog.bintray'
dependencies {
compileOnly 'org.projectlombok:lombok:1.18.12'
annotationProcessor 'org.projectlombok:lombok:1.18.12'
}
ext {
libraryVersion = '0.1.0'
}
version = libraryVersion
group = 'com.theokanning.openai-gpt3-java'
bintray {
user = System.getenv("BINTRAY_USER")
key = System.getenv("BINTRAY_KEY")
configurations = ['archives']
pkg {
repo = 'openai-gpt3-java'
name = 'api'
vcsUrl = 'https://github.com/TheoKanning/openai-java.git'
licenses = ["MIT"]
publish = true
version {
name = libraryVersion
}
}
}

View File

@ -1,4 +1,5 @@
apply plugin: 'java-library'
apply plugin: 'com.jfrog.bintray'
dependencies {
api project(":openai-api")
@ -6,3 +7,27 @@ dependencies {
implementation 'com.squareup.retrofit2:adapter-rxjava2:2.9.0'
implementation 'com.squareup.retrofit2:converter-jackson:2.9.0'
}
ext {
libraryVersion = '0.1.0'
}
version = libraryVersion
group = 'com.theokanning.openai-gpt3-java'
bintray {
user = System.getenv("BINTRAY_USER")
key = System.getenv("BINTRAY_KEY")
configurations = ['archives']
pkg {
repo = 'openai-gpt3-java'
name = 'client'
vcsUrl = 'https://github.com/TheoKanning/openai-java.git'
licenses = ["MIT"]
publish = true
version {
name = libraryVersion
}
}
}