digraph javaMainConfigurations {

    rankdir = BT;
    node [fontname="Sans", shape=box, style=filled, fillcolor=chartreuse];
    edge [fontname="Sans"];

    /* tasks */
    compileJava [fillcolor=darkslategray1, fontname="Courier New"]

    /* consumed confs */
    compileClasspath [fillcolor=lightblue]
    runtimeClasspath [fillcolor=lightblue]

    /* configurations */
    compileClasspath -> {compileOnly implementation}
    runtimeClasspath -> {runtimeOnly implementation}

    /* tasks */
    compileJava -> compileClasspath [style=dashed label="uses"]
}
