@@ -16,21 +16,29 @@ val testngRepository by configurations.creating {
1616dependencies {
1717 testngRepository(projects.testng)
1818
19- testImplementation(projects.testng)
19+ testImplementation(projects.testng) {
20+ capabilities {
21+ requireFeature(" guice" )
22+ }
23+ }
2024
2125 testImplementation(" javax:javaee-api:8.0.1" ) {
2226 // The dependency was not obvious, logged https://github.com/cbeust/testng/issues/2578
2327 because(" PaxExam uses javax.transaction.NotSupportedException and other classes" )
2428 }
25- testImplementation(" org.ops4j.pax.exam:pax-exam-container-native:4.13.1 " )
29+ testImplementation(" org.ops4j.pax.exam:pax-exam-container-native:4.14.0 " )
2630 // pax-exam is not yet compatible with junit5
2731 // see https://github.com/ops4j/org.ops4j.pax.exam2/issues/886
28- testImplementation(" org.ops4j.pax.exam:pax-exam-testng:4.13.5 " )
29- testImplementation(" org.ops4j.pax.exam:pax-exam-link-mvn:4.13.5 " )
32+ testImplementation(" org.ops4j.pax.exam:pax-exam-testng:4.14.0 " )
33+ testImplementation(" org.ops4j.pax.exam:pax-exam-link-mvn:4.14.0 " )
3034 testImplementation(" org.ops4j.pax.url:pax-url-aether:2.6.12" )
3135 testImplementation(" org.apache.felix:org.apache.felix.framework:7.0.5" )
3236 testImplementation(" ch.qos.logback:logback-core:1.4.11" )
3337 testImplementation(" ch.qos.logback:logback-classic:1.4.11" )
38+ testRuntimeOnly(" org.assertj:assertj-core:3.23.1" )
39+ testRuntimeOnly(" org.apache.aries.spifly:org.apache.aries.spifly.dynamic.framework.extension:1.3.7" ) {
40+ because(" slf4j-api 2.0 requires osgi.serviceloader.processor, see https://stackoverflow.com/a/77867804" )
41+ }
3442}
3543
3644// <editor-fold defaultstate="collapsed" desc="Pass dependency versions to pax-exam container">
@@ -83,5 +91,4 @@ tasks.test {
8391 " -Dtestng.org.ops4j.pax.url.mvn.localRepository=file:${paxLocalCacheRepository.get().asFile.absolutePath} @id=pax-repo"
8492 )
8593 })
86- ignoreFailures = true
8794}
0 commit comments