Skip to content

Commit

Permalink
Moving down the target declaration since test file exemption asset is…
Browse files Browse the repository at this point in the history
… referenced before assignment
  • Loading branch information
Rd4dev committed Jul 20, 2024
1 parent 1d5eeb4 commit 113a828
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions scripts/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,6 @@ kt_jvm_binary(
runtime_deps = ["//scripts/src/java/org/oppia/android/scripts/ci:retrieve_changed_files_lib"],
)

kt_jvm_binary(
name = "retrieve_changed_files_test_targets",
testonly = True,
data = TEST_FILE_EXEMPTION_ASSETS,
main_class = "org.oppia.android.scripts.ci.RetrieveChangedFilesTestTargetsKt",
runtime_deps = ["//scripts/src/java/org/oppia/android/scripts/ci:retrieve_changed_files_test_targets_lib"],
)

# TODO(#3428): Refactor textproto assets to subpackage level.
REGEX_PATTERN_CHECK_ASSETS = generate_regex_assets_list_from_text_protos(
name = "regex_asset_files",
Expand Down Expand Up @@ -269,6 +261,14 @@ kt_jvm_binary(
],
)

kt_jvm_binary(
name = "retrieve_changed_files_test_targets",
testonly = True,
data = TEST_FILE_EXEMPTION_ASSETS,
main_class = "org.oppia.android.scripts.ci.RetrieveChangedFilesTestTargetsKt",
runtime_deps = ["//scripts/src/java/org/oppia/android/scripts/ci:retrieve_changed_files_test_targets_lib"],
)

# Note that this is intentionally not test-only since it's used by the app build pipeline. Also,
# this apparently needs to be a java_binary to set up runfiles correctly when executed within a
# Starlark rule as a tool.
Expand Down

0 comments on commit 113a828

Please sign in to comment.