rootProject.name = "Ampere"

include(":ampere-core")
include(":ampere-android")
include(":ampere-compose")
include(":ampere-desktop")
include(":ampere-cli")
include(":ampere-phosphor")

pluginManagement {
    repositories {
        google()
        mavenCentral()
        gradlePluginPortal()
        maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
    }

    plugins {
        val kotlinVersion = extra["kotlin.version"] as String
        val agpVersion = extra["agp.version"] as String
        val composeVersion = extra["compose.version"] as String
        val ktorVersion = extra["ktor.version"] as String
        val sqldelight = extra["sqldelight.version"] as String

        kotlin("jvm").version(kotlinVersion)
        kotlin("multiplatform").version(kotlinVersion)
        kotlin("android").version(kotlinVersion)
        kotlin("plugin.serialization").version(kotlinVersion)

        id("com.android.application").version(agpVersion)
        id("com.android.library").version(agpVersion)
        id("org.jetbrains.compose").version(composeVersion)
        kotlin("plugin.compose").version(kotlinVersion)
        id("io.ktor.plugin").version(ktorVersion)
        id("app.cash.sqldelight").version(sqldelight)
        id("com.vanniktech.maven.publish").version("0.30.0")
    }
}

dependencyResolutionManagement {
    repositories {
        mavenLocal()
        mavenCentral()
        google()
        maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
    }
}
