Skip to content

Commit

Permalink
build > remove unnecessary build config
Browse files Browse the repository at this point in the history
  • Loading branch information
SgtSilvio committed Jun 10, 2022
1 parent 569ce78 commit fd9b57d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 13 deletions.
15 changes: 3 additions & 12 deletions build.gradle.kts
Expand Up @@ -216,7 +216,6 @@ tasks.test {

dependencies {
testImplementation("org.junit.jupiter:junit-jupiter:${property("junit-jupiter.version")}")
testImplementation("org.awaitility:awaitility:${property("awaitility.version")}")
testImplementation("org.mockito:mockito-core:${property("mockito.version")}")
testImplementation("com.squareup.okhttp3:mockwebserver:${property("ok-http.version")}")
testImplementation("com.ginsberg:junit5-system-exit:${property("system-exit.version")}")
Expand All @@ -239,24 +238,16 @@ val integrationTestRuntimeOnly: Configuration by configurations.getting {
dependencies {
integrationTestImplementation("com.hivemq:hivemq-testcontainer-junit5:${property("hivemq-testcontainer.version")}")
integrationTestImplementation("org.testcontainers:testcontainers:${property("testcontainers.version")}")
}

tasks.named<JavaCompile>("compileIntegrationTestJava") {
javaCompiler.set(javaToolchains.compilerFor {
languageVersion.set(JavaLanguageVersion.of(8))
})
integrationTestImplementation("org.awaitility:awaitility:${property("awaitility.version")}")
}

val integrationTest by tasks.registering(Test::class) {
group = "verification"
description = "Runs integration tests."
testClassesDirs = sourceSets[name].output.classesDirs
classpath = sourceSets[name].runtimeClasspath
useJUnitPlatform()
testClassesDirs = sourceSets["integrationTest"].output.classesDirs
classpath = sourceSets["integrationTest"].runtimeClasspath
shouldRunAfter(tasks.test)
javaLauncher.set(javaToolchains.launcherFor {
languageVersion.set(JavaLanguageVersion.of(8))
})
}

tasks.check { dependsOn(integrationTest) }
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Expand Up @@ -27,7 +27,6 @@ tinylog.version=2.4.0
#
# test dependencies
#
awaitility.version=4.1.1
junit-jupiter.version=5.8.2
mockito.version=4.1.0
system-exit.version=1.1.2
Expand All @@ -36,6 +35,7 @@ system-exit.version=1.1.2
#
hivemq-testcontainer.version=2.0.0
testcontainers.version=1.16.2
awaitility.version=4.1.1
#
# plugins
#
Expand Down

0 comments on commit fd9b57d

Please sign in to comment.