Skip to content

Commit

Permalink
Publishing updates to build script
Browse files Browse the repository at this point in the history
  • Loading branch information
aweigold committed Apr 4, 2019
1 parent a896ea4 commit 6df5745
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 5 deletions.
18 changes: 13 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
<dependency>
<groupId>com.trustedchoice</groupId>
<artifactId>ask-kodiak-sdk</artifactId>
<version>1.0.0</version>
<type>pom</type>
</dependency>
```
Gradle:
```groovy
compile 'com.trustedchoice:ask-kodiak-sdk:1.0.0'
```

## Building
```bash
Expand Down
51 changes: 51 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -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"
Expand Down Expand Up @@ -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("[email protected]")
}
}
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<BintrayExtension.PackageConfig> {
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<BintrayExtension.VersionConfig> {
name = project.version.toString()
gpg(closureOf<BintrayExtension.GpgConfig> {
sign = true
})
})
})
setPublications("mavenJava")
}

val jacksonVersion = "2.9.8"
val feignVersion = "10.2.0"
val slf4jVersion = "1.7.26"
Expand Down

0 comments on commit 6df5745

Please sign in to comment.