浏览代码

同步3.0代码.

聂秋秋 6 年之前
父节点
当前提交
d9d8bd5c26
共有 1 个文件被更改,包括 11 次插入6 次删除
  1. 11 6
      build.gradle

+ 11 - 6
build.gradle

@@ -162,12 +162,7 @@ subprojects{
                     packaging 'jar'
                     packaging 'jar'
                     description = 'An enhanced toolkit of Mybatis to simplify development.'
                     description = 'An enhanced toolkit of Mybatis to simplify development.'
                     url = 'https://github.com/baomidou/mybatis-plus'
                     url = 'https://github.com/baomidou/mybatis-plus'
-                    licenses {
-                        license {
-                            name = 'The Apache License, Version 2.0'
-                            url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
-                        }
-                    }
+                 
                     scm {
                     scm {
                         connection = 'scm:git@github.com:Codearte/gradle-nexus-staging-plugin.git'
                         connection = 'scm:git@github.com:Codearte/gradle-nexus-staging-plugin.git'
                         developerConnection = 'scm:git@github.com:Codearte/gradle-nexus-staging-plugin.git'
                         developerConnection = 'scm:git@github.com:Codearte/gradle-nexus-staging-plugin.git'
@@ -188,6 +183,16 @@ subprojects{
                             email = 'jobob@qq.com'
                             email = 'jobob@qq.com'
                         }
                         }
                     }
                     }
+
+                    withXml {
+                        asNode().dependencies.'*'.findAll() {
+                            it.scope.text() == 'compile' && project.configurations.provided.allDependencies.find { dep ->
+                                dep.name == it.artifactId.text()
+                            }
+                        }.each() {
+                            it.scope*.value = 'provided'
+                        }
+                    }
                 }
                 }
             }
             }
         }
         }