SWC dependencies with custom 'output' property

Peter Nicolai's Avatar

Peter Nicolai

05 Dec, 2014 05:21 PM

I have a swc module that can be built with different config options that use conditional compilation, depending on a passed-in parameter. I'm setting the 'output' property based on this, ie a project ":myapi" can produce "myapi-web.swc" or "myapi-mobile.swc". But if I add ":myapi" as a project dependency to another module, it fails because it's looking for "myapi.swc". I want it to resolve to the artifact based on the 'output' parameter of the 'myapi' project in the current build, whatever that happens to be. How do I do this?

  1. 1 Posted by Peter Nicolai on 05 Dec, 2014 06:42 PM

    Peter Nicolai's Avatar

    OK never mind - I was declaring the project dependency in "afterEvaluate", and it needed to be at top level.

  2. Yennick Trevels closed this discussion on 06 Dec, 2014 01:02 AM.

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

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