blob: dc25b1124c29ec9fb856314b3993df7730cdcf53 [file] [log] [blame]
load("//tools/base/bazel:bazel.bzl", "iml_module")
load("//tools/base/bazel:maven.bzl", "maven_repository")
load(
":agp_versions.bzl",
"AGP_3_1_4",
"AGP_3_3_2",
"AGP_3_5",
"AGP_4_0",
"AGP_4_1",
"AGP_4_2",
"AGP_7_0",
"AGP_7_1",
"AGP_7_2",
"AGP_7_3",
"AGP_7_4",
"AGP_8_0",
"AGP_8_1",
"AGP_8_10_1",
"AGP_8_11",
"AGP_8_12",
"AGP_8_13",
"AGP_8_2",
"AGP_8_3",
"AGP_8_4",
"AGP_8_5",
"AGP_8_6",
"AGP_8_7",
"AGP_8_8",
"AGP_8_9",
"GRADLE_5_3_1",
"GRADLE_5_5",
"GRADLE_6_1_1",
"GRADLE_6_7_1",
"GRADLE_7_0_2",
"GRADLE_7_2",
"GRADLE_7_3_3",
"GRADLE_7_4",
"GRADLE_7_5",
"GRADLE_8_0",
"GRADLE_8_10_2",
"GRADLE_8_11_1",
"GRADLE_8_13",
"GRADLE_8_2",
"GRADLE_8_4",
"GRADLE_8_6",
"GRADLE_8_7",
"GRADLE_8_9",
"local_generate_old_agp_tests_from_list",
)
# managed by go/iml_to_build
iml_module(
name = "intellij.android.old-agp-tests",
iml_files = ["intellij.android.old-agp-tests.iml"],
# keep sorted
test_data = [
":test_deps",
"//prebuilts/studio/jdk/jdk11:jdk_runtime_files",
"//prebuilts/studio/jdk/jdk8:jdk_runtime_files",
"//prebuilts/studio/layoutlib:runtime",
"//prebuilts/studio/layoutlib/data:framework_res.jar",
"//prebuilts/studio/sdk:build-tools/28.0.3",
"//prebuilts/studio/sdk:build-tools/29.0.2",
"//prebuilts/studio/sdk:build-tools/30.0.2",
"//prebuilts/studio/sdk:build-tools/latest",
"//prebuilts/studio/sdk:cmake",
"//prebuilts/studio/sdk:docs",
"//prebuilts/studio/sdk:licenses",
"//prebuilts/studio/sdk:ndk",
"//prebuilts/studio/sdk:platform-tools",
"//prebuilts/studio/sdk:platforms/android-28",
"//prebuilts/studio/sdk:platforms/android-34",
"//prebuilts/studio/sdk:platforms/latest-preview",
"//prebuilts/studio/sdk:sources",
"//prebuilts/tools/common/m2:org.jetbrains.kotlin.kotlin-gradle-plugin.1.5.21",
"//tools/adt/idea/android/annotations",
"//tools/adt/idea/android/lib:sampleData",
"//tools/adt/idea/android/testData",
"//tools/adt/idea/artwork:device-art-resources",
"//tools/base/build-system:gradle-distrib",
"//tools/base/build-system:gradle-distrib-5.3.1",
"//tools/base/build-system:gradle-distrib-5.5",
"//tools/base/build-system:gradle-distrib-6.7.1",
"//tools/base/build-system:gradle-distrib-7.0.2",
"//tools/base/build-system:gradle-distrib-7.2",
"//tools/base/build-system:gradle-distrib-7.3.3",
"//tools/base/build-system:gradle-distrib-7.5",
"//tools/base/build-system:gradle-distrib-8.0",
"//tools/base/build-system/integration-test:kotlin_gradle_plugin_prebuilts",
"//tools/base/build-system/previous-versions:3.3.2",
"//tools/base/build-system/previous-versions:3.5.0",
"//tools/base/build-system/previous-versions:4.0.0",
"//tools/base/build-system/previous-versions:4.1.0",
"//tools/base/build-system/previous-versions:4.2.0",
"//tools/base/build-system/previous-versions:7.0.0",
"//tools/base/build-system/previous-versions:7.1.0",
"//tools/base/build-system/previous-versions:7.2.0",
"//tools/base/build-system/previous-versions:7.3.0",
"//tools/base/build-system/previous-versions:7.4.1",
"//tools/base/build-system/previous-versions:8.1.0",
"//tools/base/build-system/previous-versions:8.2.0",
"//tools/base/third_party/kotlin:kotlin-m2repository",
"//tools/external/gradle:gradle-distrib-2.6",
"//tools/external/gradle:gradle-distrib-3.5",
"//tools/external/gradle:gradle-distrib-4.5",
],
# do not sort: must match IML order
test_deps = [
"//tools/adt/idea/.idea/libraries:junit4",
"//tools/adt/idea/adt-testutils:intellij.android.adt.testutils",
"//tools/base/testutils:studio.android.sdktools.testutils",
"//tools/adt/idea/android-test-framework:intellij.android.testFramework",
"//tools/adt/idea/android:intellij.android.core",
"//tools/adt/idea/.idea/libraries:truth",
"//tools/adt/idea/.idea/libraries:mockito",
"//tools/adt/idea/android-common:intellij.android.common",
"//tools/base/sdk-common:studio.android.sdktools.sdk-common",
"//tools/adt/idea/deploy:intellij.android.deploy",
"//tools/adt/idea/project-system-gradle-psd:intellij.android.projectSystem.gradle.psd",
"//tools/adt/idea/project-system-gradle-psd:intellij.android.projectSystem.gradle.psd.tests",
"//tools/adt/idea/project-system:intellij.android.projectSystem",
"//tools/adt/idea/project-system-gradle:intellij.android.projectSystem.gradle",
"//tools/adt/idea/project-system-gradle-models:intellij.android.projectSystem.gradle.models",
"//tools/adt/idea/project-system-gradle-repository-search:intellij.android.projectSystem.gradle.repositorySearch",
"//tools/adt/idea/project-system-gradle:intellij.android.projectSystem.gradle.tests",
"//tools/adt/idea/execution/common:intellij.android.execution.common",
"//tools/base/common:studio.android.sdktools.common",
"//tools/adt/idea/backup:intellij.android.backup.api",
"//tools/adt/idea/project-system-gradle-sync:intellij.android.projectSystem.gradle.sync",
],
test_srcs = ["testSrc"],
# Tests are run using explicit, local_old_agp_test targets
test_tags = ["manual"],
visibility = ["//visibility:public"],
# do not sort: must match IML order
deps = [
"@intellij//:intellij-sdk",
"@intellij//:com.intellij.java",
"@intellij//:com.intellij.gradle",
"@intellij//:org.jetbrains.kotlin",
],
)
maven_repository(
name = "test_deps",
# keep sorted: for buildifier
artifacts = [
"@maven//:androidx.annotation.annotation_1.2.0-rc01",
"@maven//:androidx.appcompat.appcompat_1.0.2",
"@maven//:androidx.appcompat.appcompat_1.3.0",
"@maven//:androidx.constraintlayout.constraintlayout_1.1.3",
"@maven//:androidx.constraintlayout.constraintlayout_2.1.4",
"@maven//:androidx.core.core-ktx_1.0.1",
"@maven//:androidx.core.core-ktx_1.2.0",
"@maven//:androidx.core.core-ktx_1.6.0",
"@maven//:androidx.core.core_1.5.0-beta01",
"@maven//:androidx.core.core_1.5.0-rc02",
"@maven//:androidx.lifecycle.lifecycle-common_2.3.0-rc01",
"@maven//:androidx.lifecycle.lifecycle-livedata-ktx_2.3.1",
"@maven//:androidx.lifecycle.lifecycle-viewmodel-ktx_2.3.1",
"@maven//:androidx.navigation.navigation-fragment-ktx_2.3.5",
"@maven//:androidx.navigation.navigation-ui-ktx_2.3.5",
"@maven//:androidx.savedstate.savedstate_1.1.0-rc01",
"@maven//:androidx.test.espresso.espresso-core_3.1.0",
"@maven//:androidx.test.espresso.espresso-core_3.2.0",
"@maven//:androidx.test.ext.junit_1.1.2",
"@maven//:androidx.test.ext.junit_1.1.3-alpha02",
"@maven//:androidx.wear.watchface.watchface-guava_1.1.0",
"@maven//:com.android.support.constraint.constraint-layout_1.0.2",
"@maven//:com.android.support.constraint.constraint-layout_1.1.0",
"@maven//:com.android.support.design_28.0.0",
"@maven//:com.android.support.support-v13_28.0.0",
"@maven//:com.android.support.test.espresso.espresso-core_3.0.2",
"@maven//:com.google.android.material.material_1.4.0",
"@maven//:com.google.auto.value.auto-value-annotations_1.6.2",
"@maven//:com.google.auto.value.auto-value_1.6.2",
"@maven//:com.google.code.findbugs.jsr305_1.3.9",
"@maven//:com.google.code.gson.gson_2.2.4",
"@maven//:com.google.code.gson.gson_2.8.0",
"@maven//:com.google.dagger.dagger_2.6",
"@maven//:com.google.guava.guava_19.0",
"@maven//:com.google.guava.guava_23.0",
"@maven//:com.google.guava.guava_28.1-jre",
"@maven//:com.google.protobuf.protobuf-bom_3.17.2",
"@maven//:com.google.protobuf.protobuf-bom_3.19.3",
"@maven//:com.google.protobuf.protobuf-java-util_3.17.2",
"@maven//:com.google.protobuf.protobuf-java-util_3.19.3",
"@maven//:com.google.protobuf.protobuf-java_3.17.2",
"@maven//:com.google.protobuf.protobuf-java_3.19.3",
"@maven//:com.google.truth.truth_0.44",
"@maven//:com.linkedin.testbutler.test-butler-app_1.3.1",
"@maven//:commons-io.commons-io_2.4",
"@maven//:commons-lang.commons-lang_2.4",
"@maven//:it.unimi.dsi.fastutil_7.2.0",
"@maven//:junit.junit_4.13.2",
"@maven//:net.sf.proguard.proguard-gradle_6.0.3",
"@maven//:org.codehaus.mojo.animal-sniffer-annotations_1.14",
"@maven//:org.jacoco.org.jacoco.agent_0.8.13",
"@maven//:org.jacoco.org.jacoco.ant_0.8.11",
"@maven//:org.jacoco.org.jacoco.ant_0.8.12",
"@maven//:org.jacoco.org.jacoco.ant_0.8.7",
"@maven//:org.jacoco.org.jacoco.ant_0.8.8",
"@maven//:org.jetbrains.kotlin.kotlin-android-extensions-runtime_1.4.32",
"@maven//:org.jetbrains.kotlin.kotlin-android-extensions-runtime_1.5.21",
"@maven//:org.jetbrains.kotlin.kotlin-android-extensions-runtime_1.7.20",
"@maven//:org.jetbrains.kotlin.kotlin-android-extensions-runtime_1.9.23",
"@maven//:org.jetbrains.kotlin.kotlin-build-common_2.1.0",
"@maven//:org.jetbrains.kotlin.kotlin-gradle-plugin-api_1.7.20",
"@maven//:org.jetbrains.kotlin.kotlin-gradle-plugin-api_1.9.23",
"@maven//:org.jetbrains.kotlin.kotlin-gradle-plugin_1.4.32",
"@maven//:org.jetbrains.kotlin.kotlin-gradle-plugin_1.5.21",
"@maven//:org.jetbrains.kotlin.kotlin-gradle-plugin_1.7.20",
"@maven//:org.jetbrains.kotlin.kotlin-gradle-plugin_1.9.23",
"@maven//:org.jetbrains.kotlin.kotlin-reflect_1.4.31",
"@maven//:org.jetbrains.kotlin.kotlin-reflect_1.5.21",
"@maven//:org.jetbrains.kotlin.kotlin-reflect_1.6.10",
"@maven//:org.jetbrains.kotlin.kotlin-reflect_1.9.22",
"@maven//:org.jetbrains.kotlin.kotlin-script-runtime_1.5.21",
"@maven//:org.jetbrains.kotlin.kotlin-script-runtime_1.9.23",
"@maven//:org.jetbrains.kotlin.kotlin-stdlib-common_1.9.23",
"@maven//:org.jetbrains.kotlin.kotlin-stdlib-jdk7_1.4.32",
"@maven//:org.jetbrains.kotlin.kotlin-stdlib-jdk7_1.7.20",
"@maven//:org.jetbrains.kotlin.kotlin-stdlib-jdk7_1.9.23",
"@maven//:org.jetbrains.kotlin.kotlin-stdlib-jdk8_1.4.31",
"@maven//:org.jetbrains.kotlin.kotlin-stdlib-jdk8_1.5.0",
"@maven//:org.jetbrains.kotlin.kotlin-stdlib-jdk8_1.5.21",
"@maven//:org.jetbrains.kotlin.kotlin-stdlib-jdk8_1.7.20",
"@maven//:org.jetbrains.kotlinx.kotlinx-coroutines-android_1.5.2",
"@maven//:org.jetbrains.kotlinx.kotlinx-coroutines-core-jvm_1.4.1",
"@maven//:org.jetbrains.kotlinx.kotlinx-coroutines-core-jvm_1.5.2",
"@maven//:org.jetbrains.kotlinx.kotlinx-coroutines-core_1.5.2",
"@maven//:org.jetbrains.kotlinx.kotlinx-coroutines-core_1.6.1",
"@maven//:org.jetbrains.kotlinx.kotlinx-coroutines-core_1.6.4",
"@maven//:org.jetbrains.markdown_0.2.1",
"@maven//:org.junit.junit-bom_5.9.2",
"@maven//:org.junit.junit-bom_5.9.3",
"@maven//:org.ow2.asm.asm-bom_9.6",
"@maven//:org.ow2.asm.asm-bom_9.7",
"@maven//:xmlpull.xmlpull_1.1.3.1",
],
)
COMMON_OLD_AGP_TEST_TARGETS_TAGS = [
"block-network",
"noci:studio-win",
]
local_generate_old_agp_tests_from_list(
name = "OldAgpTests",
tests_list = [
{
"additional_jdks": ["11"],
"agp_version": AGP_3_1_4,
"gradle_version": GRADLE_5_3_1,
"tags": COMMON_OLD_AGP_TEST_TARGETS_TAGS,
},
{
"additional_jdks": ["11"],
"agp_version": AGP_3_3_2,
"gradle_version": GRADLE_5_3_1,
"shard_count": 1,
"tags": COMMON_OLD_AGP_TEST_TARGETS_TAGS,
},
{
"additional_jdks": ["11"],
"agp_version": AGP_3_3_2,
"gradle_version": GRADLE_5_5,
"shard_count": 1,
"tags": COMMON_OLD_AGP_TEST_TARGETS_TAGS,
},
{
"additional_jdks": [
"1.8",
"11",
],
"agp_version": AGP_3_5,
"gradle_version": GRADLE_5_5,
"shard_count": 1,
"tags": COMMON_OLD_AGP_TEST_TARGETS_TAGS,
},
{
"additional_jdks": ["11"],
"agp_version": AGP_4_0,
"gradle_version": GRADLE_6_1_1,
"shard_count": 3,
"tags": COMMON_OLD_AGP_TEST_TARGETS_TAGS,
},
{
"additional_jdks": ["11"],
"agp_version": AGP_4_1,
"gradle_version": GRADLE_6_7_1,
"shard_count": 3,
"tags": COMMON_OLD_AGP_TEST_TARGETS_TAGS,
},
{
"additional_jdks": ["11"],
"agp_version": AGP_4_2,
"gradle_version": GRADLE_6_7_1,
"shard_count": 4,
"tags": COMMON_OLD_AGP_TEST_TARGETS_TAGS,
},
{
"additional_jdks": ["11"],
"agp_version": AGP_7_0,
"gradle_version": GRADLE_7_0_2,
"shard_count": 3,
"tags": COMMON_OLD_AGP_TEST_TARGETS_TAGS,
},
{
"additional_jdks": ["17"],
"agp_version": AGP_7_1,
"gradle_version": GRADLE_7_2,
"shard_count": 3,
"tags": COMMON_OLD_AGP_TEST_TARGETS_TAGS,
},
{
"additional_jdks": ["17"],
"agp_version": AGP_7_2,
"gradle_version": GRADLE_7_3_3,
"shard_count": 5,
"tags": COMMON_OLD_AGP_TEST_TARGETS_TAGS,
},
{
"additional_jdks": ["17"],
"agp_version": AGP_7_3,
"gradle_version": GRADLE_7_4,
"shard_count": 5,
"tags": COMMON_OLD_AGP_TEST_TARGETS_TAGS,
},
{
"additional_jdks": ["17"],
"agp_version": AGP_7_4,
"gradle_version": GRADLE_7_5,
"shard_count": 5,
"tags": COMMON_OLD_AGP_TEST_TARGETS_TAGS,
},
{
"additional_jdks": ["17"],
"agp_version": AGP_8_0,
"gradle_version": GRADLE_8_0,
"shard_count": 5,
"tags": COMMON_OLD_AGP_TEST_TARGETS_TAGS,
},
{
"additional_jdks": ["17"],
"agp_version": AGP_8_1,
"gradle_version": GRADLE_8_0,
"shard_count": 5,
"tags": COMMON_OLD_AGP_TEST_TARGETS_TAGS,
},
{
"additional_jdks": ["17"],
"agp_version": AGP_8_2,
"gradle_version": GRADLE_8_2,
"shard_count": 5,
"tags": COMMON_OLD_AGP_TEST_TARGETS_TAGS,
},
{
"additional_jdks": ["17"],
"agp_version": AGP_8_3,
"gradle_version": GRADLE_8_4,
"shard_count": 5,
"tags": COMMON_OLD_AGP_TEST_TARGETS_TAGS,
},
{
"additional_jdks": ["17"],
"agp_version": AGP_8_4,
"gradle_version": GRADLE_8_6,
"shard_count": 5,
"tags": COMMON_OLD_AGP_TEST_TARGETS_TAGS,
},
{
"additional_jdks": ["17"],
"agp_version": AGP_8_5,
"gradle_version": GRADLE_8_7,
"shard_count": 5,
"tags": COMMON_OLD_AGP_TEST_TARGETS_TAGS,
},
{
"additional_jdks": ["17"],
"agp_version": AGP_8_6,
"gradle_version": GRADLE_8_7,
"shard_count": 5,
"tags": COMMON_OLD_AGP_TEST_TARGETS_TAGS,
},
{
"additional_jdks": ["17"],
"agp_version": AGP_8_7,
"gradle_version": GRADLE_8_9,
"shard_count": 5,
"tags": COMMON_OLD_AGP_TEST_TARGETS_TAGS,
},
{
"additional_jdks": ["17"],
"agp_version": AGP_8_8,
"gradle_version": GRADLE_8_10_2,
"shard_count": 5,
"tags": COMMON_OLD_AGP_TEST_TARGETS_TAGS,
},
{
"additional_jdks": ["17"],
"agp_version": AGP_8_9,
"gradle_version": GRADLE_8_11_1,
"shard_count": 5,
"tags": COMMON_OLD_AGP_TEST_TARGETS_TAGS,
},
{
"additional_jdks": ["17"],
"agp_version": AGP_8_10_1,
"gradle_version": GRADLE_8_11_1,
"shard_count": 5,
"tags": COMMON_OLD_AGP_TEST_TARGETS_TAGS,
},
{
"additional_jdks": ["17"],
"agp_version": AGP_8_11,
"gradle_version": GRADLE_8_13,
"shard_count": 5,
"tags": COMMON_OLD_AGP_TEST_TARGETS_TAGS,
},
{
"additional_jdks": ["17"],
"agp_version": AGP_8_12,
"gradle_version": GRADLE_8_13,
"shard_count": 5,
"tags": COMMON_OLD_AGP_TEST_TARGETS_TAGS,
},
{
"additional_jdks": ["17"],
"agp_version": AGP_8_13,
"gradle_version": GRADLE_8_13,
"shard_count": 5,
"tags": COMMON_OLD_AGP_TEST_TARGETS_TAGS,
},
],
)