diff --git a/build.gradle b/build.gradle index 7617d83..85a20ae 100644 --- a/build.gradle +++ b/build.gradle @@ -1,3 +1,13 @@ +buildscript { + repositories { + jcenter() + } + dependencies { + classpath "com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4" + } +} + + allprojects { repositories { jcenter() diff --git a/openai-api/build.gradle b/openai-api/build.gradle index e275327..259b357 100644 --- a/openai-api/build.gradle +++ b/openai-api/build.gradle @@ -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 + } + } } \ No newline at end of file diff --git a/openai-client/build.gradle b/openai-client/build.gradle index b84fee6..72ef524 100644 --- a/openai-client/build.gradle +++ b/openai-client/build.gradle @@ -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 + } + } +} \ No newline at end of file