Add bintray publishing configuration
This commit is contained in:
parent
21db2e5e4f
commit
4a0a49be90
@ -1,6 +1,6 @@
|
|||||||
# kotlin-result
|
# 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
|
[`Result<V, E>`][result] is a monad for modelling success ([`Ok`][result-ok]) or
|
||||||
failure ([`Err`][result-err]) operations.
|
failure ([`Err`][result-err]) operations.
|
||||||
@ -9,11 +9,11 @@ failure ([`Err`][result-err]) operations.
|
|||||||
|
|
||||||
```groovy
|
```groovy
|
||||||
repositories {
|
repositories {
|
||||||
maven { url 'https://jitpack.io' }
|
maven { url = 'https://dl.bintray.com/michaelbull/maven' }
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile 'com.github.michaelbull:kotlin-result:1.0.8'
|
compile 'com.michael-bull.kotlin-result:kotlin-result:1.1.0'
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
18
build.gradle
18
build.gradle
@ -13,6 +13,7 @@ buildscript {
|
|||||||
plugins {
|
plugins {
|
||||||
id 'com.github.ben-manes.versions' version '0.20.0'
|
id 'com.github.ben-manes.versions' version '0.20.0'
|
||||||
id 'net.researchgate.release' version '2.7.0'
|
id 'net.researchgate.release' version '2.7.0'
|
||||||
|
id 'com.jfrog.bintray' version '1.8.4'
|
||||||
}
|
}
|
||||||
|
|
||||||
apply plugin: 'kotlin-platform-common'
|
apply plugin: 'kotlin-platform-common'
|
||||||
@ -32,7 +33,7 @@ dependencies {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dokka {
|
dokka {
|
||||||
kotlinTasks { [] }
|
kotlinTasks { [ ] }
|
||||||
sourceDirs = sourceSets.main.kotlin.srcDirs
|
sourceDirs = sourceSets.main.kotlin.srcDirs
|
||||||
outputFormat = 'javadoc'
|
outputFormat = 'javadoc'
|
||||||
outputDirectory = "${docsDir}/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
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
group=com.github.michaelbull
|
group=com.michael-bull.kotlin-result
|
||||||
version=1.0.9-SNAPSHOT
|
version=1.0.9-SNAPSHOT
|
||||||
|
|
||||||
dokkaVersion=0.9.17
|
dokkaVersion=0.9.17
|
||||||
|
Loading…
Reference in New Issue
Block a user