Skip to content

Commit

Permalink
Only take loader tools from the plugin classpath
Browse files Browse the repository at this point in the history
  • Loading branch information
cromoteca committed Dec 9, 2024
1 parent 368f415 commit d5875c4
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ public open class EngineConfigureTask : DefaultTask() {
}
val sourceSet = sourceSets.getByName(vaadinExtension.sourceSetName.get()) as SourceSet;
val classpathElements = sourceSet.runtimeClasspath.elements.get().stream().map { it.toString() }
val pluginClasspath = project.buildscript.configurations.getByName("classpath").resolve().stream().map { it.toString() }
val pluginClasspath = project.buildscript.configurations.getByName("classpath")
.resolve().stream().map { it.toString() }.filter { it.contains("-loader-tools") }
val classpath = Stream.concat(pluginClasspath, classpathElements).distinct().toList()

val engineConfiguration = EngineConfiguration.Builder()
Expand Down

0 comments on commit d5875c4

Please sign in to comment.