Files
atrium/misc/tools/readme-examples/build.gradle
Robert Stoll 744657a8b7 remove last remaining bits of bintray/jcenter
and switch installation example to kotlin-dsl
2021-08-10 13:22:30 +02:00

38 lines
1.3 KiB
Groovy

description = 'Runs examples, includes the code and the output in README.md'
apply plugin: 'kotlin'
dependencies {
implementation "org.junit.platform:junit-platform-console-standalone:$junitPlatformVersion"
implementation "org.spekframework.spek2:spek-dsl-jvm:$spek2Version"
implementation "org.spekframework.spek2:spek-runner-junit5:$spek2Version"
implementation "org.spekframework.spek2:spek-runtime-jvm:$spek2Version"
runtimeOnly "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
implementation kotlinStdlib()
implementation prefixedProject('fluent-en_GB-jvm')
implementation niok()
implementation spekExtensions()
}
compileKotlin {
kotlinOptions.languageVersion = '1.3'
}
def readme = task("readme", type: JavaExec, group: 'documentation') {
description = "Runs examples, includes the code and the output in README.md"
classpath sourceSets.main.runtimeClasspath
environment "README_SOURCETREE", dokka_sourceMapping
main = 'org.junit.platform.console.ConsoleLauncher'
args = [
'--scan-class-path', sourceSets['main'].output.classesDirs.asPath,
'--disable-banner',
'--fail-if-no-tests',
'--include-engine', 'spek2-readme',
'--details', 'summary'
]
}
check.dependsOn(readme)