build.gradle 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. //thymeleaf
  35. implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
  36. implementation 'nz.net.ultraq.thymeleaf:thymeleaf-layout-dialect'
  37. // mssql
  38. implementation 'com.microsoft.sqlserver:mssql-jdbc:9.4.0.jre8'
  39. }
  40. tasks.named('test') {
  41. useJUnitPlatform()
  42. }