blob: 674a98263620c681b0e98e02e9bc79f509be44e5 [file] [log] [blame]
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")
# managed by go/iml_to_build
iml_module(
name = "intellij.android.projectSystem.gradle.psd",
srcs = ["src"],
iml_files = ["intellij.android.projectSystem.gradle.psd.iml"],
lint_baseline = "lint_baseline.xml",
resources = ["resources"],
visibility = ["//visibility:public"],
# do not sort: must match IML order
deps = [
"@intellij//:intellij-sdk",
"@intellij//:com.intellij.java",
"@intellij//:com.intellij.gradle",
"//tools/adt/idea/android:intellij.android.core",
"//tools/adt/idea/.idea/libraries:studio-analytics-proto",
"//tools/adt/idea/.idea/libraries:studio-proto",
"//tools/adt/idea/android-common:intellij.android.common",
"//tools/adt/idea/artwork:intellij.android.artwork",
"//tools/adt/idea/wizard-model:intellij.android.wizard.model",
"//tools/adt/idea/wizard:intellij.android.wizard",
"//tools/base/flags:studio.android.sdktools.flags",
"//tools/adt/idea/gradle-dsl:intellij.android.gradle.dsl",
"//tools/adt/idea/adt-ui:intellij.android.adt.ui",
"//tools/analytics-library/tracker:analytics-tracker",
"//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-sync:intellij.android.projectSystem.gradle.sync",
"//tools/adt/idea/render-resources:intellij.android.render-resources",
"@intellij//:org.jetbrains.kotlin",
"//tools/adt/idea/android-npw:intellij.android.newProjectWizard",
"//tools/adt/idea/project-system-gradle-upgrade:intellij.android.projectSystem.gradle.upgrade",
"//tools/base/lint:studio.android.sdktools.lint-api",
"//tools/base/lint:studio.android.sdktools.lint-checks",
"//tools/adt/idea/analytics",
],
)
# managed by go/iml_to_build
iml_module(
name = "intellij.android.projectSystem.gradle.psd.tests",
iml_files = ["intellij.android.projectSystem.gradle.psd.tests.iml"],
split_test_targets = {
"gradle.structure": {
"shard_count": 6,
"test_filter": "com.android.tools.idea.gradle.structure",
},
"gradle.structure.configurables.variables.VariablesTableTest": {
# Takes too long (b/152650494)
"tags": ["noci:studio-win"],
"test_filter": "com.android.tools.idea.gradle.structure.configurables.variables.VariablesTableTest",
},
"gradle.structure.model.DependencyManagementTest": {
# Path separators in map keys (b/151462469)
"tags": ["noci:studio-win"],
"test_filter": "com.android.tools.idea.gradle.structure.model.DependencyManagementTest",
},
"gradle.structure.configurables.dependencies.treeview": {
# Path separators e.g. (..\lib) (b/152560457)
"tags": ["noci:studio-win"],
"test_filter": "com.android.tools.idea.gradle.structure.configurables.dependencies.treeview",
},
"gradle.structure.model.android": {
"shard_count": 6,
# Timeout waiting to lock Artifact transforms cache (b/152652501)
"tags": ["noci:studio-win"],
"test_filter": "com.android.tools.idea.gradle.structure.model.android",
},
},
test_class = "com.android.tools.idea.gradle.structure.GradleProjectSystemStructureTestSuite",
test_data = [
":test_deps",
"//prebuilts/studio/sdk:build-tools/latest",
"//prebuilts/studio/sdk:cmake",
"//prebuilts/studio/sdk:ndk",
"//prebuilts/studio/sdk:platform-tools",
"//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: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",
],
# do not sort: must match IML order
test_deps = [
"//tools/adt/idea/.idea/libraries:junit4",
"//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-psd:intellij.android.projectSystem.gradle.psd",
"//tools/adt/idea/.idea/libraries:truth",
"//tools/adt/idea/android:intellij.android.core.tests",
"//tools/adt/idea/android-test-framework:intellij.android.testFramework",
"//tools/base/testutils:studio.android.sdktools.testutils",
"//tools/adt/idea/adt-testutils:intellij.android.adt.testutils",
"//tools/adt/idea/gradle-dsl:intellij.android.gradle.dsl",
"//tools/adt/idea/android:intellij.android.core",
"//tools/adt/idea/gradle-dsl:intellij.android.gradle.dsl.testutils",
"//tools/adt/idea/observable:intellij.android.observable",
"//tools/adt/idea/project-system:intellij.android.projectSystem",
"//tools/adt/idea/project-system-gradle-sync:intellij.android.projectSystem.gradle.sync",
"//tools/adt/idea/.idea/libraries:mockito",
"//tools/adt/idea/.idea/libraries:studio-analytics-proto",
"@intellij//:org.jetbrains.kotlin",
"@intellij//:org.intellij.groovy",
"//tools/base/lint:studio.android.sdktools.lint-checks",
"//tools/adt/idea/project-system-gradle-psd:liblint-checks-proto.lib",
"//tools/adt/idea/.idea/libraries:mockito-kotlin",
"//tools/adt/idea/gradle-declarative-lang-ide:intellij.android.gradle.declarative.lang.ide",
"//tools/adt/idea/android-common:intellij.android.common",
"//tools/adt/idea/gradle-declarative-lang-flags:intellij.android.gradle.declarative.lang.flags",
],
test_srcs = ["testSrc"],
test_tags = [
"block-network",
"cpu:3",
],
test_timeout = "long",
visibility = ["//visibility:public"],
# do not sort: must match IML order
deps = [
"@intellij//:intellij-sdk",
"@intellij//:com.intellij.java",
"@intellij//:com.intellij.gradle",
],
)
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.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.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.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.test.rules_1.4.0-alpha06",
"@maven//:androidx.test.runner_1.4.0-alpha06",
"@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.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_1.6.2",
"@maven//:com.google.code.gson.gson_2.2.4",
"@maven//:com.google.dagger.dagger-compiler_2.6",
"@maven//:com.google.errorprone.error_prone_annotations_2.3.2",
"@maven//:com.google.guava.guava_19.0",
"@maven//:com.google.guava.guava_23.0",
"@maven//:com.google.jimfs.jimfs_1.1",
"@maven//:com.google.truth.truth_0.44",
"@maven//:com.linkedin.testbutler.test-butler-app_1.3.1",
"@maven//:com.sun.activation.javax.activation_1.2.0",
"@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.jacoco.org.jacoco.ant_0.8.13",
"@maven//:org.jdeferred.jdeferred-android-aar_1.2.3",
"@maven//:org.jetbrains.kotlin.kotlin-reflect_1.4.32",
"@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.9.22",
"@maven//:org.jetbrains.kotlinx.kotlinx-coroutines-android_1.5.2",
"@maven//:org.jetbrains.kotlinx.kotlinx-coroutines-core_1.5.2",
"@maven//:org.mockito.mockito-core_5.12.0",
"@maven//:xmlpull.xmlpull_1.1.3.1",
],
)
# managed by go/iml_to_build
jvm_import(
name = "liblint-checks-proto.lib",
jars = ["//tools/base/lint:liblint-checks-proto.lib.jar"],
visibility = ["//visibility:public"],
)