Skip to content

Commit

Permalink
Add support for Java 11. (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
sjrd authored Oct 22, 2019
1 parent b0237be commit e6cad14
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ script:

jdk:
- openjdk8
- openjdk11

cache:
directories:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import java.io.FileInputStream

import scala.collection.JavaConverters._

import com.spotify.missinglink.{ArtifactLoader, Conflict, ConflictChecker}
import com.spotify.missinglink.{ArtifactLoader, Conflict, ConflictChecker, Java9ModuleLoader}
import com.spotify.missinglink.Conflict.ConflictCategory
import com.spotify.missinglink.datamodel.{
Artifact,
Expand Down Expand Up @@ -106,8 +106,7 @@ object MissingLinkPlugin extends AutoPlugin {

private def loadBootstrapArtifacts(bootstrapClasspath: String, log: Logger): List[Artifact] = {
if (bootstrapClasspath == null) {
???
//Java9ModuleLoader.getJava9ModuleArtifacts((s, ex) => log.warn(s))
Java9ModuleLoader.getJava9ModuleArtifacts((s, ex) => log.warn(s)).asScala.toList
} else {
constructArtifacts(
bootstrapClasspath.split(System.getProperty("path.separator")).map(file(_)),
Expand Down

0 comments on commit e6cad14

Please sign in to comment.