File tree Expand file tree Collapse file tree
main/java/org/javamodularity/moduleplugin/tasks
test/java/org/javamodularity/moduleplugin/tasks Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ private List<String> buildCompilerArgs(JavaCompile javaCompile) {
6666
6767 // Keep only valid module-path entries (https://github.com/java9-modularity/gradle-modules-plugin/issues/190)
6868 FileCollection filteredClasspath = project .files (compileJavaClasspath .getFiles ().stream ()
69- .filter (f -> f .getName ().endsWith (".jar" ) || f .getName ().endsWith (".jmod" ))
69+ .filter (f -> f .isDirectory () || f . getName ().endsWith (".jar" ) || f .getName ().endsWith (".jmod" ))
7070 .collect (Collectors .toList ()).toArray ());
7171
7272 var compilerArgs = new ArrayList <>(javaCompile .getOptions ().getCompilerArgs ());
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ void modularizeJavaCompileTask() {
2525 project .getPlugins ().apply ("java" );
2626 JavaCompile compileJava = (JavaCompile ) project .getTasks ().getByName (JavaPlugin .COMPILE_JAVA_TASK_NAME );
2727
28- FileCollection classpath = project .files ("dummy dir " ); // we need anything on classpath
28+ FileCollection classpath = project .files (". " ); // we need anything on classpath
2929 compileJava .setClasspath (classpath );
3030
3131 CompileModuleOptions moduleOptions = compileJava .getExtensions ()
You can’t perform that action at this time.
0 commit comments