Skip to content
Snippets Groups Projects
Commit b7bf4551 authored by cyberta's avatar cyberta
Browse files

resolve configuration for javadoc task

parent 4fa3a347
No related branches found
No related tags found
1 merge request!4Update dependencies
......@@ -83,10 +83,19 @@ task sourcesJar(type: Jar) {
baseName = 'tor-android-' + getVersionName()
}
configurations {
libconfiguration
// declare a configuration that is going to resolve the compile classpath of the application
compileClasspath.extendsFrom(libconfiguration)
// declare a configuration that is going to resolve the runtime classpath of the application
runtimeClasspath.extendsFrom(libconfiguration)
}
task javadoc(type: Javadoc) {
source = android.sourceSets.main.java.srcDirs
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
classpath += configurations.implementation
classpath += configurations.libconfiguration
options.noTimestamp = true
options.addStringOption('charset', 'UTF-8') // to match Maven's case
android.libraryVariants.all { variant ->
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment