buildscript {
    ext.kotlin_version = "1.3.72"
    ext.http4k_version = "3.260.0"

    repositories {
        mavenCentral()
        jcenter()
    }

    dependencies {
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
        classpath 'com.github.jengelman.gradle.plugins:shadow:2.0.4'
    }
}

allprojects {

    repositories {
        mavenCentral()
        jcenter()
    }

    apply plugin: "kotlin"

    compileKotlin.kotlinOptions.jvmTarget = "1.8"

    sourceCompatibility = JavaVersion.VERSION_1_8
    targetCompatibility = JavaVersion.VERSION_1_8

    version = project.hasProperty('releaseVersion') ? project.releaseVersion : 'LOCAL'
    group = 'org.http4k'

    compileTestKotlin {
        kotlinOptions {
            languageVersion = "1.3"
        }
    }
}

dependencies {
    compile project(":core")
    compile project(":apache")
    compile project(":jetty")
    compile project(":ktorcio")
    compile project(":ktornetty")
    compile project(":netty")
    compile project(":ratpack")
    compile project(":undertow")
}
