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

21 Jun, 2017 06:38 AM
10 Jun, 2017 04:16 PM
24 Mar, 2017 07:10 PM
19 Mar, 2017 04:39 AM
22 Jan, 2017 07:46 AM

 

11 Oct, 2016 01:18 PM
20 Sep, 2016 04:36 PM
06 Sep, 2016 08:05 PM
03 Aug, 2016 11:15 AM
01 Jun, 2016 05:20 PM
03 May, 2016 09:17 PM