9ddac98e0c
Converts the unit tests to use kotlin-test, allowing them to target both the jvm and js platforms.
48 lines
1.2 KiB
Groovy
48 lines
1.2 KiB
Groovy
buildscript {
|
|
repositories {
|
|
mavenCentral()
|
|
jcenter()
|
|
}
|
|
|
|
dependencies {
|
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
|
|
classpath "org.jetbrains.dokka:dokka-gradle-plugin:$dokkaVersion"
|
|
classpath "net.researchgate:gradle-release:$gradleReleaseVersion"
|
|
}
|
|
}
|
|
|
|
plugins {
|
|
id 'com.github.ben-manes.versions' version '0.17.0'
|
|
}
|
|
|
|
apply plugin: 'kotlin-platform-common'
|
|
apply plugin: 'maven-publish'
|
|
apply plugin: 'net.researchgate.release'
|
|
|
|
description = 'A Result monad for modelling success or failure operations.'
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
compile "org.jetbrains.kotlin:kotlin-stdlib-common:$kotlinVersion"
|
|
testCompile "org.jetbrains.kotlin:kotlin-test-annotations-common:$kotlinVersion"
|
|
testCompile "org.jetbrains.kotlin:kotlin-test-common:$kotlinVersion"
|
|
}
|
|
|
|
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
|
|
}
|
|
|
|
publishing {
|
|
publications {
|
|
mavenJava(MavenPublication) {
|
|
artifact sourcesJar
|
|
}
|
|
}
|
|
}
|