fix maven-publish plugin for agp 8

pull/834/head
Sue N. Cooper 2 years ago
parent 4e36695ed5
commit ebacec7fe3
  1. 9
      android/ffmpeg-kit-android-lib/build.gradle
  2. 8
      tools/android/build.gradle
  3. 8
      tools/android/build.lts.gradle

@ -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"

@ -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) {

@ -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) {

Loading…
Cancel
Save