// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle:1.3.0' classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.0' 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 } }
def siteUrl = 'https://github.com/hanks-zyh/AnimateCheckBox' // #CONFIG# // project homepage def gitUrl = 'https://github.com/hanks-zyh/AnimateCheckBox.git' // #CONFIG# // project git group = "com.hanks" // #CONFIG# // Maven Group ID for the artifact (pageckage name is ok)
install { repositories.mavenInstaller { // This generates POM.xml with proper parameters pom { project { packaging 'aar' name 'Less Code For Android' // #CONFIG# // project title url siteUrl // Set your license licenses { license { name 'The Apache Software License, Version 2.0' url 'https://www.apache.org/licenses/LICENSE-2.0.txt' } } developers { developer { id 'hanks' // #CONFIG# // your user id (you can write your nickname) name 'hanks' // #CONFIG# // your user name email '[email protected]' // #CONFIG# // your email } } scm { connection gitUrl developerConnection gitUrl url siteUrl } } } } }
task sourcesJar(type: Jar) { from android.sourceSets.main.java.srcDirs classifier = 'sources' }