title: exportedHeaders DSL does not seem to include the headers
body: <p>I am trying to make use of the "<a href="http://tools.android.com/tech-docs/new-build-system/gradle-experimental" rel="nofollow noreferrer">Multiple NDK Projects</a>" feature of the experimental gradle plugin. I am using Android Studio 2.1 and gradle plugin 0.7.0 stable. The blog seems to say that the header files specified in the exportedHeaders section of the native library will be included during compilation</p>
  
  <pre><code>exportedHeaders {
                          srcDir "src"
                      }
  </code></pre>
  
  <p>This does not seem to work for me. Say for example I have the following folder structure, I would expect Addition.h to be available in native.cpp, ie I should be able to say </p>
  
  <pre><code>#include &lt;Addition.h&gt;
  </code></pre>
  
  <p>but only </p>
  
  <pre><code>#include "../../../../../../../Framework/Addition/src/Addition.h" 
  </code></pre>
  
  <p>works. Adding cppFlags to include the headers makes no difference.</p>
  
  <p><a href="https://i.stack.imgur.com/PLRlz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PLRlz.png" alt="Folder structure"></a></p>
  
  <p>Here's how some relevant files look for an example project. The example project module "app" depends on a native library module "addition" to add 2 numbers. The native library uses the new native plugin.</p>
  
  <p>settings.gradle</p>
  
  <pre><code>include ':app'
  include ':Addition'
  project (":Addition").projectDir = new File("../../../Framework/Addition")
  </code></pre>
  
  <p>gradle-wrapper.properties</p>
  
  <pre><code>#Mon Dec 28 10:00:20 PST 2015
  distributionBase=GRADLE_USER_HOME
  distributionPath=wrapper/dists
  zipStoreBase=GRADLE_USER_HOME
  zipStorePath=wrapper/dists
  distributionUrl=https\://services.gradle.org/distributions/gradle-2.10-all.zip
  </code></pre>
  
  <p>build.gradle (:app)</p>
  
  <pre><code>apply plugin: 'com.android.model.application'
  
  model {
      android {
          compileSdkVersion 23
          buildToolsVersion "23.0.2"
  
          ndk {
              moduleName = 'native'
              platformVersion = 17
              toolchain "clang"
              cppFlags.addAll(['-I' + file('src/main/jni'),
                               '-I'  + file('../../../Framework/Addition')])
          }
  
          sources {
              main {
                  jni {
                      dependencies {
                          project ':Addition' linkage 'static'
                      }
                  }
              }
          }
  
          defaultConfig {
              applicationId "com.harkish.nativepluginexample"
              minSdkVersion.apiLevel 21
              targetSdkVersion.apiLevel 23
              versionCode 1
              versionName "1.0"
          }
          buildTypes {
              release {
                  minifyEnabled false
              }
          }
      }
  }
  
  dependencies {
      compile fileTree(dir: 'libs', include: ['*.jar'])
      testCompile 'junit:junit:4.12'
      compile 'com.android.support:appcompat-v7:23.3.0'
  }
  </code></pre>
  
  <p>build.gradle (:Addition)</p>
  
  <pre><code>apply plugin: 'com.android.model.native'
  
  model {
      android {
          compileSdkVersion = 23
          buildToolsVersion = '23.0.2'
  
          defaultConfig {
              minSdkVersion.apiLevel = 21
              targetSdkVersion.apiLevel = 23
              versionCode = 1
              versionName = '1.0'
          }
          ndk {
              moduleName = 'addition'
          }
          sources {
              main {
                  jni {
                      source {
                          srcDir "src"
                      }
                      exportedHeaders {
                          srcDir "src"
                      }
                  }
              }
          }
      }
  }
  </code></pre>
  
  <p>Anyone solved this problem? ideas?</p>