Skip to content

Commit

Permalink
Remove AI-222 from blocklist to fix launcherscript
Browse files Browse the repository at this point in the history
Reviewed By: cute-jumper

Differential Revision: D49275144

fbshipit-source-id: b79c54def331b2bd5300e3f1110c5869705f6c9e
  • Loading branch information
Joshua Selbo authored and facebook-github-bot committed Sep 14, 2023
1 parent 2c707fa commit 9eb27a5
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions litho-intellij-plugin/src/main/BUCK
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,18 @@ load(
"make_dep_path",
)

_CONFIG_AI222 = "fbsource//third-party/java/intellij:AI-222-config"

_CONFIG_AI223 = "fbsource//third-party/java/intellij:AI-223-config"

_JAVA_TARGET_SELECT = select(
{
_CONFIG_AI222: "11",
_CONFIG_AI223: "17",
"DEFAULT": "17",
},
)

fb_java_library(
name = "main",
srcs = glob(
Expand All @@ -18,7 +30,11 @@ fb_java_library(
],
),
abi_generation_mode = "class",
javac = "fbcode//tools/build/buck/wrappers:javac17.sh",
javac = select({
_CONFIG_AI222: None,
_CONFIG_AI223: "fbcode//tools/build/buck/wrappers:javac17.sh",
"DEFAULT": "fbcode//tools/build/buck/wrappers:javac17.sh",
}),
provided_deps = [
ANDROID_STUDIO_PLUGIN_SDK,
],
Expand All @@ -27,8 +43,8 @@ fb_java_library(
exclude = ["resources/META-INF/redsymbols.xml"],
),
resources_root = "resources",
source = "17",
target = "17",
source = _JAVA_TARGET_SELECT,
target = _JAVA_TARGET_SELECT,
visibility = ["PUBLIC"],
deps = [
LITHO_ANNOTATIONS_TARGET,
Expand Down

0 comments on commit 9eb27a5

Please sign in to comment.