build.gradle 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. plugins {
  2. id 'org.springframework.boot' version '3.0.5'
  3. id 'io.spring.dependency-management' version '1.0.15.RELEASE'
  4. id 'java'
  5. }
  6. group = 'com.danielbohry'
  7. version = '0.1'
  8. sourceCompatibility = '21'
  9. targetCompatibility = '21'
  10. repositories {
  11. mavenCentral()
  12. }
  13. dependencies {
  14. implementation 'org.springframework.boot:spring-boot-starter-web'
  15. implementation 'org.springframework.boot:spring-boot-starter-data-mongodb'
  16. implementation 'org.springframework.cloud:spring-cloud-starter-openfeign:4.0.2'
  17. implementation 'org.springframework.boot:spring-boot-starter-cache'
  18. implementation 'com.github.ben-manes.caffeine:caffeine'
  19. implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.2.0'
  20. compileOnly 'org.projectlombok:lombok:1.18.30'
  21. annotationProcessor 'org.projectlombok:lombok:1.18.30'
  22. testImplementation 'org.springframework.boot:spring-boot-starter-test'
  23. }
  24. dependencyManagement {
  25. imports {
  26. mavenBom "org.springframework.boot:spring-boot-dependencies:3.0.5"
  27. }
  28. }
  29. tasks.withType(JavaCompile) {
  30. options.encoding = 'UTF-8'
  31. }
  32. tasks.named('test') {
  33. useJUnitPlatform()
  34. }
  35. bootBuildImage {
  36. imageName = 'lhamacorp/stocks-be'
  37. }