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