| plugins { |
| `kotlin-library-conventions` |
| `shadow-conventions` |
| `testing-conventions` |
| } |
| |
| description = "JUnit Jupiter Params" |
| |
| dependencies { |
| api(platform(projects.junitBom)) |
| api(projects.junitJupiterApi) |
| |
| compileOnlyApi(libs.apiguardian) |
| |
| shadowed(libs.univocity.parsers) |
| |
| testImplementation(projects.junitPlatformTestkit) |
| testImplementation(projects.junitJupiterEngine) |
| testImplementation(projects.junitPlatformLauncher) |
| testImplementation(projects.junitPlatformSuiteEngine) |
| testImplementation(testFixtures(projects.junitJupiterEngine)) |
| |
| compileOnly(kotlin("stdlib")) |
| testImplementation(kotlin("stdlib")) |
| |
| osgiVerification(projects.junitJupiterEngine) |
| osgiVerification(projects.junitPlatformLauncher) |
| } |
| |
| tasks { |
| jar { |
| bundle { |
| bnd(""" |
| Require-Capability:\ |
| org.junit.platform.engine;\ |
| filter:='(&(org.junit.platform.engine=junit-jupiter)(version>=${'$'}{version_cleanup;${rootProject.property("version")!!}})(!(version>=${'$'}{versionmask;+;${'$'}{version_cleanup;${rootProject.property("version")!!}}})))';\ |
| effective:=active |
| """) |
| } |
| } |
| } |
| |
| tasks { |
| shadowJar { |
| relocate("com.univocity", "org.junit.jupiter.params.shadow.com.univocity") |
| from(projectDir) { |
| include("LICENSE-univocity-parsers.md") |
| into("META-INF") |
| } |
| } |
| } |