plugins {
    id("gradlebuild.distribution.api-java")
}

description = "Process execution abstractions."

dependencies {
    api(projects.concurrent)
    api(projects.baseServices)
    api(projects.coreApi)
    api(projects.modelCore)
    api(projects.processServicesApi)
    api(projects.processServicesBase)
    api(projects.fileCollections)
    api(projects.fileTemp)
    api(projects.serviceProvider)

    api(libs.inject)
    api(libs.jspecify)

    implementation(projects.instrumentationAgentServices)
    implementation(projects.logging)
    implementation(projects.persistentCache)
    implementation(projects.loggingApi)
    implementation(projects.messaging)
    implementation(projects.native)

    implementation(libs.commonsLang)
    implementation(libs.guava)
    implementation(libs.slf4jApi)

    testImplementation(projects.io)
    testImplementation(testFixtures(projects.core)) {
        because("Provides TestFiles, TestUtil, UsesNativeServices, and NoOpProblemDiagnosticsFactory used by process unit tests")
    }
    testImplementation(testFixtures(projects.logging))

    testFixturesImplementation(projects.stdlibJavaExtensions)

    integTestImplementation(projects.internalDistributionTesting)

    integTestDistributionRuntimeOnly(projects.distributionsCore)
}

gradleModule {
    computedRuntimes {
        // Auto-generated by `:checkTargetRuntimes --fix`
        client = true
        daemon = true
        worker = true
    }
}

packageCycles {
    excludePatterns.add("org/gradle/process/internal/**")
}
