android - Gradle: how to add an .aar its sources for androidJavadocsRelease generation? -
i have aar (awesome-lib-extensions) file build extension of aar (awesome-lib) file. have included awesome-lib compile dependency. seems work: can extend it, write unit tests awesome-lib-extensions, work.
the problem have following: cannot add awesome-lib classpath generating javadocs! how do this? have following code:
libraryvariants.all { variant -> task("generate${variant.name.capitalize()}javadoc", type: javadoc) { // title = '' // description = '' source = variant.javacompile.source //todo: add classpath here javadoc! classpath = files(variant.javacompile.classpath.files, project.android.getbootclasspath()) options { links "http://docs.oracle.com/javase/7/docs/api/" linksoffline "http://d.android.com/reference","${android.sdkdirectory}/docs/reference" } exclude '**/buildconfig.java' exclude '**/r.java' } }
this add android-dependency classpath, not .aar. how fix this?
please note: name awesome-lib fictive, should make easier name everything.
Comments
Post a Comment