blob: fb9d272372bde848e0b7935f8859d2edca98bf2b [file] [log] [blame]
load("//tools/base/bazel:bazel.bzl", "iml_module")
# managed by go/iml_to_build
iml_module(
name = "intellij.android.gradle.dsl",
srcs = ["src"],
iml_files = ["intellij.android.gradle.dsl.iml"],
lint_baseline = "lint_baseline.xml",
module_visibility = [
# Language-specific implementation modules
"//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/gradle-dsl-declarative:intellij.android.gradle.dsl.declarative",
# Gradle Project System tools
"//tools/adt/idea/build-attribution:intellij.android.build-attribution",
"//tools/adt/idea/project-system-gradle:intellij.android.projectSystem.gradle",
"//tools/adt/idea/project-system-gradle-psd:intellij.android.projectSystem.gradle.psd",
"//tools/adt/idea/project-system-gradle-upgrade:intellij.android.projectSystem.gradle.upgrade",
# Project System Token implementation modules
"//tools/studio/google/cloud/testing/test-recorder/gradle:test-recorder.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",
"//tools/vendor/google/focus-plugin:declarative-gradle.focus-plugin",
# TODO(xof): investigate
"//tools/adt/idea/gmd-code-completion:intellij.android.gmd-code-completion",
"//tools/vendor/google/android-ndk:android-ndk",
"//tools/vendor/google/firebase:firebase",
"//tools/vendor/google/ml/aiplugin/android/gradle:aiplugin.android.gradle",
"//tools/vendor/google/ml/aiplugin/experimental:aiplugin.experimental",
],
resources = ["resources"],
visibility = ["//visibility:public"],
# do not sort: must match IML order
deps = [
"@intellij//:intellij-sdk",
"@intellij//:com.intellij.java",
"@intellij//:org.intellij.groovy",
"//tools/adt/idea/android-common:intellij.android.common",
"//tools/adt/idea/gradle-dsl-flags:intellij.android.gradle.dsl.flags",
],
)
# managed by go/iml_to_build
iml_module(
name = "intellij.android.gradle.dsl.tests",
iml_files = ["intellij.android.gradle.dsl.tests.iml"],
test_class = "com.android.tools.idea.gradle.dsl.GradleDslTestSuite",
test_data = glob(["testData/**"]),
# do not sort: must match IML order
test_deps = [
"//tools/adt/idea/.idea/libraries:junit4",
"//tools/adt/idea/gradle-dsl:intellij.android.gradle.dsl",
"//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/.idea/libraries:truth",
"//tools/base/common:studio.android.sdktools.common",
"//tools/adt/idea/android-common:intellij.android.common",
"//tools/adt/idea/android-test-framework:intellij.android.testFramework",
"//tools/adt/idea/android:intellij.android.core",
"//tools/adt/idea/project-system-gradle-models:intellij.android.projectSystem.gradle.models",
"//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.testutils",
"//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-flags:intellij.android.gradle.declarative.lang.flags",
],
test_shard_count = 3,
test_srcs = ["testSrc"],
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",
"@intellij//:org.intellij.groovy",
"@intellij//:org.jetbrains.kotlin",
"//tools/base/flags:studio.android.sdktools.flags",
"//tools/adt/idea/gradle-declarative-lang-ide:intellij.android.gradle.declarative.lang.ide",
"//tools/adt/idea/.idea/libraries:mockito",
"@intellij//:org.toml.lang",
],
)
# managed by go/iml_to_build
iml_module(
name = "intellij.android.gradle.dsl.testutils",
iml_files = ["intellij.android.gradle.dsl.testutils.iml"],
# do not sort: must match IML order
test_deps = [
"//tools/adt/idea/.idea/libraries:junit4",
"//tools/adt/idea/gradle-dsl:intellij.android.gradle.dsl",
"//tools/adt/idea/.idea/libraries:truth",
"//tools/base/common:studio.android.sdktools.common",
"//tools/adt/idea/android-common:intellij.android.common",
"//tools/adt/idea/android-test-framework:intellij.android.testFramework",
"//tools/adt/idea/android:intellij.android.core",
"//tools/base/testutils:studio.android.sdktools.testutils",
"//tools/adt/idea/adt-testutils:intellij.android.adt.testutils",
"//prebuilts/tools/common/m2:junit-4.12",
],
test_srcs = ["testutils"],
test_tags = ["manual"],
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/gradle-dsl-declarative:intellij.android.gradle.dsl.declarative",
"@intellij//:org.intellij.groovy",
"@intellij//:org.jetbrains.kotlin",
"@intellij//:org.toml.lang",
],
# do not sort: must match IML order
deps = [
"@intellij//:intellij-sdk",
"@intellij//:com.intellij.java",
"@intellij//:com.intellij.gradle",
"//tools/base/flags:studio.android.sdktools.flags",
],
)