Skip to content

Commit

Permalink
build(model-server): remove cucumber dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
mhuster23 committed Jul 4, 2024
1 parent c6a0f16 commit c473039
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 29 deletions.
1 change: 0 additions & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ ignite-indexing = { group = "org.apache.ignite", name = "ignite-indexing", versi
logback-classic = { group = "ch.qos.logback", name = "logback-classic", version = "1.5.6" }
postgresql = { group = "org.postgresql", name = "postgresql", version = "42.7.3" }
jcommander = { group = "com.beust", name = "jcommander", version = "1.82" }
cucumber-java = { group = "io.cucumber", name = "cucumber-java", version = "7.18.0" }
junit = { group = "junit", name = "junit", version = "4.13.2" }
xmlunit-core = { group = "org.xmlunit", name = "xmlunit-core", version.ref="xmlunit"}
xmlunit-matchers = { group = "org.xmlunit", name = "xmlunit-matchers", version.ref="xmlunit"}
Expand Down
28 changes: 0 additions & 28 deletions model-server/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ dependencies {
testImplementation(libs.junit)
testImplementation(libs.kotest.assertions.coreJvm)
testImplementation(libs.kotest.assertions.ktor)
testImplementation(libs.cucumber.java)
testImplementation(libs.ktor.server.test.host)
testImplementation(libs.kotlin.coroutines.test)
testImplementation(libs.jsoup)
Expand All @@ -84,10 +83,6 @@ tasks.test {
useJUnitPlatform()
}

val cucumberRuntime by configurations.creating {
extendsFrom(configurations["testImplementation"])
}

tasks.named<ShadowJar>("shadowJar") {
archiveBaseName.set("model-server")
archiveClassifier.set("fatJar")
Expand All @@ -113,28 +108,6 @@ val fatJarArtifact = artifacts.add("archives", fatJarFile) {
builtBy("shadowJar")
}

val cucumber = task("cucumber") {
dependsOn("shadowJar", "compileTestJava")
doLast {
javaexec {
mainClass.set("io.cucumber.core.cli.Main")
classpath = cucumberRuntime + sourceSets.main.get().output + sourceSets.test.get().output
args = listOf(
"--plugin",
"pretty",
// Enable junit reporting so that GitHub actions can report on these tests, too
"--plugin",
"junit:${project.layout.buildDirectory.dir("test-results/cucumber.xml").get()}",
// Change glue for your project package where the step definitions are.
"--glue",
"org.modelix.model.server.functionaltests",
// Specify where the feature files are.
"src/test/resources/functionaltests",
)
}
}
}

// copies the openAPI specifications from the api folder into a resource
// folder so that they are packaged and deployed with the model-server
tasks.register<Copy>("copyApis") {
Expand All @@ -149,7 +122,6 @@ tasks.named("compileKotlin") {
}

tasks.named("build") {
dependsOn("cucumber")
dependsOn("copyApis")
}

Expand Down

0 comments on commit c473039

Please sign in to comment.