Downgrade dokka

Version 0.9.15 is producing an error on CI:
- Could not find org.jetbrains.dokka:integration:0.9.15.
This commit is contained in:
Michael Bull 2017-12-16 19:50:00 +00:00
parent c198328059
commit 7b5ffefa8f
3 changed files with 15 additions and 15 deletions

View File

@ -18,6 +18,7 @@ plugins {
apply plugin: 'kotlin-platform-common'
apply plugin: 'maven-publish'
apply plugin: 'net.researchgate.release'
apply plugin: 'org.jetbrains.dokka'
description = 'A Result monad for modelling success or failure operations.'
@ -31,6 +32,18 @@ dependencies {
testCompile "org.jetbrains.kotlin:kotlin-test-common:$kotlinVersion"
}
dokka {
outputFormat = 'javadoc'
outputDirectory = "$buildDir/docs"
}
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
}
task sourcesJar(type: Jar) {
group = LifecycleBasePlugin.BUILD_GROUP
description = 'Assembles a jar archive containing the main classes with sources.'
@ -41,6 +54,7 @@ task sourcesJar(type: Jar) {
publishing {
publications {
mavenJava(MavenPublication) {
artifact javadocJar
artifact sourcesJar
}
}

View File

@ -1,7 +1,7 @@
group=com.github.michaelbull.kotlin-result
version=1.0.3-SNAPSHOT
dokkaVersion=0.9.15
dokkaVersion=0.9.14
gradleReleaseVersion=2.6.0
hamkrestVersion=1.4.2.0
junitVersion=4.12

View File

@ -1,5 +1,4 @@
apply plugin: 'kotlin-platform-jvm'
apply plugin: 'org.jetbrains.dokka'
repositories {
mavenCentral()
@ -13,23 +12,10 @@ dependencies {
testCompile "org.jetbrains.kotlin:kotlin-test:$kotlinVersion"
}
dokka {
outputFormat = 'javadoc'
outputDirectory = "$buildDir/docs"
}
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
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
artifact javadocJar
}
}
}