build.gradle 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. plugins {
  2. id 'io.spring.dependency-management' version '1.0.11.RELEASE'
  3. }
  4. subprojects {
  5. apply plugin: "java-library"
  6. apply plugin: "idea"
  7. apply plugin: "eclipse"
  8. apply plugin: "maven-publish"
  9. apply plugin: 'io.spring.dependency-management'
  10. [compileJava, compileTestJava, javadoc]*.options*.encoding = "UTF-8"
  11. configurations {
  12. all*.exclude module: "spring-boot-starter-tomcat"
  13. all*.exclude module: "spring-boot-starter-logging"
  14. }
  15. dependencyManagement {
  16. imports {
  17. mavenBom "org.springframework.cloud:spring-cloud-dependencies:$springCloudVersion"
  18. mavenBom "org.springframework.boot:spring-boot-dependencies:$springBootVersion"
  19. mavenBom "com.alibaba.cloud:spring-cloud-alibaba-dependencies:$springCloudAlibabaVersion"
  20. }
  21. }
  22. dependencies {
  23. compileOnly("org.projectlombok:lombok:$lombokVersion")
  24. annotationProcessor("org.projectlombok:lombok:$lombokVersion")
  25. // implementation("org.apache.logging.log4j:log4j-core:$log4jVersion")
  26. // implementation("org.apache.logging.log4j:log4j-jul:$log4jVersion")
  27. // implementation("org.apache.logging.log4j:log4j-api:$log4jVersion")
  28. // implementation("org.apache.logging.log4j:log4j-slf4j-impl:$log4jVersion")
  29. implementation("org.springframework.boot:spring-boot-starter-log4j2:$springBootVersion")
  30. }
  31. repositories {
  32. mavenLocal()
  33. maven {
  34. allowInsecureProtocol = true
  35. url "http://maven.aliyun.com/nexus/content/groups/public/"
  36. }
  37. mavenCentral()
  38. }
  39. }