Export kotlin.test packages with annotations and underlying frameworks

- Add exports for jvm package names used in kotlin.test annotations;

- Export transitively underlying test framework modules
Otherwise "This class does not have a constructor" happens when using
an aliased annotation, e.g. kotlin.test.Test aliased to org.junit.test

KT-41320
This commit is contained in:
Ilya Gorbunov
2020-08-24 23:41:04 +03:00
parent ef57c62576
commit 9c3ff6828a
4 changed files with 8 additions and 4 deletions
@@ -2,10 +2,11 @@ module kotlin.test.testng {
requires transitive kotlin.stdlib;
requires transitive kotlin.test;
requires org.testng; // automatic module name in testng manifest since 7.0.0
requires transitive org.testng; // automatic module name in testng manifest since 7.0.0
// won't work with earlier versions, where just 'testng' name was inferred from the artifact name
exports kotlin.test.testng;
exports kotlin.test.testng.annotations;
provides kotlin.test.AsserterContributor with kotlin.test.testng.TestNGContributor;
}