I am working on adding NDK collections to the library module that I have already deployed to maven. I used to use the stable Android Gradle v1.5 plugin, but I do it using the NDK build. I am trying to use an experimental plugin (I need to specify a shared library for reference). The NDK design is beautiful, my problem is with my deployment of the Maven script.
At the end of my build of the script module, I call
apply from: '../maven_push.gradle'
After all the maven configuration settings, I have the following tasks:
task androidJavadocs(type: Javadoc) {
source = android.sourceSets.main.java.sourceFiles
}
task androidJavadocsJar(type: Jar) {
classifier = 'javadoc'
//basename = artifact_id
from androidJavadocs.destinationDir
}
task androidSourcesJar(type: Jar) {
classifier = 'sources'
//basename = artifact_id
from android.sourceSets.main.java.sourceFiles
}
artifacts {
//archives packageReleaseJar
archives androidSourcesJar
archives androidJavadocsJar
}
When I try to compile the build script, I get the following error:
Error:Could not find property 'android' on task ':moduleName:androidJavadocs'.
, Android Studio android.sourceSets.main.java.sourceFiles, . , , , , , . Google, , , , , , , - Gradle, .