Skip to content

Commit

Permalink
fix maven-publish plugin for agp 8
Browse files Browse the repository at this point in the history
  • Loading branch information
suencooper committed Sep 11, 2023
1 parent 4e36695 commit ebacec7
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
9 changes: 9 additions & 0 deletions android/ffmpeg-kit-android-lib/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
api 'com.arthenica:smart-exception-java:0.2.1'
testImplementation "androidx.test.ext:junit:1.1.5"
Expand Down
8 changes: 8 additions & 0 deletions tools/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,14 @@ android {
systemProperty 'enable.ffmpeg.kit.test.mode', 'true'
}
}


publishing {
singleVariant('release') {
withJavadocJar()
withSourcesJar()
}
}
}

task javadoc(type: Javadoc) {
Expand Down
8 changes: 8 additions & 0 deletions tools/android/build.lts.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,14 @@ android {
systemProperty 'enable.ffmpeg.kit.test.mode', 'true'
}
}


publishing {
singleVariant('release') {
withJavadocJar()
withSourcesJar()
}
}
}

task javadoc(type: Javadoc) {
Expand Down

0 comments on commit ebacec7

Please sign in to comment.