build.gradle 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. plugins {
  2. id 'java'
  3. id 'org.springframework.boot' version '3.2.3'
  4. id 'io.spring.dependency-management' version '1.1.4'
  5. }
  6. group = 'com.example'
  7. version = '0.0.1-SNAPSHOT'
  8. java {
  9. sourceCompatibility = '17'
  10. }
  11. configurations {
  12. compileOnly {
  13. extendsFrom annotationProcessor
  14. }
  15. all*.exclude module: 'spring-boot-starter-logging'
  16. }
  17. repositories {
  18. mavenCentral()
  19. }
  20. dependencies {
  21. implementation 'org.springframework.boot:spring-boot-starter-data-jdbc'
  22. implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
  23. implementation 'org.springframework.boot:spring-boot-starter-graphql'
  24. implementation 'org.springframework.boot:spring-boot-starter-web'
  25. implementation 'org.springframework.boot:spring-boot-starter-web-services'
  26. compileOnly 'org.projectlombok:lombok'
  27. developmentOnly 'org.springframework.boot:spring-boot-devtools'
  28. annotationProcessor 'org.projectlombok:lombok'
  29. testImplementation 'org.springframework.boot:spring-boot-starter-test'
  30. testImplementation 'org.springframework:spring-webflux'
  31. testImplementation 'org.springframework.graphql:spring-graphql-test'
  32. // log4j2
  33. implementation 'org.springframework.boot:spring-boot-starter-log4j2'
  34. // webmvc
  35. /* implementation 'org.springframework'*/
  36. }
  37. tasks.named('test') {
  38. useJUnitPlatform()
  39. }