build.gradle 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  1. plugins {
  2. id 'java'
  3. alias(libs.plugins.io.spring.dependency.management)
  4. alias(libs.plugins.org.springframework.boot)
  5. }
  6. java {
  7. toolchain {
  8. languageVersion = JavaLanguageVersion.of(17)
  9. }
  10. }
  11. repositories {
  12. mavenCentral()
  13. maven { url "https://repo.spring.io/milestone" }
  14. maven { url "https://repo.spring.io/snapshot" }
  15. }
  16. dependencies {
  17. implementation 'org.springframework.boot:spring-boot-starter-security'
  18. implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
  19. implementation 'org.springframework.boot:spring-boot-starter-web'
  20. implementation 'org.springframework.boot:spring-boot-starter-mail'
  21. implementation 'org.thymeleaf.extras:thymeleaf-extras-springsecurity6'
  22. testImplementation 'org.springframework.boot:spring-boot-starter-test'
  23. testImplementation 'org.springframework.security:spring-security-test'
  24. testImplementation 'com.icegreen:greenmail-junit5:2.0.1'
  25. testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
  26. runtimeOnly 'org.springframework.boot:spring-boot-docker-compose'
  27. }
  28. tasks.named('test') {
  29. useJUnitPlatform()
  30. }