Elasticsearchの練習リポジトリ
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

42 行
1.2KB

  1. import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
  2. plugins {
  3. id("org.springframework.boot") version "2.2.0.BUILD-SNAPSHOT"
  4. id("io.spring.dependency-management") version "1.0.8.RELEASE"
  5. kotlin("jvm") version "1.3.50"
  6. kotlin("plugin.spring") version "1.3.50"
  7. }
  8. group = "com.example.elasticsearch"
  9. version = "0.0.1-SNAPSHOT"
  10. java.sourceCompatibility = JavaVersion.VERSION_1_8
  11. repositories {
  12. mavenCentral()
  13. maven { url = uri("https://repo.spring.io/milestone") }
  14. maven { url = uri("https://repo.spring.io/snapshot") }
  15. }
  16. dependencies {
  17. implementation("org.springframework.boot:spring-boot-starter-data-elasticsearch")
  18. implementation("org.springframework.boot:spring-boot-starter-web")
  19. implementation("com.fasterxml.jackson.module:jackson-module-kotlin")
  20. implementation("org.jetbrains.kotlin:kotlin-reflect")
  21. implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
  22. testImplementation("org.springframework.boot:spring-boot-starter-test") {
  23. exclude(group = "org.junit.vintage", module = "junit-vintage-engine")
  24. }
  25. }
  26. tasks.withType<Test> {
  27. useJUnitPlatform()
  28. }
  29. tasks.withType<KotlinCompile> {
  30. kotlinOptions {
  31. freeCompilerArgs = listOf("-Xjsr305=strict")
  32. jvmTarget = "1.8"
  33. }
  34. }