You wouldn’t make this a separate Gradle project but a separate Gradle build script. Save this file as, say, “testing.gradle” and then apply it from other build scripts with apply from: “testing.gradle”. By convention, such build scripts go into $rootProjectDir/gradle.
Not sure what you mean by that. What I was trying to say is that above build script should go into $rootProject.projectDir/gradle/testing.gradle. You can then use “apply from” in as many build scripts as you like.
You can have your build scripts in any directory. If you want to change a project directory, you can do so in settings.gradle. For example: project(":foo").projectDir = new File(“bar”)