blob: d4fa32f14baf4526b987ad183272ace223166686 [file] [log] [blame]
load("//tools/adt/idea/adt-testutils:old-agp-test.bzl", "generate_old_agp_tests_from_list")
load("//tools/adt/idea/old-agp-tests:agp_versions.bzl", "AGP_7_4")
load("//tools/base/bazel:bazel.bzl", "iml_module")
load("//tools/base/bazel:jvm_import.bzl", "jvm_import")
load("//tools/base/bazel:maven.bzl", "maven_repository")
load("//tools/base/build-system/integration-test:common-dependencies.bzl", "KGP_VERSION_FOR_TESTS")
# managed by go/iml_to_build
iml_module(
name = "intellij.android.projectSystem.gradle",
# do not sort: must match IML order
srcs = [
"src",
"gen",
],
iml_files = ["intellij.android.projectSystem.gradle.iml"],
lint_baseline = "lint_baseline.xml",
# NOTE: For edits to module_visibility, please see note at end of list
module_visibility = [
# Gradle Project System tools
"//tools/adt/idea/build-attribution:intellij.android.build-attribution",
"//tools/adt/idea/project-system-gradle-psd:intellij.android.projectSystem.gradle.psd",
"//tools/adt/idea/project-system-gradle-upgrade:intellij.android.projectSystem.gradle.upgrade",
"//tools/vendor/google/focus-plugin:declarative-gradle.focus-plugin",
# Project System Token implementation modules
"//tools/adt/idea/apkanalyzer/gradle:intellij.android.apkanalyzer.gradle",
"//tools/adt/idea/native-symbolizer/gradle:native-symbolizer.gradle",
"//tools/adt/idea/nav/safeargs/common/gradle:intellij.android.nav.safeargs.common.gradle",
"//tools/adt/idea/app-inspection/ide/gradle:app-inspection.ide.gradle",
"//tools/adt/idea/layout-inspector:intellij.android.layout-inspector.gradle",
"//tools/adt/idea/nav/editor:intellij.android.nav.editor.gradle",
"//tools/adt/idea/profilers-android/gradle:intellij.android.profilersAndroid.gradle",
"//tools/studio/google/cloud/testing/test-recorder/gradle:test-recorder.gradle",
"//tools/vendor/google/url-assistant/gradle:url-assistant.gradle",
"//tools/adt/idea/databinding/gradle:intellij.android.databinding.gradle",
"//tools/adt/idea/screenshot-testing/gradle:intellij.android.screenshot-test.gradle",
"//tools/vendor/google/ml/aiplugin/android/journeys/gradle:aiplugin.android.journeys.gradle",
"//tools/adt/idea/designer/gradle:intellij.android.designer.gradle",
# Templates and Wizards
"//tools/adt/idea/android-npw:intellij.android.newProjectWizard",
"//tools/adt/idea/android-templates:intellij.android.templates",
# Kotlin Android Gradle Configurator
"//tools/adt/idea/android-kotlin:intellij.android.kotlin.idea.common",
# AI Plugin access to Gradle Project System functionality
"//tools/vendor/google/ml/aiplugin/android/gradle:aiplugin.android.gradle",
# TODO(b/427148033), MigrateToCatalogProcessor
"//tools/vendor/google/ml/aiplugin/experimental:aiplugin.experimental",
# TODO(xof): investigate
"//tools/adt/idea/android-lint:intellij.android.lint",
"//tools/adt/idea/android-navigator:intellij.android.navigator",
"//tools/adt/idea/mlkit:intellij.android.mlkit",
"//tools/vendor/google/android-ndk:android-ndk",
"//tools/vendor/google/firebase:firebase",
"//tools/adt/idea/gmd-code-completion:intellij.android.gmd-code-completion",
],
# NOTE: If you are tempted to add to the above module_visibility list, please
# first read go/as-project-system-cleanup, and discuss with and get agreement
# from the Gradle Project System team. (An implementation of a "Token" -- see
# document in link -- is likely to be fine; a generalized dependency will need
# more justification.)
resources = ["resources"],
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.plugins.gradle",
"@intellij//:com.intellij.properties",
"//tools/adt/idea/utp",
"//tools/analytics-library/shared:analytics-shared",
"//tools/adt/idea/project-system:intellij.android.projectSystem",
"//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-sync:intellij.android.projectSystem.gradle.sync",
"//tools/adt/idea/gradle-tooling/studio-gradle-tooling-api:intellij.android.gradle-tooling.api",
"//tools/adt/idea/android:intellij.android.core",
"//tools/adt/idea/android-common:intellij.android.common",
"//tools/adt/idea/jps-model:intellij.android.jps.model",
"//tools/adt/idea/adt-ui:intellij.android.adt.ui",
"//tools/adt/idea/render-resources:intellij.android.render-resources",
"//tools/adt/idea/wizard:intellij.android.wizard",
"//tools/adt/idea/wizard-model:intellij.android.wizard.model",
"//tools/base/apkparser/analyzer:studio.android.sdktools.analyzer",
"//tools/base/deploy/deployer:studio.android.sdktools.deployer",
"//tools/base/sdk-common:studio.android.sdktools.sdk-common",
"//tools/adt/idea/.idea/libraries:studio-analytics-proto",
"//tools/base/flags:studio.android.sdktools.flags",
"//tools/adt/idea/gradle-dsl:intellij.android.gradle.dsl",
"//tools/adt/idea/deploy:intellij.android.deploy",
"//tools/adt/idea/artwork:intellij.android.artwork",
"//tools/adt/idea/apkanalyzer:intellij.android.apkanalyzer",
"//tools/adt/idea/lint:intellij.lint",
"//tools/adt/idea/.idea/libraries:studio-proto",
"@intellij//:org.jetbrains.kotlin",
"@intellij//:JUnit",
"//tools/analytics-library/tracker:analytics-tracker",
"//tools/base/tracer:studio.android.sdktools.tracer",
"//tools/base/kotlin-multiplatform-models:studio.android.kotlin-multiplatform-models",
"//tools/adt/idea/.idea/libraries:kotlin-multiplatform-android-models-proto",
"//tools/adt/idea/.idea/libraries:utp-core-proto-jarjar",
"@intellij//:org.intellij.groovy",
"//tools/base/lint:studio.android.sdktools.lint-checks",
"@intellij//:org.toml.lang",
"//tools/adt/idea/gradle-tooling/studio-gradle-tooling-impl:intellij.android.gradle-tooling.impl",
"//tools/adt/idea/execution/common:intellij.android.execution.common",
"//tools/adt/idea/ml-api:intellij.android.ml-api",
"//tools/adt/idea/analytics",
"//tools/adt/idea/server-flags:intellij.android.server-flags",
"//tools/adt/idea/project-system-gradle:libandroid-core-proto",
"//tools/base/sdk-common/gradle:studio.android.sdktools.sdk-common.gradle",
"//tools/adt/idea/.idea/libraries:agp-version",
"//tools/adt/idea/android-lang:intellij.android.lang",
"//tools/adt/idea/gmaven:intellij.android.gmaven",
"//tools/adt/idea/gradle-declarative-lang:intellij.android.gradle.declarative.lang",
"//tools/adt/idea/gradle-declarative-lang-ide:intellij.android.gradle.declarative.lang.ide",
"//tools/adt/idea/gradle-declarative-lang-sync:intellij.android.gradle.declarative.lang.sync",
"//tools/adt/idea/gradle-dsl-flags:intellij.android.gradle.dsl.flags",
"//tools/adt/idea/testartifacts:intellij.android.testartifacts",
"//tools/adt/idea/gradle-declarative-lang-flags:intellij.android.gradle.declarative.lang.flags",
],
)
# managed by go/iml_to_build
iml_module(
name = "intellij.android.projectSystem.gradle.tests",
iml_files = ["intellij.android.projectSystem.gradle.tests.iml"],
split_test_targets = {
"jdk.integration": {
"data": [
"//prebuilts/studio/jdk/jdk11:jdk_runtime_files",
"//prebuilts/studio/jdk/jdk17:jdk_runtime_files",
"//tools/base/build-system:android_gradle_plugin.zip",
"//tools/base/build-system:android_gradle_plugin_runtime_dependencies",
"//tools/base/build-system:gradle-distrib",
"//tools/base/build-system/integration-test:kotlin_gradle_plugin_prebuilts",
],
"tags": [
"cpu:4",
"noci:studio-win",
],
"test_filter": "com.android.tools.idea.gradle.project.sync.jdk.integration",
},
"providers.integration": {
"test_filter": "com.android.tools.idea.gradle.project.sync.ProviderIntegrationTestCase",
"additional_jvm_args": ["-Didea.skip.indices.initialization=false"],
"tags": [
"cpu:4",
"noci:studio-win",
],
"shard_count": 5,
"data": [
"//tools/base/build-system:android_gradle_plugin.zip",
"//tools/base/build-system:android_gradle_plugin_runtime_dependencies",
"//tools/base/build-system:gradle-distrib",
"//tools/base/build-system/integration-test:kotlin_gradle_plugin_prebuilts",
],
},
# This is split out because it (should) require kts indexing, which is otherwise incredibly slow in tests: we try to turn the
# indexing off elsewhere by masking the KotlinScriptWorkspaceFileIndexContributor extension, but it has to stay on here.
"kts.highlighting": {
"test_filter": "com.android.tools.idea.gradle.project.sync.highlighting.GradleKtsResolveSymbolsTest",
"additional_jvm_args": ["-Didea.skip.indices.initialization=false"],
"tags": [
"cpu:4",
"noci:studio-win",
],
"data": [
"//tools/base/build-system:android_gradle_plugin.zip",
"//tools/base/build-system:android_gradle_plugin_runtime_dependencies",
"//tools/base/build-system:gradle-distrib",
"//tools/base/build-system/integration-test:kotlin_gradle_plugin_prebuilts",
],
},
"runs_gradle": {
"test_filter": ".runsGradle\\.",
"tags": [
"cpu:4",
"noci:studio-win",
],
"shard_count": 4,
"data": [
"//tools/base/build-system:android_gradle_plugin.zip",
"//tools/base/build-system:android_gradle_plugin_runtime_dependencies",
"//tools/base/build-system:gradle-distrib",
"//tools/base/build-system/integration-test:kotlin_gradle_plugin_prebuilts",
"//tools/data-binding:data_binding_runtime.zip",
"//prebuilts/studio/jdk/jdk17:jdk_runtime_files",
"//prebuilts/studio/jdk:jdk21",
"//tools/base/build-system:declarative_android_gradle_plugin.zip",
],
},
"runs_indexing_with_gradle": {
"test_filter": ".runsIndexingWithGradle",
"additional_jvm_args": ["-Didea.skip.indices.initialization=false"],
"tags": [
"cpu:4",
"noci:studio-win",
],
"data": [
"//tools/base/build-system:android_gradle_plugin.zip",
"//tools/base/build-system:android_gradle_plugin_runtime_dependencies",
"//tools/base/build-system:gradle-distrib",
"//tools/base/build-system/integration-test:kotlin_gradle_plugin_prebuilts",
"//tools/data-binding:data_binding_runtime.zip",
"//prebuilts/studio/jdk/jdk17:jdk_runtime_files",
"//prebuilts/studio/jdk:jdk21",
"//tools/base/build-system:declarative_android_gradle_plugin.zip",
],
},
"runs_gradle_dependencies": {
"test_filter": ".runsGradleDependencies",
"tags": [
"cpu:4",
"noci:studio-win",
],
"data": [
"//tools/base/build-system:android_gradle_plugin.zip",
"//tools/base/build-system:android_gradle_plugin_runtime_dependencies",
"//tools/base/build-system:gradle-distrib",
"//tools/base/build-system/integration-test:kotlin_gradle_plugin_prebuilts",
"//tools/data-binding:data_binding_runtime.zip",
"//prebuilts/studio/jdk/jdk17:jdk_runtime_files",
"//prebuilts/studio/jdk:jdk21",
"//tools/base/build-system:declarative_android_gradle_plugin.zip",
],
},
"runs_gradle_VersionCatalogAndDeclarative": {
"test_filter": ".runsGradleVersionCatalogAndDeclarative",
"tags": [
"cpu:4",
"noci:studio-win",
],
"data": [
"//tools/base/build-system:android_gradle_plugin.zip",
"//tools/base/build-system:android_gradle_plugin_runtime_dependencies",
"//tools/base/build-system:gradle-distrib",
"//tools/base/build-system/integration-test:kotlin_gradle_plugin_prebuilts",
"//tools/data-binding:data_binding_runtime.zip",
"//prebuilts/studio/jdk/jdk17:jdk_runtime_files",
"//prebuilts/studio/jdk:jdk21",
],
},
"runs_indexing_with_gradle_VersionCatalogAndDeclarative": {
"test_filter": ".runsIndexingWithGradleVersionCatalogAndDeclarative",
"additional_jvm_args": ["-Didea.skip.indices.initialization=false"],
"tags": [
"cpu:4",
"noci:studio-win",
],
"data": [
"//tools/base/build-system:android_gradle_plugin.zip",
"//tools/base/build-system:android_gradle_plugin_runtime_dependencies",
"//tools/base/build-system:gradle-distrib",
"//tools/base/build-system/integration-test:kotlin_gradle_plugin_prebuilts",
"//tools/data-binding:data_binding_runtime.zip",
"//prebuilts/studio/jdk/jdk17:jdk_runtime_files",
"//prebuilts/studio/jdk:jdk21",
],
},
"runs_gradle_build": {
"test_filter": ".runsGradleBuild",
"tags": [
"cpu:4",
"noci:studio-win",
],
"data": [
"//tools/base/build-system:android_gradle_plugin.zip",
"//tools/base/build-system:android_gradle_plugin_runtime_dependencies",
"//tools/base/build-system:gradle-distrib",
"//tools/base/build-system/integration-test:kotlin_gradle_plugin_prebuilts",
"//tools/data-binding:data_binding_runtime.zip",
"//prebuilts/studio/jdk/jdk17:jdk_runtime_files",
"//prebuilts/studio/jdk:jdk21",
],
},
"runs_gradle_errors": {
"test_filter": ".runsGradleErrors",
"shard_count": 2,
"tags": [
"cpu:4",
"noci:studio-win",
],
"data": [
"//tools/base/build-system:android_gradle_plugin.zip",
"//tools/base/build-system:android_gradle_plugin_runtime_dependencies",
"//tools/base/build-system:gradle-distrib",
"//tools/base/build-system/integration-test:kotlin_gradle_plugin_prebuilts",
"//tools/data-binding:data_binding_runtime.zip",
"//prebuilts/studio/jdk/jdk17:jdk_runtime_files",
"//prebuilts/studio/jdk:jdk21",
],
},
"runs_indexing_with_gradle_errors": {
"test_filter": ".runsIndexingWithGradleErrors",
"additional_jvm_args": ["-Didea.skip.indices.initialization=false"],
"tags": [
"cpu:4",
"noci:studio-win",
],
"data": [
"//tools/base/build-system:android_gradle_plugin.zip",
"//tools/base/build-system:android_gradle_plugin_runtime_dependencies",
"//tools/base/build-system:gradle-distrib",
"//tools/base/build-system/integration-test:kotlin_gradle_plugin_prebuilts",
"//tools/data-binding:data_binding_runtime.zip",
"//prebuilts/studio/jdk/jdk17:jdk_runtime_files",
"//prebuilts/studio/jdk:jdk21",
],
},
"runs_gradle_open_project": {
"test_filter": ".runsGradleOpenProjectTest",
"tags": [
"cpu:4",
"noci:studio-win",
],
"data": [
"//tools/base/build-system:android_gradle_plugin.zip",
"//tools/base/build-system:android_gradle_plugin_runtime_dependencies",
"//tools/base/build-system:gradle-distrib",
"//tools/base/build-system/integration-test:kotlin_gradle_plugin_prebuilts",
"//tools/data-binding:data_binding_runtime.zip",
"//prebuilts/studio/jdk/jdk17:jdk_runtime_files",
"//prebuilts/studio/jdk:jdk21",
],
},
"runs_gradle_phased_sync": {
"test_filter": ".runsIndexingWithGradlePhasedSync",
"additional_jvm_args": ["-Didea.skip.indices.initialization=false"],
"tags": [
"cpu:4",
"noci:studio-win",
],
"shard_count": 3,
"data": [
"//tools/base/build-system:android_gradle_plugin.zip",
"//tools/base/build-system:android_gradle_plugin_runtime_dependencies",
"//tools/base/build-system:gradle-distrib",
"//tools/base/build-system/integration-test:kotlin_gradle_plugin_prebuilts",
"//tools/data-binding:data_binding_runtime.zip",
"//prebuilts/studio/jdk/jdk17:jdk_runtime_files",
"//prebuilts/studio/jdk:jdk21",
],
},
"runs_gradle_sync_integration": {
"test_filter": ".runsGradleSyncIntegration",
"tags": [
"cpu:4",
"noci:studio-win",
],
"data": [
"//tools/base/build-system:android_gradle_plugin.zip",
"//tools/base/build-system:android_gradle_plugin_runtime_dependencies",
"//tools/base/build-system:gradle-distrib",
"//tools/base/build-system/integration-test:kotlin_gradle_plugin_prebuilts",
"//tools/data-binding:data_binding_runtime.zip",
"//prebuilts/studio/jdk/jdk17:jdk_runtime_files",
"//prebuilts/studio/jdk:jdk21",
],
},
"runs_indexing_with_gradle_snapshots": {
"test_filter": ".runsIndexingWithGradleSnapshots",
"additional_jvm_args": ["-Didea.skip.indices.initialization=false"],
"tags": [
"cpu:4",
"noci:studio-win",
],
"shard_count": 5,
"data": [
"//tools/base/build-system:android_gradle_plugin.zip",
"//tools/base/build-system:android_gradle_plugin_runtime_dependencies",
"//tools/base/build-system:declarative_android_gradle_plugin.zip",
"//tools/base/build-system:gradle-distrib",
"//tools/base/build-system/integration-test:kotlin_gradle_plugin_prebuilts",
"//tools/data-binding:data_binding_runtime.zip",
"//prebuilts/studio/jdk/jdk11:jdk_runtime_files",
"//prebuilts/studio/jdk/jdk17:jdk_runtime_files",
"//prebuilts/studio/jdk:jdk21",
],
},
"runs_gradle_snapshots": {
"test_filter": ".runsGradleSnapshots",
"tags": [
"cpu:4",
"noci:studio-win",
],
"data": [
"//tools/base/build-system:android_gradle_plugin.zip",
"//tools/base/build-system:android_gradle_plugin_runtime_dependencies",
"//tools/base/build-system:declarative_android_gradle_plugin.zip",
"//tools/base/build-system:gradle-distrib",
"//tools/base/build-system/integration-test:kotlin_gradle_plugin_prebuilts",
"//tools/data-binding:data_binding_runtime.zip",
"//prebuilts/studio/jdk/jdk17:jdk_runtime_files",
"//prebuilts/studio/jdk:jdk21",
],
},
"runs_gradle_templates": {
"test_filter": ".runsGradleTemplates",
"tags": [
"cpu:4",
"noci:studio-win",
],
"data": [
"//tools/base/build-system:android_gradle_plugin.zip",
"//tools/base/build-system:android_gradle_plugin_runtime_dependencies",
"//tools/base/build-system:declarative_android_gradle_plugin.zip",
"//tools/base/build-system:gradle-distrib",
"//tools/base/build-system/integration-test:kotlin_gradle_plugin_prebuilts",
"//tools/data-binding:data_binding_runtime.zip",
"//prebuilts/studio/jdk/jdk17:jdk_runtime_files",
"//prebuilts/studio/jdk:jdk21",
],
},
"runs_indexing_with_gradle_variants": {
"test_filter": ".runsIndexingWithGradleVariant",
"additional_jvm_args": ["-Didea.skip.indices.initialization=false"],
"tags": [
"cpu:4",
"noci:studio-win",
],
"data": [
"//tools/base/build-system:android_gradle_plugin.zip",
"//tools/base/build-system:android_gradle_plugin_runtime_dependencies",
"//tools/base/build-system:gradle-distrib",
"//tools/base/build-system/integration-test:kotlin_gradle_plugin_prebuilts",
"//tools/data-binding:data_binding_runtime.zip",
"//prebuilts/studio/jdk/jdk17:jdk_runtime_files",
"//prebuilts/studio/jdk:jdk21",
],
},
"runs_gradle_projectsystem": {
"test_filter": ".runsGradleProjectsystem",
"tags": [
"cpu:4",
"noci:studio-win",
],
"data": [
"//tools/base/build-system:android_gradle_plugin.zip",
"//tools/base/build-system:android_gradle_plugin_runtime_dependencies",
"//tools/base/build-system:gradle-distrib",
"//tools/base/build-system/integration-test:kotlin_gradle_plugin_prebuilts",
"//tools/data-binding:data_binding_runtime.zip",
"//prebuilts/studio/jdk/jdk17:jdk_runtime_files",
"//prebuilts/studio/jdk:jdk21",
],
},
"runs_gradle_autosync": {
"test_filter": ".autosync",
"tags": [
"cpu:4",
"noci:studio-win",
],
"data": [
"//tools/base/build-system:android_gradle_plugin.zip",
"//tools/base/build-system:android_gradle_plugin_runtime_dependencies",
"//tools/base/build-system:gradle-distrib",
"//tools/base/build-system/integration-test:kotlin_gradle_plugin_prebuilts",
"//tools/data-binding:data_binding_runtime.zip",
"//prebuilts/studio/jdk/jdk17:jdk_runtime_files",
"//prebuilts/studio/jdk:jdk21",
],
},
"runs_gradle_signing": {
"test_filter": ".runsGradleSigning",
"tags": [
"cpu:4",
"noci:studio-win",
],
"data": [
"//tools/base/build-system:android_gradle_plugin.zip",
"//tools/base/build-system:android_gradle_plugin_runtime_dependencies",
"//tools/base/build-system:gradle-distrib",
"//tools/base/build-system/integration-test:kotlin_gradle_plugin_prebuilts",
"//tools/data-binding:data_binding_runtime.zip",
"//prebuilts/studio/jdk/jdk17:jdk_runtime_files",
"//prebuilts/studio/jdk:jdk21",
],
},
"runs_gradle_rendering": {
"test_filter": ".runsGradleRendering",
"tags": [
"cpu:4",
"noci:studio-win",
],
"data": [
"//tools/base/build-system:android_gradle_plugin.zip",
"//tools/base/build-system:android_gradle_plugin_runtime_dependencies",
"//tools/base/build-system:gradle-distrib",
"//tools/base/build-system/integration-test:kotlin_gradle_plugin_prebuilts",
"//tools/data-binding:data_binding_runtime.zip",
"//prebuilts/studio/jdk/jdk17:jdk_runtime_files",
"//prebuilts/studio/jdk:jdk21",
],
},
"runs_indexing_with_gradle_rendering": {
"test_filter": ".runsIndexingWithGradleRendering",
"additional_jvm_args": ["-Didea.skip.indices.initialization=false"],
"tags": [
"cpu:4",
"noci:studio-win",
],
"data": [
"//tools/base/build-system:android_gradle_plugin.zip",
"//tools/base/build-system:android_gradle_plugin_runtime_dependencies",
"//tools/base/build-system:gradle-distrib",
"//tools/base/build-system/integration-test:kotlin_gradle_plugin_prebuilts",
"//tools/data-binding:data_binding_runtime.zip",
"//prebuilts/studio/jdk/jdk17:jdk_runtime_files",
"//prebuilts/studio/jdk:jdk21",
],
},
"runs_testsuite_integration": {
"additional_jvm_args": ["-Didea.skip.indices.initialization=false"],
"test_filter": ".testartifacts.testsuite",
"tags": [
"cpu:4",
"noci:studio-win",
],
"data": [
"//tools/base/build-system:android_gradle_plugin.zip",
"//tools/base/build-system:android_gradle_plugin_runtime_dependencies",
"//tools/base/build-system:gradle-distrib",
"//tools/base/build-system/integration-test:kotlin_gradle_plugin_prebuilts",
"//tools/data-binding:data_binding_runtime.zip",
"//prebuilts/studio/jdk/jdk17:jdk_runtime_files",
"//prebuilts/studio/jdk:jdk21",
],
},
"other": {
"additional_jvm_args": ["-Didea.skip.indices.initialization=false"],
"tags": ["ci:studio-win"],
# Note: we do not include AGP/Gradle artifacts in this test target, to enforce the separation between tests which require Gradle
# to run (in split targets above) and this catch-all target.
"data": [],
},
},
test_class = "com.android.tools.idea.projectsystem.GradleProjectSystemTestSuite",
test_data = [
":test_deps",
"//prebuilts/studio/jdk/jdk8:jdk_runtime_files",
"//prebuilts/studio/sdk:build-tools/latest",
"//prebuilts/studio/sdk:cmake",
"//prebuilts/studio/sdk:ndk",
"//prebuilts/studio/sdk:platform-tools",
"//prebuilts/studio/sdk:platforms/android-33",
"//prebuilts/studio/sdk:platforms/android-34",
"//prebuilts/studio/sdk:platforms/latest",
"//tools/adt/idea/android/annotations",
"//tools/adt/idea/android/testData",
"//tools/adt/idea/designer/testData",
"//tools/adt/idea/project-system-gradle/testData",
"//tools/base/build-system:gradle-distrib-latest-snapshot",
"//tools/external/gradle:gradle-distrib-9.0.0",
],
# do not sort: must match IML order
test_deps = [
"//tools/adt/idea/.idea/libraries:junit4",
"//tools/adt/idea/.idea/libraries:kotlin-test",
"//tools/adt/idea/android-common:intellij.android.common",
"//tools/adt/idea/jps-model:intellij.android.jps.model",
"//tools/adt/idea/android:intellij.android.core",
"//tools/adt/idea/project-system:intellij.android.projectSystem",
"//tools/adt/idea/project-system-gradle:intellij.android.projectSystem.gradle",
"//tools/adt/idea/android-test-framework:intellij.android.testFramework",
"//tools/base/flags:studio.android.sdktools.flags",
"//tools/base/testutils:studio.android.sdktools.testutils",
"//tools/adt/idea/.idea/libraries:mockito",
"//tools/adt/idea/.idea/libraries:truth",
"//tools/adt/idea/adt-testutils:intellij.android.adt.testutils",
"//tools/adt/idea/gradle-dsl:intellij.android.gradle.dsl",
"//tools/adt/idea/.idea/libraries:studio-analytics-proto",
"//tools/adt/idea/.idea/libraries:studio-proto",
"//tools/adt/idea/deploy:intellij.android.deploy",
"//tools/adt/idea/android-lint:intellij.android.lint",
"//tools/adt/idea/ml-api:intellij.android.ml-api",
"//tools/adt/idea/android-navigator:intellij.android.navigator.testutils",
"//tools/adt/idea/project-system-gradle-models:intellij.android.projectSystem.gradle.models",
"//tools/adt/idea/project-system-gradle-psd:intellij.android.projectSystem.gradle.psd",
"//tools/adt/idea/project-system-gradle-repository-search:intellij.android.projectSystem.gradle.repositorySearch",
"//tools/adt/idea/project-system-gradle-sync:intellij.android.projectSystem.gradle.sync",
"//tools/adt/idea/project-system-gradle-sync-test-utils:intellij.android.projectSystem.gradle.sync.testUtils",
"//tools/adt/idea/project-system-gradle-upgrade:intellij.android.projectSystem.gradle.upgrade",
"//tools/analytics-library/testing:android.sdktools.analytics-testing",
"//tools/analytics-library/tracker:analytics-tracker",
"//tools/adt/idea/adt-ui:intellij.android.adt.ui",
"@intellij//:org.intellij.groovy",
"//tools/base/build-system:studio.android.sdktools.manifest-merger",
"//tools/base/lint:studio.android.sdktools.lint-checks",
"//tools/analytics-library/shared:analytics-shared",
"//tools/adt/idea/build-attribution:intellij.android.build-attribution",
"//tools/adt/idea/execution/common:intellij.android.execution.common",
"//tools/adt/idea/render-resources:intellij.android.render-resources",
"@intellij//:com.intellij.properties",
"//tools/adt/idea/.idea/libraries:agp-version",
"//tools/adt/idea/gradle-dsl:intellij.android.gradle.dsl.testutils",
"//tools/adt/idea/gradle-dsl-declarative:intellij.android.gradle.dsl.declarative",
"//tools/adt/idea/gradle-dsl-flags:intellij.android.gradle.dsl.flags",
"//tools/adt/idea/gradle-declarative-lang:intellij.android.gradle.declarative.lang",
"//tools/adt/idea/gradle-declarative-lang-ide:intellij.android.gradle.declarative.lang.ide",
"//tools/adt/idea/.idea/libraries:mockito-kotlin",
"//tools/adt/idea/gradle-declarative-lang-sync:intellij.android.gradle.declarative.lang.sync",
"//tools/adt/idea/gradle-declarative-lang-flags:intellij.android.gradle.declarative.lang.flags",
"//tools/adt/idea/testartifacts:intellij.android.testartifacts",
],
test_jvm_flags = ["-Didea.skip.indices.initialization=true"],
test_resources = ["testResources"],
test_srcs = ["testSrc"],
test_tags = ["block-network"],
test_timeout = "long",
visibility = ["//visibility:public"],
# do not sort: must match IML order
runtime_deps = [
"//tools/adt/idea/gradle-dsl-groovy:intellij.android.gradle.dsl.groovy",
"//tools/adt/idea/gradle-dsl-kotlin:intellij.android.gradle.dsl.kotlin",
"//tools/adt/idea/gradle-dsl-toml:intellij.android.gradle.dsl.toml",
"//tools/adt/idea/android-kotlin:intellij.android.kotlin.idea",
"//tools/adt/idea/android-kotlin:intellij.android.kotlin.idea.common",
],
# do not sort: must match IML order
deps = [
"@intellij//:intellij-sdk",
"@intellij//:com.intellij.java",
"@intellij//:com.intellij.gradle",
"@intellij//:org.jetbrains.plugins.gradle",
"@intellij//:org.jetbrains.kotlin",
"@intellij//:com.intellij.java-i18n",
"@intellij//:com.intellij.java.ide",
"@intellij//:org.toml.lang",
],
)
generate_old_agp_tests_from_list(
name = "MultipleGradleRootsSyncUpdatesProjectJdkIntegrationTest",
iml_module = ":intellij.android.projectSystem.gradle.tests",
tests_list = [
dict(
timeout = "long",
agp_version = AGP_7_4,
data = [
"//prebuilts/studio/jdk/jdk11:jdk_runtime_files",
"//prebuilts/studio/jdk/jdk17:jdk_runtime_files",
"//prebuilts/studio/sdk:build-tools/30.0.3",
"//prebuilts/studio/sdk:build-tools/latest",
"//prebuilts/studio/sdk:platforms/android-32",
"//prebuilts/studio/sdk:platforms/android-34",
"//prebuilts/studio/sdk:platforms/latest",
"//tools/adt/idea/android/testData",
"//tools/adt/idea/project-system-gradle/testData",
"//tools/base/build-system:gradle-distrib",
"//tools/base/build-system:gradle-distrib-7.5",
],
gradle_version = "7.5",
ignore_other_tests = True,
jvm_flags = ["-Didea.skip.indices.initialization=true"],
maven_deps = [
"//tools/base/build-system/previous-versions:7.4.1",
"//tools/base/build-system/previous-versions:kgp1.3.72",
":test_deps",
],
tags = [
"block-network",
"noci:studio-win",
],
test_class = "com.android.tools.idea.projectsystem.GradleProjectSystemOldAgpTestSuite",
),
],
)
maven_repository(
name = "test_deps",
# keep sorted: for buildifier
artifacts = [
"@maven//:androidx.annotation.annotation-jvm_1.6.0",
"@maven//:androidx.annotation.annotation_1.2.0-rc01",
"@maven//:androidx.annotation.annotation_1.3.0",
"@maven//:androidx.appcompat.appcompat_1.0.2",
"@maven//:androidx.appcompat.appcompat_1.3.0",
"@maven//:androidx.appcompat.appcompat_1.4.1",
"@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.13.0",
"@maven//:androidx.core.core-ktx_1.2.0",
"@maven//:androidx.core.core-ktx_1.6.0",
"@maven//:androidx.core.core-ktx_1.9.0",
"@maven//:androidx.core.core_1.12.0",
"@maven//:androidx.core.core_1.5.0-beta01",
"@maven//:androidx.core.core_1.5.0-rc02",
"@maven//:androidx.legacy.legacy-support-v4_1.0.0",
"@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.lifecycle.lifecycle-viewmodel-savedstate_2.6.2",
"@maven//:androidx.lifecycle.lifecycle-viewmodel_2.6.2",
"@maven//:androidx.navigation.navigation-fragment-ktx_2.3.5",
"@maven//:androidx.navigation.navigation-fragment_2.3.5",
"@maven//:androidx.navigation.navigation-ui-ktx_2.3.5",
"@maven//:androidx.navigation.navigation-ui_2.3.5",
"@maven//:androidx.privacysandbox.activity.activity-client_1.0.0-alpha02",
"@maven//:androidx.privacysandbox.activity.activity-core_1.0.0-alpha02",
"@maven//:androidx.privacysandbox.activity.activity-provider_1.0.0-alpha02",
"@maven//:androidx.privacysandbox.tools.tools-apicompiler_1.0.0-alpha13",
"@maven//:androidx.privacysandbox.tools.tools-apigenerator_1.0.0-alpha13",
"@maven//:androidx.privacysandbox.tools.tools-apipackager_1.0.0-alpha13",
"@maven//:androidx.privacysandbox.tools.tools_1.0.0-alpha13",
"@maven//:androidx.privacysandbox.ui.ui-client_1.0.0-alpha16",
"@maven//:androidx.privacysandbox.ui.ui-core_1.0.0-alpha16",
"@maven//:androidx.savedstate.savedstate_1.1.0-rc01",
"@maven//:androidx.test.core_1.4.0-alpha06",
"@maven//:androidx.test.espresso.espresso-core_3.1.0",
"@maven//:androidx.test.espresso.espresso-core_3.2.0",
"@maven//:androidx.test.espresso.espresso-core_3.4.0",
"@maven//:androidx.test.ext.junit_1.1.2",
"@maven//:androidx.test.ext.junit_1.1.3",
"@maven//:androidx.test.ext.junit_1.1.3-alpha02",
"@maven//:androidx.test.rules_1.3.0",
"@maven//:androidx.test.rules_1.4.0-alpha06",
"@maven//:androidx.test.runner_1.4.0-alpha06",
"@maven//:androidx.wear.watchface.watchface-guava_1.1.0",
"@maven//:com.adobe.marketing.mobile.core_1.5.1",
"@maven//:com.android.support.appcompat-v7_25.4.0",
"@maven//:com.android.support.appcompat-v7_28.0.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.multidex-instrumentation_1.0.2",
"@maven//:com.android.support.support-v13_28.0.0",
"@maven//:com.android.support.test.espresso.espresso-core_3.0.2",
"@maven//:com.android.tools.desugar_jdk_libs_1.1.5",
"@maven//:com.flurry.android.analytics_13.0.0",
"@maven//:com.google.android.gms.play-services-ads_9.8.0",
"@maven//:com.google.android.gms.play-services-safetynet_10.0.0",
"@maven//:com.google.android.material.material_1.4.0",
"@maven//:com.google.android.play.app-update_2.0.0",
"@maven//:com.google.android.play.core_1.10.3",
"@maven//:com.google.auto.value.auto-value_1.6.2",
"@maven//:com.google.code.gson.gson_2.2.4",
"@maven//:com.google.dagger.dagger-compiler_2.6",
"@maven//:com.google.devtools.ksp.com.google.devtools.ksp.gradle.plugin_1.7.10-1.0.6",
"@maven//:com.google.errorprone.error_prone_annotations_2.3.2",
"@maven//:com.google.firebase.firebase-common_12.0.1",
"@maven//:com.google.guava.guava_19.0",
"@maven//:com.google.guava.guava_23.0",
"@maven//:com.google.jimfs.jimfs_1.1",
"@maven//:com.google.protobuf.protobuf-bom_3.17.2",
"@maven//:com.google.protobuf.protobuf-bom_3.19.3",
"@maven//:com.google.protobuf.protobuf-bom_3.21.8",
"@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//:com.squareup.kotlinpoet_2.1.0",
"@maven//:com.sun.activation.javax.activation_1.2.0",
"@maven//:commons-io.commons-io_2.4",
"@maven//:commons-lang.commons-lang_2.4",
"@maven//:commons-logging.commons-logging_1.1.1",
"@maven//:org.codehaus.mojo.animal-sniffer-annotations_1.17",
"@maven//:org.gradle.toolchains.foojay-resolver-convention.org.gradle.toolchains.foojay-resolver-convention.gradle.plugin_0.8.0",
"@maven//:org.jacoco.org.jacoco.ant_0.8.13",
"@maven//:org.jdeferred.jdeferred-android-aar_1.2.3",
"@maven//:org.jetbrains.kotlin.kotlin-android-extensions-runtime_1.6.21",
"@maven//:org.jetbrains.kotlin.kotlin-gradle-plugin_1.6.21",
"@maven//:org.jetbrains.kotlin.kotlin-gradle-plugin_1.9.22",
"@maven//:org.jetbrains.kotlin.kotlin-klib-commonizer-embeddable_" + KGP_VERSION_FOR_TESTS,
"@maven//:org.jetbrains.kotlin.kotlin-native-prebuilt_" + KGP_VERSION_FOR_TESTS,
"@maven//:org.jetbrains.kotlin.kotlin-reflect_1.4.32",
"@maven//:org.jetbrains.kotlin.kotlin-reflect_1.6.21",
"@maven//:org.jetbrains.kotlin.kotlin-reflect_1.9.0",
"@maven//:org.jetbrains.kotlin.kotlin-script-runtime_1.6.21",
"@maven//:org.jetbrains.kotlin.kotlin-stdlib-jdk7_1.4.32",
"@maven//:org.jetbrains.kotlin.kotlin-stdlib-jdk8_1.5.0",
"@maven//:org.jetbrains.kotlin.kotlin-stdlib-jdk8_1.6.21",
"@maven//:org.jetbrains.kotlin.kotlin-stdlib-jdk8_1.9.22",
"@maven//:org.jetbrains.kotlin.kotlin-stdlib-jdk8_2.2.0",
"@maven//:org.jetbrains.kotlin.kotlin-test-junit_" + KGP_VERSION_FOR_TESTS,
"@maven//:org.jetbrains.kotlinx.kotlinx-coroutines-android_1.5.2",
"@maven//:org.jetbrains.kotlinx.kotlinx-coroutines-android_1.6.4",
"@maven//:org.jetbrains.kotlinx.kotlinx-coroutines-android_1.8.1",
"@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.3",
"@maven//:org.jetbrains.kotlinx.kotlinx-coroutines-core_1.6.4",
"@maven//:org.mockito.mockito-core_5.12.0",
"@maven//:xmlpull.xmlpull_1.1.3.1",
],
)
# managed by go/iml_to_build
jvm_import(
name = "libandroid-core-proto",
jars = ["//tools/adt/idea/android:libandroid-core-proto.jar"],
visibility = ["//visibility:public"],
)