New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incremental Java compile is disabled when empty source folders are added #8203
Comments
Additional RequestThe error message |
@oehme It looks like changes to directories (i.e. adding directories in source folders) are processed as resource changes: Lines 45 to 53 in 8ce7ea5
Is this intentional? I guess it would be fine to only process actual files. WDYT? |
Yes, good catch! |
That is we ignore some changes to directories, thus ignoring addition and modifications of empty packages. Fixes #8203
That is we ignore some changes to directories, thus ignoring addition and modifications of empty packages. Fixes #8203
Environment
Gradle 5.1-rc-2 (in Gradle 5.1-rc-3 and above, the issue is masked by a different issue: #8194)
Steps to Reproduce
Use this sample Android project: MyApplication.tar.gz
./gradlew :app:compileDebugJavaWithJavac
, it should succeed.app/src/main/java
, add packagecom.example.foo
without any classes../gradlew :app:compileDebugJavaWithJavac --info
, observe that Gradle performs full recompilation:Full recompilation is required because A resource changed. Analysis took 0.053 secs.
Expected Behavior
Gradle should perform incremental compile in the second build.
Context
I saw this issue a while ago but can only manage to reproduce it now while debugging #8194 and #8197. It doesn't happen on a HelloWorld project, but it does on this particular project. (I haven't examined how this project exposes the issue yet.)
The text was updated successfully, but these errors were encountered: