java - Gradle dependencies: compile project by relative path -


Is it possible to specify a dependency on another gradeal project in the granular (in android studios) outside the current project limits? For example, with a relative path like this:

  dependence {collection project ('../../ stdlib / dagger'}}  
< P>

  • MyApp (path / user / foo / workspace / mypad)
    • The app (Path / User / Foo / Workspace / MyPass / App)

And I have an Android Library Project with 3 subdomules: < / P>

  • stdlib (path is / user / foo /
  • Utilities (Path / User / Foo / Workspace / Stadlib / Utilis)
  • http (Path / User / Foo / Workspace / Stadlib / HT)
  • / Li>

What I have to do is compile the Dagger, Util, http module in the MyApp project.

The Stidelib Library module under heavy development And MyApp will grow in the form of Growth, so I do not want to push them into a Mewen repository. I am a little change.

is likely to add another Gredle projects in some way? I will push the study library into the Maven repository after the source is in search of a temporary solution.

In addition to this, as a solution, a solution will be possible with the source set. I have also considered building a library folder in my app that is a symlink for stdlib, but I hope it does not get to work:

  • MyApp (path / user / Foo / Workspace / MyApp
  • App (Path / User / Foo / Workspace / Map / App)
  • Library (On Symlink / Users / Af / Workspace / Stadlib)
  dependency {compilation project (': library: dagger'}}  

Gradle 'file, you can include an out-of-the-root project module, it should also be a Crowdell project from your main project and in specific Android building conditions, you must configure each module as an "Android-Library" plugin project .

For example, 'MyApp' Projections T settings. You can try it gradle are:

  included in the 'app' Dagger 'project (' Dagger '). ProjectDir = 'new' file ('/ user / foo / workspace / stadilib / dagger')  

Relative path to your 'MyApp' build.gradle requires the 'Dagger' module in Gradle The way to reflect:

  dependency {compilation project (': dagger'}}  

And this is the phase two separate modules Repeat with what you need and you have the proper griddle multi-project configuration.


Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

ruby on rails - Object doesn't support #inspect when used with .include -