-
Notifications
You must be signed in to change notification settings - Fork 828
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
114 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,9 @@ | ||
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 | ||
|
@@ -31,4 +36,92 @@ dependencies { | |
androidTestCompile 'com.squareup.assertj:assertj-android:1.0.0' | ||
} | ||
|
||
apply from: 'https://raw.github.com/chrisbanes/gradle-mvn-push/master/gradle-mvn-push.gradle' | ||
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 '[email protected]' | ||
} | ||
} | ||
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' | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
VERSION_NAME=0.2.5 | ||
VERSION_CODE=25 | ||
GROUP=com.github.hiteshsondhi88.libffmpeg | ||
VERSION_NAME=0.3.2 | ||
VERSION_CODE=28 | ||
GROUP=com.writingminds | ||
|
||
POM_DESCRIPTION=Java implementation of ffmpeg for Android | ||
POM_URL=https://github.com/hiteshsondhi88/ffmpeg-android-java | ||
POM_SCM_URL=https://github.com/hiteshsondhi88/ffmpeg-android-java | ||
POM_SCM_CONNECTION=scm:https://github.com/hiteshsondhi88/ffmpeg-android-java.git | ||
POM_SCM_DEV_CONNECTION=scm:https://github.com/hiteshsondhi88/ffmpeg-android-java.git | ||
POM_URL=https://github.com/writingminds/ffmpeg-android-java | ||
POM_SCM_URL=https://github.com/writingminds/ffmpeg-android-java.git | ||
POM_SCM_CONNECTION=scm:https://github.com/writingminds/ffmpeg-android-java.git | ||
POM_SCM_DEV_CONNECTION=scm:https://github.com/writingminds/ffmpeg-android-java.git | ||
POM_LICENCE_NAME=GNU GPLv3 | ||
POM_LICENCE_URL=https://github.com/hiteshsondhi88/ffmpeg-android-java/blob/master/LICENSE.GPLv3 | ||
POM_LICENCE_URL=https://github.com/writingminds/ffmpeg-android-java/blob/master/LICENSE.GPLv3 | ||
POM_LICENCE_DIST=repo | ||
POM_DEVELOPER_ID=hiteshsondhi88 | ||
POM_DEVELOPER_NAME=Hitesh Sondhi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#Tue Apr 19 16:06:40 GMT+05:30 2016 | ||
#Wed Apr 20 11:52:28 GMT+05:30 2016 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-2.2-all.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-2.10-all.zip |
6fd8356
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can add text watermark