Forgot to commit.
This commit is contained in:
parent
f18ac5976f
commit
d4fe2807d3
1 changed files with 5 additions and 30 deletions
|
@ -1,11 +1,4 @@
|
||||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
||||||
import org.junit.platform.gradle.plugin.JUnitPlatformExtension
|
|
||||||
|
|
||||||
buildscript {
|
|
||||||
dependencies {
|
|
||||||
classpath("org.junit.platform:junit-platform-gradle-plugin:1.0.0")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
`java-gradle-plugin`
|
`java-gradle-plugin`
|
||||||
|
@ -25,16 +18,12 @@ group = "net.thauvin.erik.gradle"
|
||||||
var github = "https://github.com/ethauvin/semver-gradle"
|
var github = "https://github.com/ethauvin/semver-gradle"
|
||||||
var packageName = "net.thauvin.erik.gradle.semver"
|
var packageName = "net.thauvin.erik.gradle.semver"
|
||||||
|
|
||||||
var spekVersion = "1.2.1"
|
var spek_version = "2.0.1"
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
jcenter()
|
jcenter()
|
||||||
}
|
}
|
||||||
|
|
||||||
apply {
|
|
||||||
plugin("org.junit.platform.gradle.plugin")
|
|
||||||
}
|
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation(gradleApi())
|
implementation(gradleApi())
|
||||||
|
|
||||||
|
@ -42,22 +31,8 @@ dependencies {
|
||||||
testImplementation(kotlin("test"))
|
testImplementation(kotlin("test"))
|
||||||
testImplementation(gradleTestKit())
|
testImplementation(gradleTestKit())
|
||||||
|
|
||||||
testImplementation("org.jetbrains.spek:spek-api:$spekVersion") {
|
testImplementation("org.spekframework.spek2:spek-dsl-jvm:$spek_version")
|
||||||
exclude(group = "org.jetbrains.kotlin")
|
testRuntimeOnly("org.spekframework.spek2:spek-runner-junit5:$spek_version")
|
||||||
}
|
|
||||||
|
|
||||||
testRuntimeOnly("org.jetbrains.spek:spek-junit-platform-engine:$spekVersion") {
|
|
||||||
exclude(group = "org.jetbrains.kotlin")
|
|
||||||
exclude(group = "org.junit.platform")
|
|
||||||
}
|
|
||||||
|
|
||||||
testRuntimeOnly("org.junit.platform:junit-platform-launcher:1.5.0-M1") {
|
|
||||||
because("Needed to run tests IDEs that bundle an older version")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
configure<JUnitPlatformExtension> {
|
|
||||||
enableStandardTestTask = true
|
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks {
|
tasks {
|
||||||
|
@ -69,7 +44,7 @@ tasks {
|
||||||
|
|
||||||
withType<Test> {
|
withType<Test> {
|
||||||
useJUnitPlatform {
|
useJUnitPlatform {
|
||||||
includeEngines("spek")
|
includeEngines("spek2")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -90,7 +65,7 @@ tasks {
|
||||||
}
|
}
|
||||||
|
|
||||||
detekt {
|
detekt {
|
||||||
input = files("src/main/kotlin")
|
input = files("src/main/kotlin", "src/test/kotlin")
|
||||||
filters = ".*/resources/.*,.*/build/.*"
|
filters = ".*/resources/.*,.*/build/.*"
|
||||||
baseline = project.rootDir.resolve("detekt-baseline.xml")
|
baseline = project.rootDir.resolve("detekt-baseline.xml")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue