build.gradle 921 B

12345678910111213141516171819202122232425262728293031323334
  1. plugins {
  2. id 'java'
  3. id 'org.springframework.boot' version '3.2.1'
  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. }
  16. dependencies {
  17. implementation 'org.springframework.boot:spring-boot-starter-web'
  18. implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
  19. implementation 'org.springframework.boot:spring-boot-starter-validation'
  20. compileOnly 'org.projectlombok:lombok'
  21. runtimeOnly 'com.microsoft.sqlserver:mssql-jdbc'
  22. runtimeOnly 'com.h2database:h2'
  23. developmentOnly 'org.springframework.boot:spring-boot-devtools'
  24. annotationProcessor 'org.projectlombok:lombok'
  25. testImplementation 'org.springframework.boot:spring-boot-starter-test'
  26. }
  27. tasks.named('test') {
  28. useJUnitPlatform()
  29. }