Skip to content

Commit

Permalink
Make documentation generation run on JDK 11
Browse files Browse the repository at this point in the history
  • Loading branch information
Olafur Pall Geirsson committed Apr 14, 2020
1 parent be6798e commit bc1cc49
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion scalafix-docs/src/main/scala/scalafix/docs/PatchDocs.scala
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package scalafix.docs

import java.nio.file.Paths
import java.io.File
import org.typelevel.paiges.Doc
import scala.meta.inputs.Input
import scala.meta.interactive.InteractiveSemanticdb
Expand Down Expand Up @@ -101,7 +103,11 @@ object PatchDocs {
"-Ywarn-unused",
"-P:semanticdb:synthetics:on"
)
lazy val compiler = InteractiveSemanticdb.newCompiler(scalacOptions)
lazy val classpath = ClasspathOps
.getURLs(this.getClass().getClassLoader())
.map(p => Paths.get(p.toURI()))
.mkString(File.pathSeparator)
lazy val compiler = InteractiveSemanticdb.newCompiler(classpath, scalacOptions)
lazy val symtab =
GlobalSymbolTable(ClasspathOps.thisClasspath, includeJdk = true)
lazy val scalafixSymtab = new Symtab { self =>
Expand Down

0 comments on commit bc1cc49

Please sign in to comment.