Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,13 @@ void configure(SourceSet sourceSet) {
}

private void configureJavaCompile(SourceSet sourceSet, JavaCompile javaCompile) {
var resourceDirs = project.files(sourceSet.getResources().getSrcDirs());
javaCompile.doFirst(
__ -> {
var resourceDirs = sourceSet.getResources().getSrcDirs();
var options = javaCompile.getOptions();
var newSourcepath = project.files(resourceDirs);
var currentSourcepath = options.getSourcepath();
var sourcepath =
currentSourcepath == null ? newSourcepath : currentSourcepath.plus(newSourcepath);
currentSourcepath == null ? resourceDirs : currentSourcepath.plus(resourceDirs);
options.setSourcepath(sourcepath);
options.getCompilerArgs().add(PARAMETERS_COMPILER_ARG);
});
Expand Down
Loading