build.gradle 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  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. mavenLocal()
  13. mavenCentral()
  14. maven { url "https://repo.spring.io/milestone" }
  15. maven { url "https://repo.spring.io/snapshot" }
  16. }
  17. dependencies {
  18. implementation 'org.springframework.boot:spring-boot-starter-security'
  19. implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
  20. implementation 'org.springframework.boot:spring-boot-starter-web'
  21. implementation 'org.springframework.boot:spring-boot-starter-mail'
  22. implementation 'org.thymeleaf.extras:thymeleaf-extras-springsecurity6'
  23. testImplementation 'org.springframework.boot:spring-boot-starter-test'
  24. testImplementation 'org.springframework.security:spring-security-test'
  25. testImplementation 'com.icegreen:greenmail-junit5:2.0.1'
  26. testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
  27. runtimeOnly 'org.springframework.boot:spring-boot-docker-compose'
  28. }
  29. tasks.named('test') {
  30. useJUnitPlatform()
  31. }