Search in sources :

Example 1 with BinaryBuildAbility

use of org.gradle.platform.base.internal.BinaryBuildAbility in project gradle by gradle.

the class AbstractBinaryRenderer method renderBuildAbility.

private void renderBuildAbility(BinarySpec binary, TextReportBuilder builder) {
    BinaryBuildAbility buildAbility = ((BinarySpecInternal) binary).getBuildAbility();
    if (!buildAbility.isBuildable()) {
        TreeFormatter formatter = new TreeFormatter();
        buildAbility.explain(formatter);
        builder.item(formatter.toString());
    }
}
Also used : BinarySpecInternal(org.gradle.platform.base.internal.BinarySpecInternal) BinaryBuildAbility(org.gradle.platform.base.internal.BinaryBuildAbility) TreeFormatter(org.gradle.internal.logging.text.TreeFormatter)

Aggregations

TreeFormatter (org.gradle.internal.logging.text.TreeFormatter)1 BinaryBuildAbility (org.gradle.platform.base.internal.BinaryBuildAbility)1 BinarySpecInternal (org.gradle.platform.base.internal.BinarySpecInternal)1