From 58126c324c30fff4f65fef7cc72aa715364ef358 Mon Sep 17 00:00:00 2001 From: Kamil Doległo Date: Mon, 20 Apr 2020 23:10:22 +0200 Subject: Fix incorrect plugins paths when project is on a different filesystem than Gradle --- core/src/main/kotlin/plugability/DokkaContext.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'core/src') diff --git a/core/src/main/kotlin/plugability/DokkaContext.kt b/core/src/main/kotlin/plugability/DokkaContext.kt index c5a08a56..cefcd286 100644 --- a/core/src/main/kotlin/plugability/DokkaContext.kt +++ b/core/src/main/kotlin/plugability/DokkaContext.kt @@ -33,7 +33,8 @@ interface DokkaContext { pluginOverrides: List ): DokkaContext = DokkaContextConfigurationImpl(logger, configuration, platforms).apply { - configuration.pluginsClasspath.map { it.relativeTo(File(".").absoluteFile).toURI().toURL() } + // File(it.path) is a workaround for an incorrect filesystem in a File instance returned by Gradle. + configuration.pluginsClasspath.map { File(it.path).toURI().toURL() } .toTypedArray() .let { URLClassLoader(it, this.javaClass.classLoader) } .also { checkClasspath(it) } -- cgit