Skip to content

Commit

Permalink
Add configuration to publish to jCenter
Browse files Browse the repository at this point in the history
  • Loading branch information
juliome10 committed Nov 6, 2015
1 parent 393d5d7 commit fdbd3ab
Show file tree
Hide file tree
Showing 4 changed files with 107 additions and 8 deletions.
100 changes: 98 additions & 2 deletions DoubleViewPager/build.gradle
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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 '[email protected]'
// }
// }
// 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()
//}
8 changes: 3 additions & 5 deletions DoubleViewPagerSample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -20,7 +20,5 @@ android {
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:22.2.1'
compile project(':DoubleViewPager')
}
4 changes: 3 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
3 changes: 3 additions & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
include ':DoubleViewPagerSample', ':DoubleViewPager'
//TO UPLOAD TO BINTRAY.
// ONLY LIBRARY
//include ':DoubleViewPager'

0 comments on commit fdbd3ab

Please sign in to comment.