is there a way to programmatically check if a proj...
# fleet
z
is there a way to programmatically check if a project is being synced in Fleet? Due to Fleet being incompatible with stable AGP versions and not exposing a preference to support newer ones (https://youtrack.jetbrains.com/issue/FL-23919/), I’m looking to try to conditionally pick the AGP version depending on if it’s a gradle sync for fleet or not
today i learned 1
a
cc @vladsoroka could you please advise? Thanks.
v
There is a
fleet.api.BuildProgressApi
service which can be used to track Gradle/Maven
sync
events.
z
Do you have an example of how to access that from Gradle?
v
Ah, sorry, I misunderstood your first question. I thought you need to react somehow on a sync finish event. If you need to customize your build logic specifically when Gradle import is running by Fleet, you can use the following system properties:
idea.sync.active
,
idea.platform.prefix
,
idea.version
. Note,
idea.version
value is not a Fleet IDE version but the version of IntelliJ backend which performs project importing for Fleet.
z
Perfect, thanks!