Minimal Platform without Java/Android definition and build

I am looking at GitHub - JetBrains/intellij-community: IntelliJ IDEA Community Edition & IntelliJ Platform repository, and cannot see how to define and compile minimal platform (subset without Java/Android support).

3 ways considered, as noted below.

  1. The README references installers.cmd that is used just to run OpenSourceCommunityInstallersBuildTarget, however I don’t see module list.
    As side note, extra steps for android,
    while may be good for IDEA CE, are unrelevant noise/garbage for what should be a Platform.
    BTW described ./getPlugins.sh just keep failing over
fatal: unable to connect to git.jetbrains.org:
git.jetbrains.org[0: 46.137.189.41]: errno=Operation timed out
  1. One my open the project inside IDEA, then I guess intellij.idea.community.main.iml would be used,
    but reproducible command build is needed.

  2. Repository has BUILD.bazel, but it is not mentioned in README.
    And though it has something looking like module list, the comments like

### auto-generated section `build intellij.idea.community.main` start

point that it has come from some other place.

So again the question is:
How to define and compile minimal platform (subset without Java/Android support).

Hi, we do not have such a capability in the intellij-community build