pull/2/head
lyy 8 years ago
parent d2ad1c9a4d
commit dc7c6bc4d2
  1. 4
      build.gradle
  2. 6
      downloadutil/build.gradle
  3. 16
      downloadutil/jcenter.gradle
  4. BIN
      gradle/wrapper/gradle-wrapper.jar
  5. 2
      gradle/wrapper/gradle-wrapper.properties

@ -5,10 +5,10 @@ buildscript {
jcenter() jcenter()
} }
dependencies { dependencies {
// classpath 'com.android.tools.build:gradle:2.1.0' classpath 'com.android.tools.build:gradle:1.5.0'
classpath 'com.android.tools.build:gradle:2.2.0'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.6' classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.6'
classpath "org.jfrog.buildinfo:build-info-extractor-gradle:3.1.1" classpath "org.jfrog.buildinfo:build-info-extractor-gradle:3.1.1"
// classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
// NOTE: Do not place your application dependencies here; they belong // NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files // in the individual module build.gradle files
} }

@ -6,8 +6,8 @@ android {
defaultConfig { defaultConfig {
minSdkVersion 9 minSdkVersion 9
targetSdkVersion 23 targetSdkVersion 23
versionCode 13 versionCode 56
versionName "1.0.1" versionName "2.0.0"
} }
buildTypes { buildTypes {
release { release {
@ -23,4 +23,4 @@ dependencies {
compile 'com.android.support:appcompat-v7:23.1.1' compile 'com.android.support:appcompat-v7:23.1.1'
} }
//apply from: 'jcenter.gradle' apply from: 'jcenter.gradle'

@ -11,7 +11,6 @@ task sourcesJar(type: Jar) {
} }
task javadoc(type: Javadoc) { task javadoc(type: Javadoc) {
options.encoding = "utf-8"
source = android.sourceSets.main.java.srcDirs source = android.sourceSets.main.java.srcDirs
classpath += configurations.compile classpath += configurations.compile
classpath += project.files(android.getBootClasspath().join(File.pathSeparator)) classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
@ -41,8 +40,7 @@ javadoc {
// : xxxx // : xxxx
android.libraryVariants.all { variant -> android.libraryVariants.all { variant ->
println variant.javaCompile.classpath.files println variant.javaCompile.classpath.files
if (variant.name == 'release') { if (variant.name == 'release') { // release javadoc
// release javadoc
task("generate${variant.name.capitalize()}Javadoc", type: Javadoc) { task("generate${variant.name.capitalize()}Javadoc", type: Javadoc) {
// title = '' // title = ''
// description = '' // description = ''
@ -56,8 +54,7 @@ android.libraryVariants.all { variant ->
exclude '**/BuildConfig.java' exclude '**/BuildConfig.java'
exclude '**/R.java' exclude '**/R.java'
} }
task("javadoc${variant.name.capitalize()}Jar", type: Jar, task("javadoc${variant.name.capitalize()}Jar", type: Jar, dependsOn: "generate${variant.name.capitalize()}Javadoc") {
dependsOn: "generate${variant.name.capitalize()}Javadoc") {
classifier = 'javadoc' classifier = 'javadoc'
from tasks.getByName("generate${variant.name.capitalize()}Javadoc").destinationDir from tasks.getByName("generate${variant.name.capitalize()}Javadoc").destinationDir
} }
@ -93,6 +90,15 @@ def pomConfig = {
email DEVELOPER_EMAIL email DEVELOPER_EMAIL
} }
} }
"dependencies " {
// dependency {
// groupId "com.alibaba"
// artifactId "fastjson"
// "version " "1.2.6"
// //dependencies
// }
// }
}
} }
publishing { publishing {

Binary file not shown.

@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip distributionUrl=https\://services.gradle.org/distributions/gradle-2.10-all.zip

Loading…
Cancel
Save