diff --git a/README.md b/README.md index 16598d1..a084fc0 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,5 @@ # Ask Kodiak Java SDK -## :warning: This is still in beta, as such, expect changes. :warning: - ## Overview The Ask Kodiak Java SDK is a straightforward Java implementation of the @@ -12,9 +10,19 @@ Settings once you've created an account with Ask Kodiak. The SDK is implemented with [Feign](https://github.com/OpenFeign/feign). ## Getting Started -:construction: At the current time, you'll have to build this yourself, -however it will be available on Maven central in the future. -:construction: +Maven: +```xml + + com.trustedchoice + ask-kodiak-sdk + 1.0.0 + pom + +``` +Gradle: +```groovy +compile 'com.trustedchoice:ask-kodiak-sdk:1.0.0' +``` ## Building ```bash diff --git a/build.gradle.kts b/build.gradle.kts index 6dda7e6..41ce786 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,7 +1,10 @@ +import com.jfrog.bintray.gradle.BintrayExtension + plugins { `java-library` `maven-publish` id("io.freefair.lombok") version "3.2.0" + id("com.jfrog.bintray") version "1.8.4" } group = "com.trustedchoice" @@ -48,10 +51,58 @@ publishing { from(components["java"]) artifact(tasks["sourcesJar"]) artifact(tasks["javadocJar"]) + + //Complying with pom requirements for maven central + pom { + name.set("ask-kodiak-sdk") + description.set("The Ask Kodiak Java SDK is a straightforward Java implementation of the Ask Kodiak API for JVM environments.") + url.set("https://github.com/trustedchoice/ask-kodiak-sdk") + licenses { + license { + name.set("MIT License") + url.set("http://www.opensource.org/licenses/mit-license.php") + distribution.set("repo") + } + developers { + developer { + id.set("aweigold") + name.set("Adam J. Weigold") + email.set("adam.weigold@trustedchoice.com") + } + } + scm { + url.set("https://github.com/trustedchoice/ask-kodiak-sdk") + } + } + } } } } +//Distributing to maven central via bintray is easier +bintray { + user = System.getenv("BINTRAY_USER") + key = System.getenv("BINTRAY_KEY") + pkg(closureOf { + repo = "ask-kodiak-sdk" + name = "ask-kodiak-sdk" + userOrg = "trustedchoice" + websiteUrl = "https://github.com/trustedchoice/ask-kodiak-sdk" + githubRepo = "trustedchoice/ask-kodiak-sdk" + vcsUrl = "https://github.com/trustedchoice/ask-kodiak-sdk" + description = "The Ask Kodiak Java SDK is a straightforward Java implementation of the Ask Kodiak API for JVM environments." + setLicenses("MIT") + desc = description + version(closureOf { + name = project.version.toString() + gpg(closureOf { + sign = true + }) + }) + }) + setPublications("mavenJava") +} + val jacksonVersion = "2.9.8" val feignVersion = "10.2.0" val slf4jVersion = "1.7.26"