Add annotations-13.0 in classpath of those tests where the annotations from stdlib were used

Original commit: 3cc606577c
This commit is contained in:
Ilya Gorbunov
2018-09-12 05:58:32 +03:00
parent 3522140643
commit 1d4ebded45
@@ -88,7 +88,9 @@ public abstract class AbstractKotlinJpsBuildTestCase extends BaseKotlinJpsBuildT
}
protected static JpsLibrary addKotlinStdlibDependency(@NotNull Collection<JpsModule> modules, boolean exported) {
return addDependency(JpsJavaDependencyScope.COMPILE, modules, exported, "kotlin-stdlib", PathUtil.getKotlinPathsForDistDirectory().getStdlibPath());
return addDependency(JpsJavaDependencyScope.COMPILE, modules, exported, "kotlin-stdlib",
PathUtil.getKotlinPathsForDistDirectory().getStdlibPath(),
new File(PathUtil.getKotlinPathsForDistDirectory().getLibPath(), "annotations-13.0.jar"));
}
protected JpsLibrary addDependency(@NotNull String libraryName, @NotNull File libraryFile) {