<NME> build.gradle
<BEF> // Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    apply from: "config.gradle"
    def runType = rootProject.ext.publish_config["run_type"]
    def dokitPluginVersion = rootProject.ext.publish_config["version"]

    def kotlinVersion
    if (needKotlinV14()) {
        kotlinVersion = rootProject.ext.android["kotlin_version_v14"]
    } else {
        kotlinVersion = rootProject.ext.android["kotlin_version_v13"]
    }

    def gradlePluginVersion = rootProject.ext.android["agp_module_verson"]


    repositories {
        google()
        mavenCentral()
        jcenter()
        maven {
            url "https://oss.sonatype.org/content/groups/public"
        }

        println("[dokit build] add buildscript private repositories")
        println("[dokit build] usePrivateEnv=" + usePrivateEnv() +",privateRepository="+ privateRepository())
        println("[dokit build] useLocalRepository="+useLocalRepository()+",localRepository="+localRepository() )

        if (usePrivateEnv()){
task clean(type: Delete) {
    delete rootProject.buildDir
}
            maven {
                url uri(localRepository())
            }
        }

    }
    dependencies {
        classpath "com.android.tools.build:gradle:$gradlePluginVersion"

        // MavenCentral
        classpath "org.jetbrains.dokka:dokka-gradle-plugin:1.4.30"
        if (runType == 1) {
            classpath "io.github.didi.dokit:dokitx-plugin:$dokitPluginVersion"
        }
//        classpath "com.didiglobal.booster:booster-task-compression-pngquant:${rootProject.ext.android["booster_version"]}"

        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
//        classpath "com.didiglobal.booster:booster-gradle-plugin:3.3.1"
//        classpath "com.didiglobal.booster:booster-task-analyser:3.3.1"
    }

}

apply from: "./config.gradle"

allprojects {
    def isRootProject = "Dokit-Android".equals(project.name)
    repositories {
        google()
        mavenCentral()
        jcenter()
        maven {
            url "https://oss.sonatype.org/content/groups/public"
        }

        println("[dokit build] add allprojects repositories config project=" + project.name)
        println("[dokit build] usePrivateEnv=" + usePrivateEnv() + ",privateRepository=" + privateRepository())
        println("[dokit build] useLocalRepository=" + useLocalRepository() + ",localRepository=" + localRepository())

        if (usePrivateEnv()) {
            maven {
                url privateRepository()
            }
        }

        if (useLocalRepository()){
            maven {
                url uri(localRepository())
            }
        }
    }
}

task clean(type: Delete) {
    doLast {
        delete rootProject.buildDir
    }
}

/**
 * 删除指定目录下的文件
 */
task deleteSource(type: Delete) {
    doFirst {
        println("path===>${project.rootDir}")
        println("===delete Plugin Source start===")
    }
    followSymlinks = true
    delete "${project.rootDir}/dokit-plugin/src/main/kotlin"
    doLast {
        println("===delete Plugin Source end===")
    }
}

/**
 * 将buildSrc中的代码同步到doraemonkit-plugin中
 */
task copyPluginSource(type: Copy, dependsOn: deleteSource) {
    doFirst {
        println("===copy Plugin Source start===")
    }

    from "${project.rootDir}/buildSrc/src/main/kotlin"
    into "${project.rootDir}/dokit-plugin/src/main/kotlin"
    include('**/*')

    doLast {
        println("===copy Plugin Source end===")
    }
}

/**
 * 打包上传配置检查
 */
task checkUploadConfig4Maven() {
    doLast {
        if (rootProject.ext.publish_config["archives_type"] != 2) {
            throw new RuntimeException("执行当前打包上传任务必须修改config.gradle配置中的archives_type = 2。")
        }

        //仓库检查
        def repositories = new ArrayList<String>()

        rootProject.repositories.forEach {
            if (it instanceof MavenArtifactRepository) {
                repositories.add((it as MavenArtifactRepository).url.toString())
            }
        }

        //相关模块检查
        def modules = new ArrayList<String>()

        rootProject.allprojects.forEach {
            modules.add(it.name)
        }

//        if (!modules.contains("dokit-rpc")) {
//            throw new RuntimeException("未找到dokit-rpc module。。。")
//        }
//
//        if (!modules.contains("dokit-rpc-mc")) {
//            throw new RuntimeException("未找到dokit-rpc-mc module。。。")
//        }

        if (!modules.contains("dokit-plugin")) {
            throw new RuntimeException("未找到dokit-plugin module。。。")
        }
    }
}

