@@ -16,21 +16,40 @@ 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+ }
24+ testImplementation(projects.testng) {
25+ capabilities {
26+ requireFeature(" yaml" )
27+ }
28+ }
2029
2130 testImplementation(" javax:javaee-api:8.0.1" ) {
2231 // The dependency was not obvious, logged https://github.com/cbeust/testng/issues/2578
2332 because(" PaxExam uses javax.transaction.NotSupportedException and other classes" )
2433 }
25- testImplementation(" org.ops4j.pax.exam:pax-exam-container-native:4.13.1 " )
34+ testImplementation(" org.ops4j.pax.exam:pax-exam-container-native:4.14.0 " )
2635 // pax-exam is not yet compatible with junit5
2736 // 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 " )
37+ testImplementation(" org.ops4j.pax.exam:pax-exam-testng:4.14.0 " )
38+ testImplementation(" org.ops4j.pax.exam:pax-exam-link-mvn:4.14.0 " )
3039 testImplementation(" org.ops4j.pax.url:pax-url-aether:2.6.12" )
3140 testImplementation(" org.apache.felix:org.apache.felix.framework:7.0.5" )
3241 testImplementation(" ch.qos.logback:logback-core:1.4.11" )
3342 testImplementation(" ch.qos.logback:logback-classic:1.4.11" )
43+ testRuntimeOnly(" org.assertj:assertj-core:3.23.1" )
44+ testRuntimeOnly(" org.apache.servicemix.bundles:org.apache.servicemix.bundles.aopalliance:1.0_6" ) {
45+ because(" Guice requires org.aopalliance.intercept package in osgi, however, aopalliance:aopalliance has no osgi headers" )
46+ }
47+ testRuntimeOnly(" com.google.errorprone:error_prone_annotations:2.36.0" ) {
48+ because(" It is needed for Guava, only recent version of error_prone_annotations have osgi headers" )
49+ }
50+ testRuntimeOnly(" org.apache.aries.spifly:org.apache.aries.spifly.dynamic.framework.extension:1.3.7" ) {
51+ because(" slf4j-api 2.0 requires osgi.serviceloader.processor, see https://stackoverflow.com/a/77867804" )
52+ }
3453}
3554
3655// <editor-fold defaultstate="collapsed" desc="Pass dependency versions to pax-exam container">
@@ -83,5 +102,4 @@ tasks.test {
83102 " -Dtestng.org.ops4j.pax.url.mvn.localRepository=file:${paxLocalCacheRepository.get().asFile.absolutePath} @id=pax-repo"
84103 )
85104 })
86- ignoreFailures = true
87105}
0 commit comments