瀏覽代碼

调整 build.gradle 依赖项 子项目的 lombok 及 junit 统一 全局配置

ming 7 年之前
父節點
當前提交
2085ab7308

+ 6 - 1
build.gradle

@@ -27,7 +27,7 @@ ext {
         //test
         "spring-test"           : "org.springframework:spring-test:${springVersion}",
         "junit"                 : "junit:junit:4.12",
-        "lombok"                : "org.projectlombok:lombok:1.16.16",
+        "lombok"                : "org.projectlombok:lombok:1.16.20",
         "fastjson"              : "com.alibaba:fastjson:1.2.37",
         "tomcatjdbc"            : "org.apache.tomcat:tomcat-jdbc:9.0.2",
         //datasource
@@ -89,6 +89,11 @@ subprojects {
         jcenter()
     }
 
+    dependencies {
+        compileOnly dependencies["lombok"]
+        testCompile dependencies["junit"]
+    }
+
     task sourcesJar(type: Jar, dependsOn: classes) {
         classifier = 'sources'
         from sourceSets.main.allSource

+ 0 - 3
mybatis-plus-adapter/build.gradle

@@ -6,7 +6,4 @@ dependencies {
     compile project(":mybatis-plus-core")
     compile project(":mybatis-plus-extension")
     compile project(":mybatis-plus-annotation")
-    testCompile 'junit:junit:4.12'
-    compileOnly rootProject.ext.dependencies["lombok"]
-
 }

+ 0 - 2
mybatis-plus-annotation/build.gradle

@@ -3,7 +3,5 @@ apply plugin: 'java'
 sourceCompatibility = 1.8
 
 dependencies {
-    testCompile 'junit:junit:4.12'
-    compileOnly rootProject.ext.dependencies["lombok"]
 
 }

+ 0 - 3
mybatis-plus-core/build.gradle

@@ -6,17 +6,14 @@ dependencies {
     compile project(":mybatis-plus-annotation")
     compile rootProject.ext.dependencies["mybatis"]
     compile rootProject.ext.dependencies["jsqlparser"]
-    compileOnly rootProject.ext.dependencies["lombok"]
     compile group: 'com.trigersoft', name: 'jaque', version: '2.1.2'
 
     testCompile rootProject.ext.dependencies["mybatis-ehcache"]
     testCompile rootProject.ext.dependencies["logback-classic"]
-    testCompile rootProject.ext.dependencies["junit"]
     testCompile(rootProject.ext.dependencies["commons-dbcp2"]) {
         exclude module: "commons-logging"
     }
     testCompile rootProject.ext.dependencies["aspectjweaver"]
-    testCompile rootProject.ext.dependencies["lombok"]
     testCompile rootProject.ext.dependencies["hikaricp"]
     testCompile rootProject.ext.dependencies["druid"]
     testCompile rootProject.ext.dependencies["fastjson"]

+ 0 - 2
mybatis-plus-extension/build.gradle

@@ -13,8 +13,6 @@ dependencies {
 
     testCompile 'javax.servlet:servlet-api:2.5'
 
-    testCompile 'junit:junit:4.12'
-    testCompile rootProject.ext.dependencies["lombok"]
     testCompile rootProject.ext.dependencies["spring-test"]
     testCompile rootProject.ext.dependencies["fastjson"]
 

+ 0 - 1
mybatis-plus-generator/build.gradle

@@ -10,5 +10,4 @@ dependencies {
     testCompile rootProject.ext.dependencies["h2"]
     testCompile rootProject.ext.dependencies["mysql"]
     testCompile rootProject.ext.dependencies["logback-classic"]
-    testCompile rootProject.ext.dependencies["junit"]
 }