It may be easiest to skip validating a particular module during the resolve process.
-
Open your workspace’s root
build.gradle
file. -
Insert the following Gradle code at the bottom of the file:
targetPlatform { resolveOnlyIf { project -> project.name != 'PROJECT_NAME' } }
Be sure to replace the
PROJECT_NAME
filler with your module’s name (e.g.,test-api
). -
(Optional) If you prefer to disable the Target Platform plugin altogether, you can add a slightly different directive to your
build.gradle
file:targetPlatform { onlyIf { project -> project.name != 'PROJECT_NAME' } }
This both skips the
resolve
task execution and disables BOM dependency management.
Now the resolve
task skips your module project.