diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index cdbb935..31a447b 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -24,6 +24,13 @@
+
+
+
+
+
+
+
@@ -78,16 +85,6 @@
-
-
-
-
-
-
-
-
-
-
@@ -111,11 +108,11 @@
-
+
-
-
+
+
@@ -136,21 +133,21 @@
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
@@ -601,6 +598,11 @@
+
+
+
+
+
@@ -621,11 +623,6 @@
-
-
-
-
-
@@ -771,6 +768,11 @@
+
+
+
+
+
@@ -789,6 +791,28 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -813,6 +837,10 @@
+
+
+
+
@@ -1220,6 +1248,11 @@
+
+
+
+
+
@@ -1240,11 +1273,6 @@
-
-
-
-
-
@@ -1448,6 +1476,11 @@
+
+
+
+
+
@@ -1609,6 +1642,11 @@
+
+
+
+
+
@@ -1684,11 +1722,28 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -1878,6 +1933,10 @@
+
+
+
+
@@ -1971,7 +2030,7 @@
-
-
-
-
-
-
-
-
@@ -3239,8 +3392,8 @@
-
-
+
+
@@ -3248,5 +3401,45 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/build.gradle b/build.gradle
index e0b366a..6a0c07c 100644
--- a/build.gradle
+++ b/build.gradle
@@ -3,9 +3,15 @@
buildscript {
repositories {
jcenter()
+ maven {
+ url "http://dl.bintray.com/jfrog/jfrog-jars"
+ }
}
dependencies {
classpath 'com.android.tools.build:gradle:1.5.0'
+ classpath 'com.github.dcendents:android-maven-gradle-plugin:1.3'
+ classpath "com.jfrog.bintray.gradle:gradle-bintray-plugin:1.1"
+ classpath 'com.github.ben-manes:gradle-versions-plugin:+'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
@@ -15,9 +21,12 @@ buildscript {
allprojects {
repositories {
jcenter()
+ maven {
+ url "http://dl.bintray.com/florent37/maven"
+ }
}
}
task clean(type: Delete) {
delete rootProject.buildDir
-}
+}
\ No newline at end of file
diff --git a/viewanimator/build.gradle b/viewanimator/build.gradle
index 49c01c0..5846144 100644
--- a/viewanimator/build.gradle
+++ b/viewanimator/build.gradle
@@ -1,4 +1,7 @@
apply plugin: 'com.android.library'
+apply plugin: 'com.github.dcendents.android-maven'
+apply plugin: 'com.jfrog.bintray'
+apply plugin: 'com.github.ben-manes.versions'
android {
compileSdkVersion 23
@@ -12,7 +15,119 @@ android {
}
}
+version = "1.0.0"
+
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.nineoldandroids:library:2.4.0'
}
+
+//https://github.com/danielemaddaluno/gradle-jcenter-publish
+
+// ./gradlew install bintrayUpload
+
+
+def siteUrl = 'https://github.com/florent37/ViewAnimator' // Homepage URL of the library
+def gitUrl = 'https://github.com/florent37/ViewAnimator.git' // Git repository URL
+group = "com.github.florent37" // Maven Group ID for the artifact
+
+
+install {
+ repositories.mavenInstaller {
+ // This generates POM.xml with proper parameters
+ pom {
+ project {
+ packaging 'aar'
+
+ // Add your description here
+ name 'ViewAnimator'
+ description = ''
+ url siteUrl
+
+ // Set your license
+ licenses {
+ license {
+ name 'The Apache Software License, Version 2.0'
+ url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
+ }
+ }
+ developers {
+ developer {
+ id 'florent37'
+ name 'Florent Champigny'
+ email 'champigny.florent@gmail.com'
+ }
+ }
+ scm {
+ connection gitUrl
+ developerConnection gitUrl
+ url siteUrl
+
+ }
+ }
+ }
+ }
+}
+
+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
+}
+
+task jar(type: Jar) {
+ //from android.sourceSets.main.java
+ from 'build/intermediates/classes/release/'
+}
+
+artifacts {
+ archives jar
+ archives javadocJar
+ archives sourcesJar
+}
+
+Properties properties = new Properties()
+File f = new File("local.properties")
+if(f.exists()) {
+ 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 = "ViewAnimator"
+ websiteUrl = siteUrl
+ vcsUrl = gitUrl
+ licenses = ["Apache-2.0"]
+ publish = true
+ version {
+ gpg {
+ sign = true //Determines whether to GPG sign the files. The default is false
+ passphrase = properties.getProperty("bintray.gpg.password")
+ //Optional. The passphrase for GPG signing'
+ }
+// mavenCentralSync {
+// sync = true //Optional (true by default). Determines whether to sync the version to Maven Central.
+// user = properties.getProperty("bintray.oss.user") //OSS user token
+// password = properties.getProperty("bintray.oss.password") //OSS user password
+// close = '1' //Optional property. By default the staging repository is closed and artifacts are released to Maven Central. You can optionally turn this behaviour off (by puting 0 as value) and release the version manually.
+// }
+ }
+ }
+}
\ No newline at end of file
diff --git a/viewanimator/viewanimator.iml b/viewanimator/viewanimator.iml
index 17a577f..3d25d13 100644
--- a/viewanimator/viewanimator.iml
+++ b/viewanimator/viewanimator.iml
@@ -1,5 +1,5 @@
-
+