publish.gradle: Use non-deprecated API to prevent eager configuration of tasks

Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
Harsh Shandilya 2020-03-14 10:44:52 +05:30
parent 093139bc91
commit 2b31eac1af

View File

@ -55,9 +55,9 @@ bintray {
android.libraryVariants.all { variant -> android.libraryVariants.all { variant ->
if (variant.name == 'release') { if (variant.name == 'release') {
task javadoc(type: Javadoc) { task javadoc(type: Javadoc) {
source = variant.javaCompiler.source source = variant.javaCompileProvider.get().source
classpath = files((android.bootClasspath.join(File.pathSeparator))) classpath = files((android.bootClasspath.join(File.pathSeparator)))
classpath += variant.javaCompiler.classpath classpath += variant.javaCompileProvider.get().classpath
title = 'Embeddable WireGuard Tunnel for Android v$wireguardVersionName' title = 'Embeddable WireGuard Tunnel for Android v$wireguardVersionName'
} }
task javadocJar(type: Jar, dependsOn: javadoc) { task javadocJar(type: Jar, dependsOn: javadoc) {