The Gradle slack workspace I linked above would be a great place for this question. There’s an Android channel in there that gets contributions from both Gradle and AGP contributors.
To do this, it’s rather simple.
In your
build-conventions
source, you’d have your script, e.g.,
myapplication-application-conventions
and
myapplication-library-conventions
as a plug in script.
At the top of the convention, you’d apply the plug in. e.g (in library convetion):
plugins {
id("com.android.library")
}
android {
//build logic for all libraries
}
Then in a library build script (same would hold for your application):
plugins {
id("myapplication-library-conventions")
}
// add anything additional the library may need, such as testNamespace