Bladeren bron

修复pom描述问题.

nieqiurong 6 jaren geleden
bovenliggende
commit
4a2b8bc5ac
2 gewijzigde bestanden met toevoegingen van 7 en 2 verwijderingen
  1. 3 2
      build.gradle
  2. 4 0
      mybatis-plus-boot-starter/build.gradle

+ 3 - 2
build.gradle

@@ -18,7 +18,6 @@ ext {
         mybatisSpringVersion = '1.3.2',
         mybatisVersion = '3.4.6',
         springVersion = '5.1.2.RELEASE',
-        springBootVersion = '2.1.0.RELEASE',
         jsqlparserVersion = '1.3',
     ]
 
@@ -204,9 +203,11 @@ subprojects {
                             d.scope.text() == 'runtime' && project.configurations.findByName("implementation").allDependencies.find { dep ->
                                 dep.name == it.artifactId.text()
                             }.each() {
-                                d.scope*.value = 'provided'
                                 if(d.artifactId.text() != 'lombok'){
+                                    d.scope*.value = 'compile'
                                     d.appendNode('optional', true)
+                                }else {
+                                    d.scope*.value = 'provided'
                                 }
                             }
                         }

+ 4 - 0
mybatis-plus-boot-starter/build.gradle

@@ -1,6 +1,10 @@
+ext{
+    springBootVersion = "2.1.0.RELEASE"
+}
 dependencies {
     api project(":mybatis-plus")
     implementation(enforcedPlatform("org.springframework.boot:spring-boot-dependencies:${springBootVersion}" as String))
+    annotationProcessor "org.springframework.boot:spring-boot-configuration-processor:${springBootVersion}"
     api 'org.springframework.boot:spring-boot-autoconfigure'
     api 'org.springframework.boot:spring-boot-starter-jdbc'
     implementation 'org.springframework.boot:spring-boot-configuration-processor'