task checkUploadConfig4Local() {
    doLast {
        //配置检查
        if (rootProject.ext.publish_config["archives_type"] != 0) {
            throw new RuntimeException("执行当前打包上传任务必须修改config.gradle配置中的archives_type = 0。")
        }
        //仓库检查
        def repositories = new ArrayList<String>()

        rootProject.repositories.forEach {
            if (it instanceof MavenArtifactRepository) {
                repositories.add((it as MavenArtifactRepository).url.toString())
            }
        }

        //相关模块检查
        def modules = new ArrayList<String>()

        rootProject.allprojects.forEach {
            modules.add(it.name)
        }

//        if (!modules.contains("dokit-rpc")) {
//            throw new RuntimeException("未找到dokit-rpc module。。。")
//        }
//
//        if (!modules.contains("dokit-rpc-mc")) {
//            throw new RuntimeException("未找到dokit-rpc-mc module。。。")
//        }

        if (!modules.contains("dokit-plugin")) {
            throw new RuntimeException("未找到dokit-plugin module。。。")
        }
    }
}

task checkUploadConfig4Didi() {
    doLast {
        if (rootProject.ext.publish_config["archives_type"] != 1) {
            throw new RuntimeException("执行当前打包上传任务必须修改config.gradle配置中的archives_type = 1。")
        }
        //仓库检查
        def repositories = new ArrayList<String>()

        rootProject.repositories.forEach {
            if (it instanceof MavenArtifactRepository) {
                repositories.add((it as MavenArtifactRepository).url.toString())
            }
        }

        //相关模块检查
        def modules = new ArrayList<String>()

        rootProject.allprojects.forEach {
            modules.add(it.name)
        }

//        if (!modules.contains("dokit-rpc")) {
//            throw new RuntimeException("未找到dokit-rpc module。。。")
//        }
//
//        if (!modules.contains("dokit-rpc-mc")) {
//            throw new RuntimeException("未找到dokit-rpc-mc module。。。")
//        }

        if (!modules.contains("dokit-plugin")) {
            throw new RuntimeException("未找到dokit-plugin module。。。")
        }
    }
}




<MSG> change[]: 依赖jcenter中的库

