build.gradle 899 B

12345678910111213141516171819202122232425262728293031323334353637
  1. buildscript {
  2. repositories {
  3. mavenLocal()
  4. mavenCentral()
  5. }
  6. ext{
  7. springBootVersion = '2.1.3.RELEASE'
  8. }
  9. dependencies {
  10. classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
  11. }
  12. }
  13. //子工程的(都可使用)
  14. subprojects {
  15. group'com.weidong'
  16. version '1.0-SNAPSHOT'
  17. apply plugin:'java'
  18. apply plugin: 'io.spring.dependency-management'
  19. apply plugin: 'org.springframework.boot'
  20. repositories {
  21. mavenLocal()
  22. mavenCentral()
  23. }
  24. dependencies {
  25. compile 'org.springframework.boot:spring-boot-starter-web'
  26. annotationProcessor 'org.projectlombok:lombok:1.18.2'
  27. compileOnly 'org.projectlombok:lombok:1.18.2'
  28. compile 'org.springframework.boot:spring-boot-starter-thymeleaf'
  29. compile("org.springframework.boot:spring-boot-devtools")
  30. }
  31. }