1
0
mirror of https://github.com/square/okhttp.git synced 2026-10-24 07:59:29 +03:00
Files
okhttp/settings.gradle.kts
2026-08-29 16:10:54 +01:00

93 lines
2.3 KiB
Kotlin

@file:Suppress("UnstableApiUsage")
pluginManagement {
includeBuild("build-logic")
repositories {
mavenCentral()
gradlePluginPortal()
google()
}
}
rootProject.name = "okhttp-parent"
dependencyResolutionManagement {
repositories {
mavenCentral()
google()
}
}
plugins {
id("org.gradle.toolchains.foojay-resolver-convention") version("1.0.0")
}
include(":mockwebserver")
project(":mockwebserver").name = "mockwebserver3"
include(":mockwebserver-deprecated")
project(":mockwebserver-deprecated").name = "mockwebserver"
include(":mockwebserver-junit4")
project(":mockwebserver-junit4").name = "mockwebserver3-junit4"
include(":mockwebserver-junit5")
project(":mockwebserver-junit5").name = "mockwebserver3-junit5"
val androidBuild: String by settings
val graalBuild: String by settings
val loomBuild: String by settings
if (androidBuild.toBoolean()) {
include(":regression-test")
}
if (graalBuild.toBoolean()) {
include(":native-image-tests")
}
include(":okcurl")
include(":okhttp")
include(":okhttp-bom")
include(":okhttp-brotli")
include(":okhttp-coroutines")
include(":okhttp-dnsoverhttps")
include(":okhttp-hpacktests")
include(":okhttp-idna-mapping-table")
include(":okhttp-java-net-cookiejar")
include(":okhttp-logging-interceptor")
include(":okhttp-osgi-tests")
include(":okhttp-sse")
include(":okhttp-testing-support")
include(":okhttp-tls")
include(":okhttp-urlconnection")
include(":okhttp-zstd")
include(":samples:compare")
include(":samples:crawler")
include(":samples:guide")
include(":samples:simple-client")
include(":samples:slack")
include(":samples:static-server")
include(":samples:tlssurvey")
include(":samples:unixdomainsockets")
val okhttpModuleTests: String by settings
if (okhttpModuleTests.toBoolean()) {
include(":module-tests")
}
project(":okhttp-logging-interceptor").name = "logging-interceptor"
val androidHome = System.getenv("ANDROID_HOME")
val localProperties = java.util.Properties().apply {
val file = rootProject.projectDir.resolve("local.properties")
if (file.exists()) {
load(file.inputStream())
}
}
val sdkDir = localProperties.getProperty("sdk.dir")
if (androidHome != null || sdkDir != null) {
include(":android-test")
include(":android-test-app")
include(":samples:android")
}
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
enableFeaturePreview("STABLE_CONFIGURATION_CACHE")