Skip to content
Permalink
Browse files
29: ModulePlugin removes compiler options
Reviewed-by: rwestberg
  • Loading branch information
edvbld committed Jun 28, 2019
1 parent 3bdfd34 commit 68e0bee6bd68d73c54f5b4356b2bd9ff8640d308
Showing 1 changed file with 1 addition and 1 deletion.
@@ -50,7 +50,7 @@ public void apply(Project project) {
var compileJavaTask = (JavaCompile) task;
compileJavaTask.doFirst(t -> {
var classpath = compileJavaTask.getClasspath().getAsPath();
compileJavaTask.getOptions().setCompilerArgs(List.of("--module-path", classpath));
compileJavaTask.getOptions().getCompilerArgs().addAll(List.of("--module-path", classpath));
compileJavaTask.setClasspath(project.files());
});
}

0 comments on commit 68e0bee

Please sign in to comment.