build.gradle.kts 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
  2. plugins {
  3. id("org.springframework.boot") version "3.0.0-SNAPSHOT"
  4. id("io.spring.dependency-management") version "1.0.11.RELEASE"
  5. kotlin("jvm") version "1.6.0"
  6. kotlin("plugin.spring") version "1.6.0"
  7. }
  8. repositories {
  9. mavenCentral()
  10. maven {
  11. url = uri("https://repo.spring.io/snapshot")
  12. }
  13. maven {
  14. url = uri("https://repo.spring.io/milestone")
  15. }
  16. }
  17. ext["micrometer.version"] = "1.10.0-SNAPSHOT"
  18. dependencies {
  19. implementation("org.springframework.boot:spring-boot-starter-security")
  20. implementation("org.springframework.boot:spring-boot-starter-thymeleaf")
  21. implementation("org.springframework.boot:spring-boot-starter-webflux")
  22. implementation("org.thymeleaf.extras:thymeleaf-extras-springsecurity6")
  23. implementation("io.projectreactor.kotlin:reactor-kotlin-extensions")
  24. implementation("org.jetbrains.kotlin:kotlin-reflect")
  25. implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
  26. implementation("org.jetbrains.kotlinx:kotlinx-coroutines-reactor")
  27. testImplementation("org.springframework.security:spring-security-test")
  28. testImplementation("org.springframework.boot:spring-boot-starter-test") {
  29. exclude(group = "org.junit.vintage", module = "junit-vintage-engine")
  30. }
  31. testImplementation("io.projectreactor:reactor-test")
  32. }
  33. tasks.withType<KotlinCompile> {
  34. kotlinOptions {
  35. freeCompilerArgs = listOf("-Xjsr305=strict")
  36. jvmTarget = "17"
  37. }
  38. }
  39. tasks.withType<Test> {
  40. useJUnitPlatform()
  41. }