add Compilation Dependencies and Dependancy substitution order

Denis's Avatar


18 Jan, 2018 09:25 AM

I have a SWF project that depends on an SWC library project (referenced by includeBuild).
When I run the compileFlex task on the SWF project, the dependency resolution (addCompilationDependencies) of the compile task happens before gradle dependency substitution, which result in none of the dependent builds (SWC project) being compiled.

basic config:
settings.gradle (SWF) = "SWF"
includeBuild "../SWC"

build.gradle (SWF)
dependencies {
merged "com.bla.product:SWC:1.0"

the SWC project does not have any more dependencies.

I have added some output to compileFlex task in order to see when does it run addCompilationDependencies method and from the gradle output i see it happens before the dependency substitution runs. So at the time the dependencies are of type ExternalModuleDependency but the task is exclusively looking for type ProjectDependency.

Is there any way to force the order, or am i doing something wrong here?

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

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