Skip to content

Commit

Permalink
Improve MPP resolve
Browse files Browse the repository at this point in the history
  • Loading branch information
ileasile committed Sep 24, 2023
1 parent 199ec65 commit 8bad9c2
Showing 1 changed file with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -197,13 +197,15 @@ open class JupyterScriptDependenciesResolverImpl(mavenRepositories: List<Reposit
val resolvedArtifacts = mutableSetOf<String>()
resolvedArtifacts.addAll(annotationArgs)
resolveMpp(files) { artifactCoordinates ->
if (resolvedArtifacts.addAll(artifactCoordinates)) {
tryResolve(
artifactCoordinates,
scriptDiagnosticsResult,
classpathResult,
)
val notYetResolvedArtifacts = artifactCoordinates.filter { artifact ->
resolvedArtifacts.add(artifact)
}

tryResolve(
notYetResolvedArtifacts,
scriptDiagnosticsResult,
classpathResult,
)
}
},
onFailure = {},
Expand Down

0 comments on commit 8bad9c2

Please sign in to comment.