<DFF> @@ -31,3 +31,5 @@ allprojects {
 task clean(type: Delete) {
     delete rootProject.buildDir
 }
+
+tasks.getByPath(":doraemonkit:javadocRelease").enabled = false
\ No newline at end of file

{'commit': 'diff --git a/Android/.gitignore b/Android/.gitignore\nindex 8543d845..6b49b893 100644\n--- a/Android/.gitignore\n+++ b/Android/.gitignore\n@@ -1,6 +1,6 @@\n *.iml\n .gradle\n-/local.properties\n+local.properties\n /.idea/libraries\n /.idea/modules.xml\n /.idea/workspace.xml\ndiff --git a/Android/app/build.gradle b/Android/app/build.gradle\nindex 78268cbe..21c377be 100644\n--- a/Android/app/build.gradle\n+++ b/Android/app/build.gradle\n@@ -2,7 +2,7 @@ apply plugin: \'com.android.application\'\n apply plugin: \'com.doraemon.compiler.plugin\'\n \n android {\n-    compileSdkVersion 27\n+    compileSdkVersion 26\n     defaultConfig {\n         applicationId "com.didichuxing.doraemondemo"\n         minSdkVersion 16\n@@ -21,9 +21,9 @@ android {\n \n dependencies {\n     implementation fileTree(dir: \'libs\', include: [\'*.jar\'])\n-    implementation \'com.android.support:appcompat-v7:27.1.1\'\n+    implementation \'com.android.support:appcompat-v7:26.1.0\'\n     implementation \'com.android.support.constraint:constraint-layout:1.1.3\'\n-    implementation project(":doraemonkit")\n+    implementation \'com.didichuxing.doraemonkit:doraemonkit:0.0.1\'\n     testImplementation \'junit:junit:4.12\'\n     androidTestImplementation \'com.android.support.test:runner:1.0.2\'\n     androidTestImplementation \'com.android.support.test.espresso:espresso-core:3.0.2\'\ndiff --git a/Android/build.gradle b/Android/build.gradle\nindex 1492e359..36934e2c 100644\n--- a/Android/build.gradle\n+++ b/Android/build.gradle\n@@ -31,3 +31,5 @@ allprojects {\n task clean(type: Delete) {\n     delete rootProject.buildDir\n }\n+\n+tasks.getByPath(":doraemonkit:javadocRelease").enabled = false\n\\ No newline at end of file\ndiff --git a/Android/doraemonkit/build.gradle b/Android/doraemonkit/build.gradle\nindex a5f834fc..20b53650 100644\n--- a/Android/doraemonkit/build.gradle\n+++ b/Android/doraemonkit/build.gradle\n@@ -1,4 +1,5 @@\n apply plugin: \'com.android.library\'\n+apply from: \'upload.gradle\'\n \n android {\n     compileSdkVersion 26\n@@ -21,7 +22,6 @@ android {\n             proguardFiles getDefaultProguardFile(\'proguard-android.txt\'), \'proguard-rules.pro\'\n         }\n     }\n-\n }\n \n dependencies {\n', 'commit_subject': 'change[]: 依赖jcenter中的库', 'repo_name': 'didi/DoraemonKit', 'committer': {'name': 'wanglikun7342', 'email': 'fec5fb5550ce0d5f862d8b7a189aedaa91f33f9e@gmail.com', 'time_sec': '1545389744', 'tz_offset': '480', 'date': {'seconds': '1545389744'}}, 'commit_tree': 'd1e4e0f8a554c26772d8e2232b355198320d126a', 'commit_message': 'change[]: 依赖jcenter中的库\n', 'language_name': 'HTML', 'license': 'apache-2.0', 'hunks': '@@ -31,3 +31,5 @@ allprojects {\n task clean(type: Delete) {\n     delete rootProject.buildDir\n }\n+\n+tasks.getByPath(":doraemonkit:javadocRelease").enabled = false\n\\ No newline at end of file\n', 'addition_count': 2, 'deletion_count': 0, 'src_file': 'a/Android/build.gradle', 'tgt_file': 'b/Android/build.gradle', 'file_extension': '.gradle', 'before_file': '// Top-level build file where you can add configuration options common to all sub-projects/modules.\n\nbuildscript {\n    apply from: "config.gradle"\n    def runType = rootProject.ext.publish_config["run_type"]\n    def dokitPluginVersion = rootProject.ext.publish_config["version"]\n\n    def kotlinVersion\n    if (needKotlinV14()) {\n        kotlinVersion = rootProject.ext.android["kotlin_version_v14"]\n    } else {\n        kotlinVersion = rootProject.ext.android["kotlin_version_v13"]\n    }\n\n    def gradlePluginVersion = rootProject.ext.android["agp_module_verson"]\n\n\n    repositories {\n        google()\n        mavenCentral()\n        jcenter()\n        maven {\n            url "https://oss.sonatype.org/content/groups/public"\n        }\n\n        println("[dokit build] add buildscript private repositories")\n        println("[dokit build] usePrivateEnv=" + usePrivateEnv() +",privateRepository="+ privateRepository())\n        println("[dokit build] useLocalRepository="+useLocalRepository()+",localRepository="+localRepository() )\n\n        if (usePrivateEnv()){\ntask clean(type: Delete) {\n    delete rootProject.buildDir\n}\n            maven {\n                url uri(localRepository())\n            }\n        }\n\n    }\n    dependencies {\n        classpath "com.android.tools.build:gradle:$gradlePluginVersion"\n\n        // MavenCentral\n        classpath "org.jetbrains.dokka:dokka-gradle-plugin:1.4.30"\n        if (runType == 1) {\n            classpath "io.github.didi.dokit:dokitx-plugin:$dokitPluginVersion"\n        }\n//        classpath "com.didiglobal.booster:booster-task-compression-pngquant:${rootProject.ext.android["booster_version"]}"\n\n        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"\n//        classpath "com.didiglobal.booster:booster-gradle-plugin:3.3.1"\n//        classpath "com.didiglobal.booster:booster-task-analyser:3.3.1"\n    }\n\n}\n\napply from: "./config.gradle"\n\nallprojects {\n    def isRootProject = "Dokit-Android".equals(project.name)\n    repositories {\n        google()\n        mavenCentral()\n        jcenter()\n        maven {\n            url "https://oss.sonatype.org/content/groups/public"\n        }\n\n        println("[dokit build] add allprojects repositories config project=" + project.name)\n        println("[dokit build] usePrivateEnv=" + usePrivateEnv() + ",privateRepository=" + privateRepository())\n        println("[dokit build] useLocalRepository=" + useLocalRepository() + ",localRepository=" + localRepository())\n\n        if (usePrivateEnv()) {\n            maven {\n                url privateRepository()\n            }\n        }\n\n        if (useLocalRepository()){\n            maven {\n                url uri(localRepository())\n            }\n        }\n    }\n}\n\ntask clean(type: Delete) {\n    doLast {\n        delete rootProject.buildDir\n    }\n}\n\n/**\n * 删除指定目录下的文件\n */\ntask deleteSource(type: Delete) {\n    doFirst {\n        println("path===>${project.rootDir}")\n        println("===delete Plugin Source start===")\n    }\n    followSymlinks = true\n    delete "${project.rootDir}/dokit-plugin/src/main/kotlin"\n    doLast {\n        println("===delete Plugin Source end===")\n    }\n}\n\n/**\n * 将buildSrc中的代码同步到doraemonkit-plugin中\n */\ntask copyPluginSource(type: Copy, dependsOn: deleteSource) {\n    doFirst {\n        println("===copy Plugin Source start===")\n    }\n\n    from "${project.rootDir}/buildSrc/src/main/kotlin"\n    into "${project.rootDir}/dokit-plugin/src/main/kotlin"\n    include(\'**/*\')\n\n    doLast {\n        println("===copy Plugin Source end===")\n    }\n}\n\n/**\n * 打包上传配置检查\n */\ntask checkUploadConfig4Maven() {\n    doLast {\n        if (rootProject.ext.publish_config["archives_type"] != 2) {\n            throw new RuntimeException("执行当前打包上传任务必须修改config.gradle配置中的archives_type = 2。")\n        }\n\n        //仓库检查\n        def repositories = new ArrayList<String>()\n\n        rootProject.repositories.forEach {\n            if (it instanceof MavenArtifactRepository) {\n                repositories.add((it as MavenArtifactRepository).url.toString())\n            }\n        }\n\n        //相关模块检查\n        def modules = new ArrayList<String>()\n\n        rootProject.allprojects.forEach {\n            modules.add(it.name)\n        }\n\n//        if (!modules.contains("dokit-rpc")) {\n//            throw new RuntimeException("未找到dokit-rpc module。。。")\n//        }\n//\n//        if (!modules.contains("dokit-rpc-mc")) {\n//            throw new RuntimeException("未找到dokit-rpc-mc module。。。")\n//        }\n\n        if (!modules.contains("dokit-plugin")) {\n            throw new RuntimeException("未找到dokit-plugin module。。。")\n        }\n    }\n}\n\ntask checkUploadConfig4Local() {\n    doLast {\n        //配置检查\n        if (rootProject.ext.publish_config["archives_type"] != 0) {\n            throw new RuntimeException("执行当前打包上传任务必须修改config.gradle配置中的archives_type = 0。")\n        }\n        //仓库检查\n        def repositories = new ArrayList<String>()\n\n        rootProject.repositories.forEach {\n            if (it instanceof MavenArtifactRepository) {\n                repositories.add((it as MavenArtifactRepository).url.toString())\n            }\n        }\n\n        //相关模块检查\n        def modules = new ArrayList<String>()\n\n        rootProject.allprojects.forEach {\n            modules.add(it.name)\n        }\n\n//        if (!modules.contains("dokit-rpc")) {\n//            throw new RuntimeException("未找到dokit-rpc module。。。")\n//        }\n//\n//        if (!modules.contains("dokit-rpc-mc")) {\n//            throw new RuntimeException("未找到dokit-rpc-mc module。。。")\n//        }\n\n        if (!modules.contains("dokit-plugin")) {\n            throw new RuntimeException("未找到dokit-plugin module。。。")\n        }\n    }\n}\n\ntask checkUploadConfig4Didi() {\n    doLast {\n        if (rootProject.ext.publish_config["archives_type"] != 1) {\n            throw new RuntimeException("执行当前打包上传任务必须修改config.gradle配置中的archives_type = 1。")\n        }\n        //仓库检查\n        def repositories = new ArrayList<String>()\n\n        rootProject.repositories.forEach {\n            if (it instanceof MavenArtifactRepository) {\n                repositories.add((it as MavenArtifactRepository).url.toString())\n            }\n        }\n\n        //相关模块检查\n        def modules = new ArrayList<String>()\n\n        rootProject.allprojects.forEach {\n            modules.add(it.name)\n        }\n\n//        if (!modules.contains("dokit-rpc")) {\n//            throw new RuntimeException("未找到dokit-rpc module。。。")\n//        }\n//\n//        if (!modules.contains("dokit-rpc-mc")) {\n//            throw new RuntimeException("未找到dokit-rpc-mc module。。。")\n//        }\n\n        if (!modules.contains("dokit-plugin")) {\n            throw new RuntimeException("未找到dokit-plugin module。。。")\n        }\n    }\n}\n\n\n\n', 'message': 'change[]: 依赖jcenter中的库\n', 'author_name': 'wanglikun7342', 'lang': 'gradle'}