Skip to content

Android module with DH-3 enabled recompile AndroidJavaCompile when no changes occurred. #238

Open
@doniwinata0309

Description

@doniwinata0309

Hi, we are having a strange behaviour on the module that enable DH 3 recently.
We are using multi module, let say I have module structure like this:
Core --> Feature --> Appentry
Assume making a changes on module Core, and run the first build (which will recompile Feature and Appentry module).
But when we run a second build after this without any changes, the feature module recompile on this task com.android.build.gradle.tasks.AndroidJavaCompile. This should not be happen because the task still must be up to date because I making no changes on the code.

Checking from build-scan:


The task was not up-to-date because of the following reasons:
--
Input property 'source' file feature/build/generated/source/navigator/generalDebug has been removed.
Input property 'source' file feature/build/generated/source/navigator/generalDebug/com/myapp/android/feature/HensonNavigator.java has been removed.
Input property 'source' file feature/build/generated/source/navigator/generalDebug/com/myapp/android has been removed.
 

I believe that before running the second build, the file is still on that folder. But don't know why the task need to be recompile with that reasons. And if I run 3rd build, all of the task will be up-to-date. So it seems to be happen only after upper stream module being recompile.

Here are the details of our project:
AGP: 3.3.2
Gradle version: 5.2.1
DH version: 3.1.2
Databinding: Enabled
Proguard: Disabled
Kotlin: Enabled

Do you know something about it ? please let me know if you need additional information.
Any help would be appreciated. Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions