buildscript {
  ext.kotlin_version = "1.3.41"
  ext.arrow_version = "0.10.5-SNAPSHOT"
  repositories {
    mavenCentral()
    jcenter()
    maven { url = uri("http://dl.bintray.com/kotlin/kotlin-dev") }
    maven { url = uri("https://dl.bintray.com/jetbrains/markdown/") }
    maven { url = uri("https://dl.bintray.com/arrow-kt/arrow-kt/") }
    maven { url = uri("https://oss.jfrog.org/artifactory/oss-snapshot-local/") }
  }
  dependencies {
    classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version")
    classpath("io.arrow-kt:arrow-ank-gradle:$arrow_version")
  }
}

plugins {
  id("org.jetbrains.kotlin.jvm").version("1.3.41")
  id("org.jetbrains.kotlin.kapt").version("1.3.41")
}
// 3d party
apply plugin: "ank-gradle-plugin"

ank {
  source = file("${projectDir}/src/main/ank")
  target = file("${projectDir}/build/site")
  classpath = sourceSets.main.runtimeClasspath
}

repositories {
  maven { url = uri("https://jitpack.io") }
  mavenCentral()
  jcenter()
  maven { url = uri("https://oss.jfrog.org/artifactory/oss-snapshot-local/") }
  maven { url = uri("https://dl.bintray.com/jetbrains/markdown/") }
}

dependencies {
  compile("org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version")
  compile "io.arrow-kt:arrow-fx:$arrow_version"
  compile "io.arrow-kt:arrow-optics:$arrow_version"
  compile "io.arrow-kt:arrow-syntax:$arrow_version"
  kapt "io.arrow-kt:arrow-meta:$arrow_version"
  compile "io.arrow-kt:arrow-generic:$arrow_version"
  compile "io.arrow-kt:arrow-mtl:$arrow_version"
  compile "io.arrow-kt:arrow-optics-mtl:$arrow_version"
  compile "io.arrow-kt:arrow-recursion:$arrow_version"
  compile "io.arrow-kt:arrow-free:$arrow_version"
  compile "io.arrow-kt:arrow-aql:$arrow_version"

  testCompile("junit:junit:4.11")
  testCompile("org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version")
}