// change folder path inside bracket
includeBuild("plugin") {
dependencySubstitution {
// change your artifact group and id
// iam using https://github.com/dimaslanjaka/gradle-plugin/ for example
substitute(module("com.dimaslanjaka:gradle-plugin")).with(project(":"))
}
}
Import composite build plugin as subtitue module dependency [Gradle]