Browse Source

lombok support

MaxKey 2 năm trước cách đây
mục cha
commit
dd9cc6bfd2

+ 3 - 0
build.gradle

@@ -165,6 +165,9 @@ subprojects {
          compileOnly group: 'junit', name: 'junit', version: "${junitVersion}"
          testImplementation group: 'org.mockito', name: 'mockito-all', version: "${mockitoallVersion}"
          testImplementation group: 'xmlunit', name: 'xmlunit', version: "${xmlunitVersion}"
+         // https://projectlombok.org
+         compileOnly 'org.projectlombok:lombok:1.18.4'
+         annotationProcessor 'org.projectlombok:lombok:1.18.4'
 
          //apache
          implementation group: 'commons-beanutils', name: 'commons-beanutils', version: "${commonsbeanutilsVersion}"

+ 4 - 1
config/build_docker.gradle

@@ -127,7 +127,10 @@ subprojects {
          compileOnly group: 'junit', name: 'junit', version: "${junitVersion}"
          testImplementation group: 'org.mockito', name: 'mockito-all', version: "${mockitoallVersion}"
          testImplementation group: 'xmlunit', name: 'xmlunit', version: "${xmlunitVersion}"
-
+         // https://projectlombok.org
+         compileOnly 'org.projectlombok:lombok:1.18.4'
+         annotationProcessor 'org.projectlombok:lombok:1.18.4'
+         
          //apache
          implementation group: 'commons-beanutils', name: 'commons-beanutils', version: "${commonsbeanutilsVersion}"
          implementation group: 'commons-codec', name: 'commons-codec', version: "${commonscodecVersion}"

+ 4 - 1
config/build_jar.gradle

@@ -126,7 +126,10 @@ subprojects {
          compileOnly group: 'junit', name: 'junit', version: "${junitVersion}"
          testImplementation group: 'org.mockito', name: 'mockito-all', version: "${mockitoallVersion}"
          testImplementation group: 'xmlunit', name: 'xmlunit', version: "${xmlunitVersion}"
-
+         // https://projectlombok.org
+         compileOnly 'org.projectlombok:lombok:1.18.4'
+         annotationProcessor 'org.projectlombok:lombok:1.18.4'
+         
          //apache
          implementation group: 'commons-beanutils', name: 'commons-beanutils', version: "${commonsbeanutilsVersion}"
          implementation group: 'commons-codec', name: 'commons-codec', version: "${commonscodecVersion}"

+ 4 - 1
config/build_standard.gradle

@@ -164,7 +164,10 @@ subprojects {
          compileOnly group: 'junit', name: 'junit', version: "${junitVersion}"
          testImplementation group: 'org.mockito', name: 'mockito-all', version: "${mockitoallVersion}"
          testImplementation group: 'xmlunit', name: 'xmlunit', version: "${xmlunitVersion}"
-
+         // https://projectlombok.org
+         compileOnly 'org.projectlombok:lombok:1.18.4'
+         annotationProcessor 'org.projectlombok:lombok:1.18.4'
+         
          //apache
          implementation group: 'commons-beanutils', name: 'commons-beanutils', version: "${commonsbeanutilsVersion}"
          implementation group: 'commons-codec', name: 'commons-codec', version: "${commonscodecVersion}"

+ 0 - 4
maxkey-core/build.gradle

@@ -3,10 +3,6 @@ description = "maxkey-core"
 dependencies {
 	implementation project(":maxkey-common")
 
-	// https://projectlombok.org
-	compileOnly 'org.projectlombok:lombok:1.18.4'
-	annotationProcessor 'org.projectlombok:lombok:1.18.4'
-	
 	//local jars
 	implementation fileTree(dir: '../maxkey-lib/', include: '*/*.jar')