提交 f22dac6c 编写于 作者: J jessyan

add to jCenter

上级 8c7d0abb
......@@ -56,7 +56,8 @@ dependencies {
apt rootProject.ext.dependencies["dagger2-apt-compiler"]
provided rootProject.ext.dependencies["javax.annotation"]
apt rootProject.ext.dependencies["butterknife-apt"]
compile project(':arms')
// compile project(':arms')
compile 'me.jessyan:arms:1.2.4'
compile rootProject.ext.dependencies["paginate"]
debugCompile rootProject.ext.dependencies["canary-debug"]
releaseCompile rootProject.ext.dependencies["canary-release"]
......
apply plugin: 'com.jfrog.bintray'
apply plugin: 'com.github.dcendents.android-maven'
Properties properties = new Properties()
properties.load(project.rootProject.file('local.properties').newDataInputStream())
def gitUrl = 'https://github.com/JessYanCoding/MVPArms.git' // Git仓库的url
def siteUrl = 'https://github.com/JessYanCoding/MVPArms' // 项目的主页
version = rootProject.ext.android["versionName"]
group = "me.jessyan"
bintray {
user = properties.getProperty("bintray.user")
key = properties.getProperty("bintray.apikey")
pkg {
repo = 'maven'
name = 'MVPArms'
licenses = ["Apache-2.0"]
websiteUrl = siteUrl
vcsUrl = gitUrl
publish = true // 是否是公开项目。
version {
name = rootProject.ext.android["versionName"]
desc = 'A common Architecture for Android Applications developing based on MVP,integrates many Open Source Projects( like Dagger2,Rxjava,Retrofit... ),to make your developing quicker and easier.'
released = new Date()
vcsTag = 'v' + rootProject.ext.android["versionName"]
attributes = ['gradle-plugin': 'com.use.less:com.use.less.gradle:gradle-useless-plugin']
}
}
configurations = ['archives']
}
install {
repositories.mavenInstaller {
// This generates POM.xml with proper parameters
pom {
project {
packaging 'aar'
// Add your description here
name 'MVPArms'
description 'A common Architecture for Android Applications developing based on MVP,integrates many Open Source Projects( like Dagger2,Rxjava,Retrofit... ),to make your developing quicker and easier.'
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 'JessYanCoding' //填写bintray或者github的用户名
name 'jessyan' //姓名,可以是中文
email 'jess.yan.effort@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) {
failOnError false
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
}
......@@ -96,3 +96,6 @@ dependencies {
exclude module: 'rxjava'
}
}
apply from: 'bintray.gradle'
\ No newline at end of file
......@@ -6,9 +6,10 @@ buildscript {
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
//Gradle Android Maven plugin
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
//Gradle Bintray Plugin
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3'
}
}
......
......@@ -13,6 +13,4 @@
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true
#Sun Aug 21 18:03:42 CST 2016
systemProp.http.proxyHost=127.0.0.1
systemProp.http.proxyPort=1080
android.enableBuildCache=true
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册