聂秋秋 пре 6 година
родитељ
комит
d9d8bd5c26
1 измењених фајлова са 11 додато и 6 уклоњено
  1. 11 6
      build.gradle

+ 11 - 6
build.gradle

@@ -162,12 +162,7 @@ subprojects{
                     packaging 'jar'
                     description = 'An enhanced toolkit of Mybatis to simplify development.'
                     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 {
                         connection = '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'
                         }
                     }
+
+                    withXml {
+                        asNode().dependencies.'*'.findAll() {
+                            it.scope.text() == 'compile' && project.configurations.provided.allDependencies.find { dep ->
+                                dep.name == it.artifactId.text()
+                            }
+                        }.each() {
+                            it.scope*.value = 'provided'
+                        }
+                    }
                 }
             }
         }