build.gradle 964 B

123456789101112131415161718192021222324252627282930313233
  1. plugins {
  2. id 'java'
  3. alias(libs.plugins.org.springframework.boot)
  4. alias(libs.plugins.io.spring.dependency.management)
  5. }
  6. group = 'com.example'
  7. version = '0.0.1-SNAPSHOT'
  8. java {
  9. sourceCompatibility = '17'
  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-webflux'
  19. testImplementation 'org.springframework.boot:spring-boot-starter-test'
  20. testImplementation 'org.springframework.boot:spring-boot-webflux-test'
  21. testImplementation 'org.springframework.boot:spring-boot-webtestclient'
  22. testImplementation 'io.projectreactor:reactor-test'
  23. testImplementation 'org.springframework.boot:spring-boot-security-test'
  24. testImplementation 'org.springframework.security:spring-security-test'
  25. }
  26. tasks.named('test') {
  27. useJUnitPlatform()
  28. }