9ddac98e0c
Converts the unit tests to use kotlin-test, allowing them to target both the jvm and js platforms.
36 lines
872 B
Groovy
36 lines
872 B
Groovy
apply plugin: 'kotlin-platform-jvm'
|
|
apply plugin: 'org.jetbrains.dokka'
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion"
|
|
expectedBy project(":")
|
|
testCompile "junit:junit:$junitVersion"
|
|
testCompile "org.jetbrains.kotlin:kotlin-test-junit:$kotlinVersion"
|
|
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
|
|
}
|
|
}
|
|
}
|