Skip to content

Commit

Permalink
Remove runtime dependency from Jupiter API to its Engine
Browse files Browse the repository at this point in the history
Reverts #1669
  • Loading branch information
sormuras committed Nov 30, 2018
1 parent 3c485fa commit e11febe
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions junit-jupiter-api/junit-jupiter-api.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
import org.gradle.plugins.ide.eclipse.model.Classpath
import org.gradle.plugins.ide.eclipse.model.ProjectDependency

description = "JUnit Jupiter API"

dependencies {
api("org.opentest4j:opentest4j:${Versions.ota4j}")
api(project(":junit-platform-commons"))
compileOnly("org.jetbrains.kotlin:kotlin-stdlib")
runtimeOnly(project(":junit-jupiter-engine"))
}

tasks.jar {
Expand All @@ -17,12 +13,3 @@ tasks.jar {
)
}
}

// Remove runtimeOnly dependency on junit-jupiter-engine and junit-platform-engine.
// See https://github.com/junit-team/junit5/issues/1669
eclipse.classpath.file.whenMerged(Action<Classpath> {
entries.removeAll {
it is ProjectDependency &&
(it.path.contains("junit-jupiter-engine") || it.path.contains("junit-platform-engine"))
}
})

0 comments on commit e11febe

Please sign in to comment.