| plugins { |
| id("com.gradle.enterprise") version "3.18.1" |
| id("org.gradle.toolchains.foojay-resolver-convention") version "0.8.0" |
| } |
| |
| // BOM project |
| include("mockito-bom") |
| // extensions |
| include( |
| "mockito-extensions:android", |
| "mockito-extensions:errorprone", |
| "mockito-extensions:junit-jupiter", |
| "mockito-extensions:proxy", |
| "mockito-extensions:subclass", |
| ) |
| // integration tests |
| include( |
| "mockito-integration-tests:inline-mocks-tests", |
| "mockito-integration-tests:extensions-tests", |
| "mockito-integration-tests:groovy-tests", |
| "mockito-integration-tests:groovy-inline-tests", |
| "mockito-integration-tests:kotlin-tests", |
| "mockito-integration-tests:kotlin-release-coroutines-tests", |
| "mockito-integration-tests:junit-jupiter-extension-tests", |
| "mockito-integration-tests:junit-jupiter-inline-mock-maker-extension-tests", |
| "mockito-integration-tests:module-tests", |
| "mockito-integration-tests:memory-tests", |
| "mockito-integration-tests:junit-jupiter-parallel-tests", |
| "mockito-integration-tests:osgi-tests", |
| "mockito-integration-tests:programmatic-tests", |
| "mockito-integration-tests:java-21-tests", |
| ) |
| |
| // https://developer.android.com/studio/command-line/variables#envar |
| // https://developer.android.com/studio/build#properties-files |
| if (System.getenv("ANDROID_HOME") != null || File("local.properties").exists()) { |
| include("mockito-integration-tests:android-tests") |
| } else { |
| logger.info("Not including android test project due to missing SDK configuration") |
| } |
| |
| rootProject.name = "mockito" |
| |
| //Posting Build scans to https://scans.gradle.com |
| gradleEnterprise { |
| buildScan { |
| termsOfServiceUrl = "https://gradle.com/terms-of-service" |
| termsOfServiceAgree = "yes" |
| } |
| } |
| |
| buildCache { |
| local { |
| isEnabled = !System.getenv().containsKey("CI") |
| } |
| } |