@NotNull @Override public List<AndroidProjectBuildTarget> computeAllTargets(@NotNull JpsModel model) { if (!AndroidJpsUtil.containsAndroidFacet(model.getProject())) { return Collections.emptyList(); } return Arrays.asList( new AndroidProjectBuildTarget(AndroidBuilderKind.DEX, model), new AndroidProjectBuildTarget(AndroidBuilderKind.PACKAGING, model)); }
@Override public Collection<BuildTarget<?>> computeDependencies() { List<BuildTarget<?>> result = new ArrayList<BuildTarget<?>>(); if (myKind == AndroidBuilderKind.PACKAGING) { result.add(new AndroidProjectBuildTarget(AndroidBuilderKind.DEX, myModel)); } for (JpsModule module : myModel.getProject().getModules()) { if (AndroidJpsUtil.getExtension(module) != null) { result.add(new ModuleBuildTarget(module, JavaModuleBuildTargetType.PRODUCTION)); } } return result; }