| load("//tools/base/bazel:bazel.bzl", "iml_module") |
| 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.newProjectWizard", |
| srcs = ["src"], |
| iml_files = ["intellij.android.newProjectWizard.iml"], |
| kotlin_use_compose = True, |
| 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", |
| "//tools/adt/idea/android:intellij.android.core", |
| "//tools/adt/idea/project-system:intellij.android.projectSystem", |
| "//tools/adt/idea/observable:intellij.android.observable", |
| "//tools/adt/idea/wizard-model:intellij.android.wizard.model", |
| "//tools/adt/idea/adt-ui-compose:intellij.android.adt.ui.compose", |
| "//tools/adt/idea/android-adb:intellij.android.adb", |
| "//tools/adt/idea/adt-ui:intellij.android.adt.ui", |
| "//tools/adt/idea/observable-ui:intellij.android.observable.ui", |
| "//tools/adt/idea/wizard:intellij.android.wizard", |
| "//tools/adt/idea/artwork:intellij.android.artwork", |
| "//tools/adt/idea/android-material:intellij.android.android-material", |
| "//tools/adt/idea/android-common:intellij.android.common", |
| "//tools/adt/idea/execution/common:intellij.android.execution.common", |
| "//tools/adt/idea/render-resources:intellij.android.render-resources", |
| "//tools/adt/idea/jps-model:intellij.android.jps.model", |
| "@intellij//:org.jetbrains.kotlin", |
| "//tools/base/wizard/template-plugin:studio.intellij.android.wizardTemplate.plugin", |
| "//tools/adt/idea/.idea/libraries:studio-analytics-proto", |
| "//tools/adt/idea/gradle-dsl:intellij.android.gradle.dsl", |
| "//tools/adt/idea/project-system-gradle:intellij.android.projectSystem.gradle", |
| "//tools/analytics-library/tracker:analytics-tracker", |
| "//tools/base/flags:studio.android.sdktools.flags", |
| "//tools/adt/idea/lint:intellij.lint", |
| "//tools/base/lint:studio.android.sdktools.lint-checks", |
| "//tools/base/pixelprobe:studio.android.sdktools.pixelprobe", |
| "//tools/adt/idea/android-templates:intellij.android.templates", |
| "//tools/adt/idea/analytics", |
| "//tools/adt/idea/project-system-gradle-models:intellij.android.projectSystem.gradle.models", |
| "//tools/adt/idea/sdk-updates:intellij.android.sdkUpdates", |
| "//tools/adt/idea/ml-api:intellij.android.ml-api", |
| ], |
| ) |
| |
| # managed by go/iml_to_build |
| iml_module( |
| name = "intellij.android.newProjectWizard.tests", |
| iml_files = ["intellij.android.newProjectWizard.tests.iml"], |
| split_test_targets = { |
| "npw.assetstudio": { |
| "test_filter": "com.android.tools.idea.npw.assetstudio.ui", |
| }, |
| "GroovyAddNewModulesToAppTest": { |
| # TODO(b/191881927) Test cases with a gradle KTS sync do not shard well |
| "test_filter": "com.android.tools.idea.npw.module.GroovyAddNewModulesToAppTest", |
| # b/399316550 flaky on windows, gradle daemon not found? |
| "tags": ["noci:studio-win"], |
| }, |
| "GroovyVersionCatalogAddNewModulesToAppTest": { |
| # TODO(b/191881927) Test cases with a gradle KTS sync do not shard well |
| "test_filter": "com.android.tools.idea.npw.module.GroovyVersionCatalogAddNewModulesToAppTest", |
| # b/399316550 flaky on windows, gradle daemon not found? |
| "tags": ["noci:studio-win"], |
| }, |
| "KtsAddNewModulesToAppTest": { |
| # TODO(b/191881927) Test cases with a gradle KTS sync do not shard well |
| "test_filter": "com.android.tools.idea.npw.module.KtsAddNewModulesToAppTest", |
| # b/399316550 flaky on windows, gradle daemon not found? |
| "tags": ["noci:studio-win"], |
| }, |
| "KtsVersionCatalogAddNewModulesToAppTest": { |
| # TODO(b/191881927) Test cases with a gradle KTS sync do not shard well |
| "test_filter": "com.android.tools.idea.npw.module.KtsVersionCatalogAddNewModulesToAppTest", |
| # b/399316550 flaky on windows, gradle daemon not found? |
| "tags": ["noci:studio-win"], |
| }, |
| "BenchmarkModuleTest": { |
| # TODO(b/191881927) Test cases with a gradle KTS sync do not shard well |
| "test_filter": "com.android.tools.idea.npw.module.BenchmarkModuleTest", |
| # b/192269906 flaky on windows, taking longer than 15 minutes |
| "tags": ["noci:studio-win"], |
| }, |
| "AddBaselineProfilesModuleTest": { |
| "test_filter": "com.android.tools.idea.npw.module.AddBaselineProfilesModuleTest", |
| }, |
| "AddBaselineProfilesModuleKtTest": { |
| "test_filter": "com.android.tools.idea.npw.module.AddBaselineProfilesModuleKtTest", |
| }, |
| "NewModuleCompileSdkSelectionTest": { |
| "test_filter": "com.android.tools.idea.npw.module.NewModuleCompileSdkSelectionTest", |
| "data": [ |
| "//prebuilts/studio/sdk:platforms/android-33", |
| ], |
| }, |
| "ConfigureAndroidModuleStepTest": { |
| "test_filter": "com.android.tools.idea.npw.module.ConfigureAndroidModuleStepTest", |
| "data": [ |
| "//prebuilts/studio/sdk:platforms/android-31", |
| "//prebuilts/studio/sdk:platforms/android-32", |
| "//prebuilts/studio/sdk:platforms/android-33", |
| ], |
| }, |
| "ModuleModelTest": { |
| "test_filter": "com.android.tools.idea.npw.module.ModuleModelTest", |
| }, |
| "NewProjectTemplateRendererTest": { |
| "test_filter": "com.android.tools.idea.npw.model.NewProjectTemplateRendererTest", |
| "data": [ |
| "//tools/base/build-system:gradle-distrib-8.11.1", |
| ], |
| }, |
| "other": { |
| "shard_count": 10, |
| }, |
| }, |
| test_class = "com.android.tools.idea.npw.NewProjectWizardTestSuite", |
| # keep sorted |
| test_data = [ |
| ":test_deps", |
| "//prebuilts/studio/jdk/jdk11:jdk_runtime_files", |
| "//prebuilts/studio/jdk/jdk17:jdk_runtime_files", |
| "//prebuilts/studio/layoutlib:runtime", |
| "//prebuilts/studio/layoutlib/data:framework_res.jar", |
| "//prebuilts/studio/sdk:build-tools/33.0.1", |
| "//prebuilts/studio/sdk:build-tools/latest", |
| "//prebuilts/studio/sdk:platform-tools", |
| "//prebuilts/studio/sdk:platforms/android-35", |
| "//tools/adt/idea/android/testData", |
| "//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:gradle-distrib-8.0", |
| "//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/.idea/libraries:kotlin-test", |
| "//tools/adt/idea/android-npw:intellij.android.newProjectWizard", |
| "//tools/adt/idea/.idea/libraries:truth", |
| "//tools/adt/idea/android:intellij.android.core", |
| "//tools/adt/idea/project-system:intellij.android.projectSystem", |
| "//tools/adt/idea/android-test-framework:intellij.android.testFramework", |
| "//tools/adt/idea/observable:intellij.android.observable", |
| "//tools/adt/idea/wizard-model:intellij.android.wizard.model", |
| "//tools/base/wizard/template-plugin:studio.intellij.android.wizardTemplate.plugin", |
| "//tools/adt/idea/android-common:intellij.android.common", |
| "//tools/adt/idea/.idea/libraries:studio-analytics-proto", |
| "//tools/adt/idea/.idea/libraries:mockito", |
| "//tools/adt/idea/adt-ui:intellij.android.adt.ui", |
| "//tools/base/testutils:studio.android.sdktools.testutils", |
| "//tools/adt/idea/adt-testutils:intellij.android.adt.testutils", |
| "//tools/adt/idea/lint:intellij.lint", |
| "//tools/base/common:studio.android.sdktools.common", |
| "//tools/adt/idea/gradle-dsl:intellij.android.gradle.dsl", |
| "//tools/base/wizard/template-impl:studio.intellij.android.wizardTemplate.impl", |
| "//tools/adt/idea/project-system-gradle-models:intellij.android.projectSystem.gradle.models", |
| "//tools/adt/idea/layoutlib:intellij.android.layoutlib", |
| "//tools/adt/idea/android-lint:intellij.android.lint", |
| "//tools/adt/idea/project-system-gradle:intellij.android.projectSystem.gradle", |
| "//tools/adt/idea/project-system-gradle-upgrade:intellij.android.projectSystem.gradle.upgrade", |
| "//tools/adt/idea/android-material:intellij.android.android-material", |
| "//tools/base/flags:studio.android.sdktools.flags", |
| "//tools/adt/idea/render-resources:intellij.android.render-resources", |
| "//tools/adt/idea/android-templates:intellij.android.templates", |
| "//tools/adt/idea/.idea/libraries:mockito-kotlin", |
| ], |
| test_resources = ["testResources"], |
| test_srcs = ["testSrc"], |
| test_tags = [], |
| 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", |
| ], |
| # 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.activity.activity-ktx_1.8.0", |
| "@maven//:androidx.appcompat.appcompat_1.3.0", |
| "@maven//:androidx.appcompat.appcompat_1.6.1", |
| "@maven//:androidx.benchmark.benchmark-baseline-profile-gradle-plugin_1.2.4", |
| "@maven//:androidx.benchmark.benchmark-gradle-plugin_1.2.4", |
| "@maven//:androidx.constraintlayout.constraintlayout_2.1.4", |
| "@maven//:androidx.core.core-ktx_1.6.0", |
| "@maven//:androidx.lifecycle.lifecycle-livedata-ktx_2.3.1", |
| "@maven//:androidx.lifecycle.lifecycle-livedata-ktx_2.6.1", |
| "@maven//:androidx.lifecycle.lifecycle-runtime-ktx_2.6.1", |
| "@maven//:androidx.lifecycle.lifecycle-runtime_2.6.1", |
| "@maven//:androidx.lifecycle.lifecycle-viewmodel-ktx_2.3.1", |
| "@maven//:androidx.lifecycle.lifecycle-viewmodel-ktx_2.6.1", |
| "@maven//:androidx.navigation.navigation-fragment-ktx_2.3.5", |
| "@maven//:androidx.navigation.navigation-ui-ktx_2.3.5", |
| "@maven//:androidx.profileinstaller.profileinstaller_1.3.1", |
| "@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.3-alpha02", |
| "@maven//:androidx.test.ext.junit_1.1.5", |
| "@maven//:androidx.test.runner_1.5.2", |
| "@maven//:androidx.wear.watchface.watchface-guava_1.1.0", |
| "@maven//:com.android.support.appcompat-v7_25.4.0", |
| "@maven//:com.android.support.constraint.constraint-layout_1.0.2", |
| "@maven//:com.android.support.constraint.constraint-layout_2.0.4", |
| "@maven//:com.android.support.test.espresso.espresso-core_3.0.2", |
| "@maven//:com.android.tools.build.aapt2_8.1.0-10154469", |
| "@maven//:com.android.tools.build.gradle_8.1.0", |
| "@maven//:com.google.android.material.material_1.10.0", |
| "@maven//:com.google.android.material.material_1.4.0", |
| "@maven//:com.google.guava.guava_19.0", |
| "@maven//:org.gradle.toolchains.foojay-resolver-convention.org.gradle.toolchains.foojay-resolver-convention.gradle.plugin_0.8.0", |
| "@maven//:org.jetbrains.kotlin.kotlin-build-tools-impl_2.0.21", # AddNewModulesToAppTest |
| "@maven//:org.jetbrains.kotlin.kotlin-gradle-plugin_1.9.24", |
| "@maven//:org.jetbrains.kotlin.kotlin-gradle-plugin_2.0.21", # AddNewModulesToAppTest |
| "@maven//:org.jetbrains.kotlin.kotlin-gradle-plugin_2.1.0", |
| "@maven//:org.jetbrains.kotlin.kotlin-native-prebuilt_" + KGP_VERSION_FOR_TESTS, # Used by AddKotlinMultiplatformLibraryModuleTest |
| "@maven//:org.jetbrains.kotlin.kotlin-script-runtime_1.9.24", |
| "@maven//:org.jetbrains.kotlin.kotlin-test-junit_" + KGP_VERSION_FOR_TESTS, # Used by AddKotlinMultiplatformLibraryModuleTest |
| "@maven//:org.jetbrains.kotlinx.kotlinx-coroutines-core_1.6.1", |
| ], |
| ) |