Commit d18d48a1 authored by Erwan Croze's avatar Erwan Croze 👋🏻

Add zip creating for mediastreamer2 java sdk

parent c422d5de
......@@ -41,6 +41,17 @@ android {
}
}
android {
libraryVariants.all { variant ->
def appName = "libmediastreamer2-sdk"
variant.outputs.each { output ->
def newSdkName = "bin/outputs/aar/${appName}.aar"
output.outputFile = new File(newSdkName)
}
}
}
///////////// Task /////////////
task(releaseJavadoc, type: Javadoc, dependsOn: "assembleRelease") {
......@@ -61,7 +72,13 @@ task androidJavadocsJar(type: Jar, dependsOn: releaseJavadoc) {
from releaseJavadoc.destinationDir
}
artifacts {
archives sourcesJar
archives androidJavadocsJar
}
task sdkZip(type: Zip, dependsOn: ["sourcesJar", "androidJavadocsJar"]) {
String appName = "libmediastreamer2-sdk"
String gitSha = 'git describe --always'.execute().text.trim()
String newSdkName = appName + "-" + gitSha + ".zip"
from('bin/libs',
'bin/outputs/aar')
include '*'
archiveName newSdkName
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment