diff --git a/DoubleViewPager/build.gradle b/DoubleViewPager/build.gradle index 5a683a6..e56183e 100644 --- a/DoubleViewPager/build.gradle +++ b/DoubleViewPager/build.gradle @@ -1,8 +1,16 @@ apply plugin: 'com.android.library' +//TO UPLOAD TO BINTRAY +//apply plugin: 'com.jfrog.bintray' +//apply plugin: 'com.github.dcendents.android-maven' + +// TO UPLOAD TO BINTRAY +//group = "com.github.juliome10" +//version = "1.0.1" android { compileSdkVersion 22 buildToolsVersion "22.0.1" + resourcePrefix "doubleviewpager__" //TO GENERATE AAR STEP1 defaultConfig { minSdkVersion 8 @@ -18,7 +26,95 @@ android { } } +//TO UPLOAD TO BINTRAY +//def siteUrl = 'https://github.com/juliome10/DoubleViewPager' // Homepage URL of the library +//def issueUrl = 'https://github.com/juliome10/DoubleViewPager/issues' // URL for issues +//def gitUrl = 'https://github.com/juliome10/DoubleViewPager.git' // Git repository URL +// +// +//install { +// repositories.mavenInstaller { +// // This generates POM.xml with proper parameters +// pom { +// project { +// packaging 'aar' +// +// // Add your description here +// name 'DoubleViewPager' +// 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 'juliome10' +// name 'Julio Gómez' +// email 'juliogomezreis@gmail.com' +// } +// } +// scm { +// connection gitUrl +// developerConnection gitUrl +// url siteUrl +// +// } +// } +// } +// } +//} +// +//Properties properties = new Properties() +//properties.load(project.rootProject.file('local.properties').newDataInputStream()) +// +//bintray { +// user = properties.getProperty("bintray.user") +// key = properties.getProperty("bintray.apikey") +// +// configurations = ['archives'] +// pkg { +// repo = "maven" +// name = "DoubleViewPager" +// websiteUrl = siteUrl +// issueTrackerUrl = issueUrl +// vcsUrl = gitUrl +// licenses = ["Apache-2.0"] +// publish = true +// labels = [] +// publicDownloadNumbers = true +// } +//} + dependencies { - compile fileTree(dir: 'libs', include: ['*.jar']) - compile 'com.android.support:appcompat-v7:22.2.1' + compile 'com.android.support:support-v4:22.+' + compile fileTree(include: '*.jar', dir: 'libs') } + +//TO UPLOAD TO BINTRAY +//task sourcesJar(type: Jar) { +// from android.sourceSets.main.java.srcDirs +// classifier = 'sources' +//} +// +//task javadoc(type: Javadoc) { +// classpath = configurations.compile +// 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 +//} +// +//task findConventions << { +// println project.getConvention() +//} \ No newline at end of file diff --git a/DoubleViewPagerSample/build.gradle b/DoubleViewPagerSample/build.gradle index c045716..c02d1bd 100644 --- a/DoubleViewPagerSample/build.gradle +++ b/DoubleViewPagerSample/build.gradle @@ -5,11 +5,11 @@ android { buildToolsVersion "22.0.1" defaultConfig { - applicationId "com.emoiluj.doubleviewpagersample" + applicationId "com.emoiluj.doubleviewpager" minSdkVersion 8 targetSdkVersion 21 - versionCode 2 - versionName "1.1" + versionCode 1 + versionName "1.0" } buildTypes { release { @@ -20,7 +20,5 @@ android { } dependencies { - compile fileTree(dir: 'libs', include: ['*.jar']) - compile 'com.android.support:appcompat-v7:22.2.1' compile project(':DoubleViewPager') } diff --git a/build.gradle b/build.gradle index 1b7886d..4940c8a 100644 --- a/build.gradle +++ b/build.gradle @@ -6,7 +6,9 @@ buildscript { } dependencies { classpath 'com.android.tools.build:gradle:1.3.0' - +// classpath 'org.codehaus.groovy:groovy-backports-compat23:2.3.5' +// classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.2' +// classpath 'com.github.dcendents:android-maven-gradle-plugin:1.3' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } diff --git a/settings.gradle b/settings.gradle index b15dbd6..9b2f794 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1 +1,4 @@ include ':DoubleViewPagerSample', ':DoubleViewPager' +//TO UPLOAD TO BINTRAY. +// ONLY LIBRARY +//include ':DoubleViewPager'