build.gradle 1018 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. plugins {
  2. id 'org.springframework.boot' version '2.3.1.RELEASE'
  3. id 'io.spring.dependency-management' version '1.0.9.RELEASE'
  4. id 'java'
  5. }
  6. group = 'com.idatabank.eurekaserver'
  7. version = '0.0.1-SNAPSHOT'
  8. sourceCompatibility = '1.8'
  9. configurations {
  10. compileOnly {
  11. extendsFrom annotationProcessor
  12. }
  13. }
  14. repositories {
  15. mavenCentral()
  16. }
  17. ext {
  18. set('springCloudVersion', "Hoxton.SR6")
  19. }
  20. dependencies {
  21. implementation 'org.springframework.boot:spring-boot-starter-web'
  22. implementation 'org.springframework.cloud:spring-cloud-starter-netflix-eureka-server'
  23. compileOnly 'org.projectlombok:lombok'
  24. developmentOnly 'org.springframework.boot:spring-boot-devtools'
  25. annotationProcessor 'org.projectlombok:lombok'
  26. testImplementation('org.springframework.boot:spring-boot-starter-test') {
  27. exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
  28. }
  29. }
  30. dependencyManagement {
  31. imports {
  32. mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
  33. }
  34. }
  35. test {
  36. useJUnitPlatform()
  37. }