fix maven-publish plugin for agp 8

This commit is contained in:
Sue N. Cooper 2023-09-11 23:05:00 +03:00
parent 4e36695ed5
commit ebacec7fe3
3 changed files with 25 additions and 0 deletions

View File

@ -49,6 +49,15 @@ android {
} }
} }
task javadoc(type: Javadoc) {
title = 'FFmpegKit'
destinationDir = file("${projectDir}/../../docs/android/javadoc")
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
source = android.sourceSets.main.java.srcDirs
configurations.implementation.setCanBeResolved(true)
classpath += configurations.implementation
}
dependencies { dependencies {
api 'com.arthenica:smart-exception-java:0.2.1' api 'com.arthenica:smart-exception-java:0.2.1'
testImplementation "androidx.test.ext:junit:1.1.5" testImplementation "androidx.test.ext:junit:1.1.5"

View File

@ -40,6 +40,14 @@ android {
systemProperty 'enable.ffmpeg.kit.test.mode', 'true' systemProperty 'enable.ffmpeg.kit.test.mode', 'true'
} }
} }
publishing {
singleVariant('release') {
withJavadocJar()
withSourcesJar()
}
}
} }
task javadoc(type: Javadoc) { task javadoc(type: Javadoc) {

View File

@ -40,6 +40,14 @@ android {
systemProperty 'enable.ffmpeg.kit.test.mode', 'true' systemProperty 'enable.ffmpeg.kit.test.mode', 'true'
} }
} }
publishing {
singleVariant('release') {
withJavadocJar()
withSourcesJar()
}
}
} }
task javadoc(type: Javadoc) { task javadoc(type: Javadoc) {