Commit 8ae775b 1 parent 0e2fe7b commit 8ae775b Copy full SHA for 8ae775b
File tree 2 files changed +13
-0
lines changed
src/jvmIntegrationTest/kotlin/okio/test/integration
2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -228,10 +228,16 @@ tasks {
228
228
options.release = 9
229
229
}
230
230
231
+ val compileJava9KotlinJvm = named<KotlinCompile >(" compileJava9KotlinJvm" )
232
+
231
233
named<Jar >(" jvmJar" ) {
232
234
from(compileJava9Java.flatMap { it.destinationDirectory }) {
233
235
into(" META-INF/versions/9" )
234
236
}
237
+ from(compileJava9KotlinJvm.flatMap { it.destinationDirectory }) {
238
+ into(" META-INF/versions/9" )
239
+ exclude(" META-INF" )
240
+ }
235
241
val bndExtension = BundleTaskExtension (this )
236
242
bndExtension.setBnd(
237
243
"""
Original file line number Diff line number Diff line change 1
1
package okio.test.integration
2
2
3
3
import org.junit.Assert.assertFalse
4
+ import org.junit.Assert.assertNotNull
4
5
import org.junit.Assert.assertTrue
5
6
import org.junit.Test
6
7
@@ -13,4 +14,10 @@ class ModuleTest {
13
14
assertTrue(okioModule.isExported(" okio" ))
14
15
assertFalse(okioModule.isExported(" okio.internal" ))
15
16
}
17
+
18
+ @Test
19
+ fun testLoggerClassIsPresent () {
20
+ val logger = Class .forName(" okio.internal.Logger" )
21
+ assertNotNull(logger.getResource(" /META-INF/versions/9/okio/internal/Logger.class" ))
22
+ }
16
23
}
You can’t perform that action at this time.
0 commit comments