Add bintray publishing configuration

This commit is contained in:
Michael Bull 2018-09-18 22:20:37 +01:00
parent 21db2e5e4f
commit 4a0a49be90
3 changed files with 21 additions and 5 deletions

View File

@ -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<V, E>`][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'
}
```

View File

@ -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

View File

@ -1,4 +1,4 @@
group=com.github.michaelbull
group=com.michael-bull.kotlin-result
version=1.0.9-SNAPSHOT
dokkaVersion=0.9.17