Skip to content

Commit 0a20d53

Browse files
authored
configuration cacheが有効でもこけないようにする
1 parent c6aef15 commit 0a20d53

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

compile/src/main/java/org/seasar/doma/gradle/compile/JavaCompileConfigurator.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,13 @@ void configure(SourceSet sourceSet) {
2525
}
2626

2727
private void configureJavaCompile(SourceSet sourceSet, JavaCompile javaCompile) {
28+
var resourceDirs = project.files(sourceSet.getResources().getSrcDirs());
2829
javaCompile.doFirst(
2930
__ -> {
30-
var resourceDirs = sourceSet.getResources().getSrcDirs();
3131
var options = javaCompile.getOptions();
32-
var newSourcepath = project.files(resourceDirs);
3332
var currentSourcepath = options.getSourcepath();
3433
var sourcepath =
35-
currentSourcepath == null ? newSourcepath : currentSourcepath.plus(newSourcepath);
34+
currentSourcepath == null ? resourceDirs : currentSourcepath.plus(resourceDirs);
3635
options.setSourcepath(sourcepath);
3736
options.getCompilerArgs().add(PARAMETERS_COMPILER_ARG);
3837
});

0 commit comments

Comments
 (0)