import org.gradle.kotlin.dsl.maven

rootProject.name = "observatio-terrae"
rootProject.buildFileName = "build.gradle.kts"

include(":config-repo")

include(":libs:pcp-types-lib")
include(":libs:ballistics-lib")
include(":libs:angular-motion-lib")

include(":services:tle-monitoring-service")
include(":services:slots-service")
include(":services:pcp-ballistics-service")
include(":services:pcp-satellite-catalog-service")
include(":services:pcp-request-service")
include(":services:pcp-route-processing-service")
include(":services:pcp-complex-mission-service")
include(":services:pcp-tgu-service")
include(":services:pcp-ui-service")
include(":services:pcp-stations-service")
include(":services:pcp-mission-planing-service")
include(":services:pcp-coverage-scheme-service")
include(":services:pcp-dynamic-plan-service")
include(":services:spring-cloud-config-server")
include(":services:pcp-srpring-boot-admin-server")
include(":services:pcp-gateway-service")

pluginManagement {
    repositories {
        // repo.nstart.cloud/maven-proxy сейчас отдаёт HTML вместо артефактов —
        // плагины резолвим напрямую с публичных репозиториев.
        // maven { url = uri("https://repo.nstart.cloud/repository/maven-proxy/") }
        mavenCentral()
        gradlePluginPortal()
    }

    val versions_kotlin           : String by settings
    val versions_spring_boot      : String by settings
    val versions_spring_dependency: String by settings
    val versions_sonarqube        : String by settings
    val versions_buildtools       : String by settings
    // CI: ребилд всех gradle-сервисов (кроме pcp-tgu-ui-service) — 2026-06-09


    plugins {
        kotlin("jvm")                         version versions_kotlin
        kotlin("plugin.spring")               version versions_kotlin
        kotlin("plugin.jpa")                  version versions_kotlin
        kotlin("plugin.lombok")               version versions_kotlin
        id("org.springframework.boot")        version versions_spring_boot
        id("io.spring.dependency-management") version versions_spring_dependency
//        //id("org.sonarqube")                   version versions_sonarqube
//      id("org.graalvm.buildtools.native")   version versions_buildtools
    }
}
