You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@NickIliev
After a bit of research here are my findings:
How did we manage up until now to get the compile dependencies resolved by gradle?
Basically, we got the resolved dependencies at build time which were resolved by the build system.
Why can't we do that with implementation and api?
After a bit of tinkering:
I reached this error: Resolving configuration 'implementation' directly is not allowed, which is pretty self-explanatory.
Unfortunately for us, gradle resolves it's implementation dependencies lazily and I couldn't find the API to find the implementation and api defined project dependencies.
A possible workaround would be to ask the users and plugin authors to continue using compile instead of implementation and api at least until we figure a way to solve the problem.
@Plamen5kov@NickIliev I'd like to add that after tinkering on my part, configurations.{depsType} (debugCompile, api, runtimeOnly, etc.) are also inaccessible beyond what we are already using configurations.compile. As a matter of fact, if you inspect the type of the configurations container, you won't find the properties on the object.
Another thing to note:
debugCompile dependencies weren't being exploded either, as we'd only explode the compile dependencies. This means that you aren't able to access debug compile dependencies in JavaScript.
Activity
Plamen5kov commentedon Apr 3, 2018
@NickIliev
After a bit of research here are my findings:
How did we manage up until now to get the compile dependencies resolved by gradle?
Basically, we got the resolved dependencies at build time which were resolved by the build system.
Why can't we do that with
implementationandapi?After a bit of tinkering:
I reached this error:
Resolving configuration 'implementation' directly is not allowed, which is pretty self-explanatory.Unfortunately for us, gradle resolves it's implementation dependencies lazily and I couldn't find the API to find the
implementationandapidefined project dependencies.A possible workaround would be to ask the users and plugin authors to continue using
compileinstead ofimplementationandapiat least until we figure a way to solve the problem.petekanev commentedon Apr 4, 2018
@Plamen5kov @NickIliev I'd like to add that after tinkering on my part,
configurations.{depsType}(debugCompile, api, runtimeOnly, etc.) are also inaccessible beyond what we are already usingconfigurations.compile. As a matter of fact, if you inspect the type of the configurations container, you won't find the properties on the object.Another thing to note:
debugCompiledependencies weren't being exploded either, as we'd only explode thecompiledependencies. This means that you aren't able to access debug compile dependencies in JavaScript.Add tests for NativeScript/android#993. Also improve interface tests …
Add implements api compile tests (#136)
Add implements api compile tests (#136)
Add implements api compile tests (#136)