From b7bf4551ff359e92e9023778715f39a4c7eb7cff Mon Sep 17 00:00:00 2001 From: cyBerta <cyberta@riseup.net> Date: Mon, 8 Aug 2022 19:54:55 +0200 Subject: [PATCH] resolve configuration for javadoc task --- tor-android-binary/build.gradle | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/tor-android-binary/build.gradle b/tor-android-binary/build.gradle index 2fb2b94a..036c940c 100644 --- a/tor-android-binary/build.gradle +++ b/tor-android-binary/build.gradle @@ -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 -> -- GitLab