GradleFx doesn't rebuild dependent modules

shamruk's Avatar

shamruk

21 Mar, 2014 10:02 AM

Env.:
Linux, GradleFx 0.8.2, Flex 4.12,
Project with >100 modules,
gradle config files are in separate folder

What I do:
- Change some code in "TD.Buildings" module
- CI runs "gradle build --parallel --debug"

What I see in log:
....
[compc] Loading configuration file /var/lib/jenkins/.gradle/grad.......f04c20b1/frameworks/flex-config.xml
....
/var/lib/jenkins/jobs/TD.Client.Gradle/workspace/gradle/TD.Buildings/build/TD_Buildings.swc (1150517 bytes)
:TD.Buildings:compileFlex (Thread[Task worker 4,5,main]) completed. Took 40.223 secs.
:TD.Farm:compileFlex (Thread[Task worker 3,5,main]) started.
:TD.Farm:compileFlex
.......
:TD.Buildings:build (Thread[Task worker 2,5,main]) started.
:TD.Buildings:build
Skipping task ':TD.Buildings:build' as it has no actions.
:TD.Buildings:build (Thread[Task worker 2,5,main]) completed. Took 0.001 secs.
......
Skipping task ':TD.Farm:compileFlex' as it is up-to-date (took 0.052 secs).
:TD.Farm:compileFlex UP-TO-DATE
:TD.Farm:compileFlex (Thread[Task worker 3,5,main]) completed. Took 0.053 secs.
........
:TD.Farm:build (Thread[Task worker 4,5,main]) started.
.......
:TD.Farm:build
Skipping task ':TD.Farm:build' as it has no actions.
:TD.Farm:build (Thread[Task worker 4,5,main]) completed. Took 0.005 secs.

TD.Farm Config:

dependencies {
    merged project(':Belka.Common')
    merged project(':Belka.CommonAS3')
    merged project(':Belka.CommonGraphics')
    merged project(':TD.Core')
    merged project(':Swiz')
    merged project(':TD.Buildings')
    ........
}

Resolution:
I don't get this:
1) TD.Buildings is built 2 times? One time for 40.223 secs, 2nd - 0.001 secs?
2) TD.Farm clearly depends on TD.Buildings, but no attempt to rebuild

  1. 1 Posted by shamruk on 21 Mar, 2014 10:03 AM

    shamruk's Avatar

    build log file

  2. 2 Posted by shamruk on 21 Mar, 2014 10:06 AM

    shamruk's Avatar

    gradle configs

  3. Support Staff 3 Posted by Yennick Trevels on 22 Mar, 2014 01:44 PM

    Yennick Trevels's Avatar

    Hi,

    1) TD.Buildings is only build once. The first time (where it takes 40 secs) it actually compiles the project by executing the compileFlex task. The second time (where it takes 0.001 seconds) it executes the build task, which is a higher level task which depends on the compileFlex task (which already executed) and the test task.
    2) That's strange indeed, I would also expect the TD.Farm project to be recompiled. I'll have a further look at that.

    PS: that's some badass build you've got there :)

  4. 4 Posted by shamruk on 02 Apr, 2014 12:44 PM

    shamruk's Avatar

    Any ideas about this issue?

  5. Support Staff 5 Posted by Yennick Trevels on 03 Apr, 2014 06:38 PM

    Yennick Trevels's Avatar

    I've been able to reproduce it with one of our sample projects. It's definitely a bug, now I just have to find a fix. I'm rather busy atm, so I can't promise anything, but it's at the top of my list.

  6. Support Staff 6 Posted by Yennick Trevels on 03 Apr, 2014 06:45 PM

    Yennick Trevels's Avatar

    Issue for this has been logged here: https://github.com/GradleFx/GradleFx/issues/129

  7. 7 Posted by shamruk on 03 Apr, 2014 07:04 PM

    shamruk's Avatar

    Thanks!

  8. Support Staff 8 Posted by Yennick Trevels on 06 Apr, 2014 09:59 AM

    Yennick Trevels's Avatar

    Fixed in the develop branch. It's available in our snapshot repository as version 0.8.3-SNAPSHOT at https://oss.sonatype.org/content/repositories/snapshots

    Can you test this and let me know if it works for you?

  9. 9 Posted by shamruk on 22 May, 2014 09:22 PM

    shamruk's Avatar

    works great, thanks!

  10. shamruk closed this discussion on 22 May, 2014 09:22 PM.

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

Keyboard shortcuts

Generic

? 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