digraph javaTestConfigurations {

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

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

    testCompileClasspath [fillcolor=lightblue]
    testRuntimeClasspath [fillcolor=lightblue]

    /* configurations */
    testImplementation -> implementation
    testCompileClasspath -> {testCompileOnly testImplementation}
    testRuntimeOnly -> runtimeOnly
    testRuntimeClasspath -> {testRuntimeOnly testImplementation}

    /* tasks */
    test -> testRuntimeClasspath [style=dashed label="uses"]
    compileTestJava -> testCompileClasspath [style=dashed label="uses"]
}
