Module not rebuilding after build.gradle change

shamruk's Avatar


19 Mar, 2014 10:29 PM

What I do: I keep build.gradle out of module directory, I change it, run "gradle build".
Result: compileFlex UP-TO-DATE
Expected result: rebuid module

What do I do wrong?

  1. Support Staff 1 Posted by Yennick Trevels on 20 Mar, 2014 09:53 AM

    Yennick Trevels's Avatar

    This is a discussion with some of the Gradle team members that I remember from two years ago, don't know if this issue still applies:

    I'll try to find some more information on whether this got fixed or not. Or you could post your question on the Gradle forums, maybe they know something more about it.

  2. 2 Posted by shamruk on 20 Mar, 2014 10:44 AM

    shamruk's Avatar

    Thanks. This issue is very important, it makes gradle completely unreliable. This way gradle builds something based on some modules built before but probably changed.

    I have configured the build and was very surprised when some modules stopped working when other members of the team made minor changes in the code. Than I have restarted integration server and "gradle clean build", saw a lot of modules broken...
    I have a filling that even "gradle clean" (without restarting the server) doesn't rebuild everything (but not sure).

  3. Support Staff 3 Posted by Yennick Trevels on 22 Mar, 2014 02:04 PM

    Yennick Trevels's Avatar

    Here's another thread which discusses something similar. The consensus seems to be that, when you change something in your build file, you generally should run the clean task.

  4. 4 Posted by shamruk on 25 Mar, 2014 05:50 PM

    shamruk's Avatar

    More links:
    No solution yet.
    Only workaround I can think of is generating md5 hash of *.gradle to corresponding source folder. Or generate md5 of all gradles and run "clean".

  5. shamruk closed this discussion on 25 Mar, 2014 05:50 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

07 May, 2023 04:17 PM
28 Apr, 2023 11:22 PM
23 Apr, 2023 09:43 AM
03 Nov, 2022 01:22 AM
29 Jun, 2022 05:39 PM


04 Aug, 2021 12:50 PM
15 Apr, 2021 06:10 PM
15 Jan, 2021 06:56 PM
09 Mar, 2020 11:11 PM
09 Mar, 2020 11:09 PM
17 Apr, 2019 02:51 PM