/*
 * Copyright 2010-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
 * that can be found in the LICENSE file.
 */
pluginManagement {
    includeBuild("../../repo/gradle-settings-conventions")

    repositories {
        maven { url "https://redirector.kotlinlang.org/maven/kotlin-dependencies" }
        mavenCentral { url "https://cache-redirector.jetbrains.com/maven-central" }
        gradlePluginPortal()
    }
}

plugins {
    id("kotlin-bootstrap")
    id("develocity")
    id("jvm-toolchain-provisioning")
    id("kotlin-daemon-config")
    id("cache-redirector")
}

includeBuild '../build-tools'
includeBuild '../tools/benchmarksAnalyzer'

include ':ring'
include ':cinterop'
include ':helloworld'
include ':numerical'
include ':videoplayer'
include ':framework'
include ':startup'
include ':logging'
if (System.getProperty("os.name") == "Mac OS X") {
    include ':objcinterop'
    include ':swiftinterop'
    if (hasProperty("runExcludedBenchmarks")) {
        include ':KotlinVsSwift'
        include ':KotlinVsSwift:ring'
    }
}

if (hasProperty("kotlin_dist")) {
    include(":endorsedLibraries:kotlinx.cli")
    project(":endorsedLibraries:kotlinx.cli").projectDir = file("../endorsedLibraries/kotlinx.cli")
}
