build.gradle 960 B

123456789101112131415161718192021222324252627282930313233343536
  1. plugins {
  2. id 'java'
  3. id 'org.springframework.boot' version '3.4.4'
  4. id 'io.spring.dependency-management' version '1.1.7'
  5. }
  6. group = 'example'
  7. version = '0.0.1-SNAPSHOT'
  8. java {
  9. toolchain {
  10. languageVersion = JavaLanguageVersion.of(17)
  11. }
  12. }
  13. repositories {
  14. maven { url "https://repo.spring.io/snapshot" }
  15. maven { url "https://repo.spring.io/milestone" }
  16. mavenCentral()
  17. }
  18. dependencies {
  19. implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
  20. implementation 'org.springframework.boot:spring-boot-starter-security'
  21. implementation 'org.springframework.boot:spring-boot-starter-web'
  22. implementation 'org.springframework.security:spring-security-acl'
  23. implementation 'org.hsqldb:hsqldb'
  24. testImplementation 'org.springframework.boot:spring-boot-starter-test'
  25. testImplementation 'org.springframework.security:spring-security-test'
  26. testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
  27. }
  28. tasks.named('test') {
  29. useJUnitPlatform()
  30. }