diff options
author | Li Haoyi <haoyi.sg@gmail.com> | 2018-02-03 09:52:00 -0800 |
---|---|---|
committer | Li Haoyi <haoyi.sg@gmail.com> | 2018-02-03 11:37:40 -0800 |
commit | 45fbcbb71b991335d84069b45bbcff3961c1ba15 (patch) | |
tree | 8da416d2f2e4faa66e2403301dc2d1fa50b2bcff /core/src/mill/modules/Jvm.scala | |
parent | bfd64f104a283b70ad57a66c8ac7d4dc3bda9e6f (diff) | |
download | mill-45fbcbb71b991335d84069b45bbcff3961c1ba15.tar.gz mill-45fbcbb71b991335d84069b45bbcff3961c1ba15.tar.bz2 mill-45fbcbb71b991335d84069b45bbcff3961c1ba15.zip |
fix scalalib tests
Diffstat (limited to 'core/src/mill/modules/Jvm.scala')
-rw-r--r-- | core/src/mill/modules/Jvm.scala | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/core/src/mill/modules/Jvm.scala b/core/src/mill/modules/Jvm.scala index 4ac03a97..297dcf1f 100644 --- a/core/src/mill/modules/Jvm.scala +++ b/core/src/mill/modules/Jvm.scala @@ -67,9 +67,7 @@ object Jvm { body: ClassLoader => T): T = { val cl = if (classLoaderOverrideSbtTesting) { val outerClassLoader = getClass.getClassLoader - new URLClassLoader( - classPath.map(_.toIO.toURI.toURL).toArray, - ClassLoader.getSystemClassLoader().getParent()){ + new URLClassLoader(classPath.map(_.toIO.toURI.toURL).toArray, null){ override def findClass(name: String) = { if (name.startsWith("sbt.testing.")){ outerClassLoader.loadClass(name) @@ -79,9 +77,7 @@ object Jvm { } } } else { - new URLClassLoader( - classPath.map(_.toIO.toURI.toURL).toArray, - ClassLoader.getSystemClassLoader().getParent()) + new URLClassLoader(classPath.map(_.toIO.toURI.toURL).toArray, null) } val oldCl = Thread.currentThread().getContextClassLoader Thread.currentThread().setContextClassLoader(cl) |