import org.gradle.gradlebuild.PublicApi

plugins {
    gradlebuild.internal.java
}

dependencies {
    testImplementation(project(":baseServices"))
    testImplementation(project(":modelCore"))

    testImplementation(testLibrary("archunit_junit4"))
    testImplementation(library("guava"))

    rootProject.subprojects {
        val subproject = this.path
        plugins.withType<gradlebuild.distribution.CorePlugin> {
            testRuntimeOnly(project(subproject))
        }
        plugins.withType<gradlebuild.distribution.PluginsPlugin> {
            testRuntimeOnly(project(subproject))
        }
    }
}

tasks.withType<Test> {
    // Looks like loading all the classes requires more than the default 512M
    maxHeapSize = "700M"

    systemProperty("org.gradle.public.api.includes", PublicApi.includes.joinToString(":"))
    systemProperty("org.gradle.public.api.excludes", PublicApi.excludes.joinToString(":"))
}

import org.gradle.gradlebuild.PublicApi

plugins {
    gradlebuild.internal.java
}

configurations {
    testRuntimeClasspath.get().extendsFrom(fullGradleRuntimeClasspath.get())
}

dependencies {
    testImplementation(project(":baseServices"))
    testImplementation(project(":modelCore"))

    testImplementation(testLibrary("archunit_junit4"))
    testImplementation(library("guava"))
}

tasks.withType<Test> {
    // Looks like loading all the classes requires more than the default 512M
    maxHeapSize = "700M"

    systemProperty("org.gradle.public.api.includes", PublicApi.includes.joinToString(":"))
    systemProperty("org.gradle.public.api.excludes", PublicApi.excludes.joinToString(":"))
}

Make use of shared fullGradleRuntimeClasspath in arch test project
Make use of shared fullGradleRuntimeClasspath in arch test project

blindpirate/gradle,gradle/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle