diff --git a/README.md b/README.md index 8b741ec..d968af5 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # kotlin-result -[![Release](https://jitpack.io/v/michaelbull/kotlin-result.svg)](https://jitpack.io/#michaelbull/kotlin-result) [![Build Status](https://travis-ci.org/michaelbull/kotlin-result.svg?branch=master)](https://travis-ci.org/michaelbull/kotlin-result) [![License](https://img.shields.io/github/license/michaelbull/kotlin-result.svg)](https://github.com/michaelbull/kotlin-result/blob/master/LICENSE) +[![Release](https://api.bintray.com/packages/michaelbull/maven/kotlin-result/images/download.svg)](https://bintray.com/michaelbull/maven/kotlin-result/_latestVersion) [![Build Status](https://travis-ci.org/michaelbull/kotlin-result.svg?branch=master)](https://travis-ci.org/michaelbull/kotlin-result) [![License](https://img.shields.io/github/license/michaelbull/kotlin-result.svg)](https://github.com/michaelbull/kotlin-result/blob/master/LICENSE) [`Result`][result] is a monad for modelling success ([`Ok`][result-ok]) or failure ([`Err`][result-err]) operations. @@ -9,11 +9,11 @@ failure ([`Err`][result-err]) operations. ```groovy repositories { - maven { url 'https://jitpack.io' } + maven { url = 'https://dl.bintray.com/michaelbull/maven' } } dependencies { - compile 'com.github.michaelbull:kotlin-result:1.0.8' + compile 'com.michael-bull.kotlin-result:kotlin-result:1.1.0' } ``` diff --git a/build.gradle b/build.gradle index 359ad5c..09120dd 100644 --- a/build.gradle +++ b/build.gradle @@ -13,6 +13,7 @@ buildscript { plugins { id 'com.github.ben-manes.versions' version '0.20.0' id 'net.researchgate.release' version '2.7.0' + id 'com.jfrog.bintray' version '1.8.4' } apply plugin: 'kotlin-platform-common' @@ -32,7 +33,7 @@ dependencies { } dokka { - kotlinTasks { [] } + kotlinTasks { [ ] } sourceDirs = sourceSets.main.kotlin.srcDirs outputFormat = 'javadoc' outputDirectory = "${docsDir}/javadoc" @@ -60,3 +61,18 @@ publishing { } } } + +bintray { + user = project.findProperty('bintrayUser') ?: '' + key = project.findProperty('bintrayKey') ?: '' + publications = [ 'mavenJava' ] + + pkg { + repo = 'maven' + name = 'kotlin-result' + licenses = [ 'ISC' ] + vcsUrl = 'git@github.com:michaelbull/kotlin-result.git' + } +} + +afterReleaseBuild.dependsOn bintrayUpload diff --git a/gradle.properties b/gradle.properties index 982193f..78a1612 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,4 +1,4 @@ -group=com.github.michaelbull +group=com.michael-bull.kotlin-result version=1.0.9-SNAPSHOT dokkaVersion=0.9.17