Elasticsearchの練習リポジトリ
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

43 rindas
1.3KB

  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. // implementation("org.elasticsearch:elasticsearch:5.1.2")
  26. // implementation("org.elasticsearch.client:transport:5.1.2")
  27. }
  28. tasks.withType<Test> {
  29. useJUnitPlatform()
  30. }
  31. tasks.withType<KotlinCompile> {
  32. kotlinOptions {
  33. freeCompilerArgs = listOf("-Xjsr305=strict")
  34. jvmTarget = "1.8"
  35. }
  36. }