2017-10-21 02:51:30 +00:00
|
|
|
buildscript {
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
jcenter()
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
|
|
|
|
classpath "org.jetbrains.dokka:dokka-gradle-plugin:$dokkaVersion"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-12-16 19:30:54 +00:00
|
|
|
plugins {
|
2018-08-09 14:27:18 +00:00
|
|
|
id 'com.github.ben-manes.versions' version '0.20.0'
|
|
|
|
id 'net.researchgate.release' version '2.7.0'
|
2017-12-16 19:30:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
apply plugin: 'kotlin-platform-common'
|
2017-10-21 23:59:16 +00:00
|
|
|
apply plugin: 'maven-publish'
|
2017-12-16 19:50:00 +00:00
|
|
|
apply plugin: 'org.jetbrains.dokka'
|
2017-10-21 21:33:59 +00:00
|
|
|
|
|
|
|
description = 'A Result monad for modelling success or failure operations.'
|
2017-10-21 02:51:30 +00:00
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2018-09-18 17:26:45 +00:00
|
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-common:$kotlinVersion"
|
|
|
|
testImplementation "org.jetbrains.kotlin:kotlin-test-common:$kotlinVersion"
|
|
|
|
testImplementation "org.jetbrains.kotlin:kotlin-test-annotations-common:$kotlinVersion"
|
2017-10-21 02:51:30 +00:00
|
|
|
}
|
|
|
|
|
2017-12-16 19:50:00 +00:00
|
|
|
dokka {
|
2018-09-18 17:26:45 +00:00
|
|
|
kotlinTasks { [] }
|
|
|
|
sourceDirs = sourceSets.main.kotlin.srcDirs
|
2017-12-16 19:50:00 +00:00
|
|
|
outputFormat = 'javadoc'
|
2018-02-28 03:15:24 +00:00
|
|
|
outputDirectory = "${docsDir}/javadoc"
|
2017-12-16 19:50:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
task javadocJar(type: Jar, dependsOn: dokka) {
|
|
|
|
group = LifecycleBasePlugin.BUILD_GROUP
|
|
|
|
description = 'Assembles a jar archive containing the Javadoc API documentation.'
|
|
|
|
classifier = 'javadoc'
|
|
|
|
from dokka.outputDirectory
|
|
|
|
}
|
|
|
|
|
2017-10-21 19:03:51 +00:00
|
|
|
task sourcesJar(type: Jar) {
|
|
|
|
group = LifecycleBasePlugin.BUILD_GROUP
|
|
|
|
description = 'Assembles a jar archive containing the main classes with sources.'
|
|
|
|
classifier = 'sources'
|
|
|
|
from sourceSets.main.allSource
|
2017-10-21 02:51:30 +00:00
|
|
|
}
|
2017-10-21 21:37:45 +00:00
|
|
|
|
2017-10-21 23:59:16 +00:00
|
|
|
publishing {
|
|
|
|
publications {
|
|
|
|
mavenJava(MavenPublication) {
|
2017-12-16 19:50:00 +00:00
|
|
|
artifact javadocJar
|
2017-10-21 23:59:16 +00:00
|
|
|
artifact sourcesJar
|
|
|
|
}
|
|
|
|
}
|
2017-10-21 21:37:45 +00:00
|
|
|
}
|