Skip to content

Commit cf6e2d8

Browse files
committed
Add spifly to OSGi tests in order to make slf4j 2.x happy.
This technique was discovered and implemented by Lukasz Antoniak.
1 parent 59ecc72 commit cf6e2d8

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

osgi-tests/src/test/java/com/datastax/oss/driver/internal/osgi/support/BundleOptions.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,16 @@ public static CompositeOption logbackBundles() {
102102
options(
103103
mavenBundle("ch.qos.logback", "logback-classic").versionAsInProject(),
104104
mavenBundle("ch.qos.logback", "logback-core").versionAsInProject(),
105+
106+
// slf4j 2.x requires spifly in order to operate in an OSGi context
107+
mavenBundle("org.apache.aries.spifly", "org.apache.aries.spifly.dynamic.bundle")
108+
.version("1.3.7"),
109+
mavenBundle("org.apache.aries", "org.apache.aries.util").version("1.1.1"),
110+
mavenBundle("org.ow2.asm", "asm").version("9.6"),
111+
mavenBundle("org.ow2.asm", "asm-commons").version("9.6"),
112+
mavenBundle("org.ow2.asm", "asm-util").version("9.6"),
113+
mavenBundle("org.ow2.asm", "asm-tree").version("9.6"),
114+
mavenBundle("org.ow2.asm", "asm-analysis").version("9.6"),
105115
systemProperty("logback.configurationFile")
106116
.value("file:src/test/resources/logback-test.xml"));
107117
}

0 commit comments

Comments
 (0)