Gradle code ownership verification plugin
A gradle plugin that will verify ownership files are in place in projects and have required information.
Use it
plugins {
id("se.premex.ownership") version "LATEST_VERSION"
}
Configure it
ownership {
validateOwnership = true
generateGithubOwners = true
generateBitbucketOwners = true
}
Verify ownership files is in place:
./gradlew validateOwnership
Outputs from validation is available in build/reports/ownershipValidation/
validateOwnership
will be run as part of check
tasks
./gradlew check
Sample OWNERSHIP.toml file
version = 1
[owner]
user = "secretUser"
Coming Soon!
Here are some ideas that we are thinking about. We are also not limited to these and would love to learn more about your use cases.
- Support for verifying codeownership files is in place
- Better rules for validating content in ownership files
- Support for having codeownership files anywhere in the code and not only in a projects root
- Generate GitHub & Bitbucket codeownership files based on the toml files
- Generate html reports of code ownerships and code health