apply plugin: 'com.android.library' apply plugin: 'com.github.dcendents.android-maven' apply plugin: "com.jfrog.bintray" // This is the library version used when deploying the artifact version = VERSION_NAME android { compileSdkVersion rootProject.ext.compileSdkVersion as Integer buildToolsVersion rootProject.ext.buildToolsVersion as String defaultConfig { minSdkVersion rootProject.ext.minSdkVersion as Integer targetSdkVersion rootProject.ext.targetSdkVersion as Integer versionCode rootProject.ext.versionCode as Integer versionName rootProject.ext.versionName as String } sourceSets.main { assets.srcDirs = ['assets'] jni.srcDirs = [] //disable automatic ndk-build jniLibs.srcDirs = ['libs'] } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } } dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) androidTestCompile 'com.squareup.assertj:assertj-android:1.0.0' } group = GROUP install { repositories.mavenInstaller { // This generates POM.xml with proper parameters pom { project { packaging POM_PACKAGING // Add your description here name 'FFmpeg Android' description = POM_DESCRIPTION url POM_URL // Set your license licenses { license { name POM_LICENCE_NAME url POM_LICENCE_URL } } developers { developer { id POM_DEVELOPER_ID name POM_DEVELOPER_NAME email 'hitesh@writingminds.com' } } scm { connection POM_SCM_URL developerConnection POM_SCM_URL url POM_URL } } } } } task sourcesJar(type: Jar) { from android.sourceSets.main.java.srcDirs classifier = 'sources' } task javadoc(type: Javadoc) { source = android.sourceSets.main.java.srcDirs classpath += project.files(android.getBootClasspath().join(File.pathSeparator)) } task javadocJar(type: Jar, dependsOn: javadoc) { classifier = 'javadoc' from javadoc.destinationDir } artifacts { archives javadocJar archives sourcesJar } Properties properties = new Properties() properties.load(project.rootProject.file('local.properties').newDataInputStream()) // https://github.com/bintray/gradle-bintray-plugin bintray { user = properties.getProperty("bintray.user") key = properties.getProperty("bintray.apikey") configurations = ['archives'] pkg { repo = "maven" // it is the name that appears in bintray when logged name = "ffmpeg-android" websiteUrl = POM_URL vcsUrl = POM_SCM_URL licenses = ["GPL-3.0"] publish = true version { gpg { sign = true passphrase = properties.getProperty("bintray.gpg.password") } mavenCentralSync { sync = true user = properties.getProperty("bintray.oss.user") //OSS user token password = properties.getProperty("bintray.oss.password") //OSS user password close = '1' } } } }