build.gradle 837 B

12345678910111213141516171819202122232425262728
  1. subprojects {
  2. apply plugin: "java"
  3. apply plugin: "idea"
  4. apply plugin: "eclipse"
  5. apply plugin: "maven"
  6. [compileJava,compileTestJava,javadoc]*.options*.encoding = "UTF-8"
  7. configurations {
  8. all*.exclude module: "spring-boot-starter-tomcat"
  9. all*.exclude module: "spring-boot-starter-logging"
  10. }
  11. dependencies{
  12. //添加如下的依赖后,可以不安装lombok插件
  13. compileOnly 'org.projectlombok:lombok:1.18.12'
  14. annotationProcessor 'org.projectlombok:lombok:1.18.12'
  15. // testAnnotationProcessor 'org.projectlombok:lombok:$lombokVersion'
  16. // testCompileOnly 'org.projectlombok:lombok:$lombokVersion'
  17. }
  18. repositories {
  19. mavenLocal()
  20. maven { url "http://maven.aliyun.com/nexus/content/groups/public/" }
  21. mavenCentral()
  22. }
  23. }