simon.vergauwen
02/09/2022, 3:44 PMbaselline.yml
to a Gradle plugin?
When I add it to src/resource
it's not working correctly đ And it seems I cannot configure all properties from the baseline programmatically, or am I looking in the wrong place?Big Chungus
02/09/2022, 3:49 PMgammax
02/09/2022, 4:15 PMsimon.vergauwen
02/09/2022, 4:22 PMconfig.yml
from the Gradle's plugin src/resource
to the downstream project build
folder and referencing that from the common Gradle plugin.
The goal is to share the same Detekt configuration across all microservices so we can keep code aligned across all codebases.gammax
02/09/2022, 4:24 PMsimon.vergauwen
02/09/2022, 4:25 PMgammax
02/09/2022, 4:26 PMBig Chungus
02/09/2022, 4:27 PMsimon.vergauwen
02/09/2022, 4:31 PMwe donât support (different/multiple) config for different modules.That's not what I'm doing. We have a common Gradle plugin that configures Detekt with a common
config
for all modules in all projects where we consume the plugin. In order for the project to configure detekt, it needs access to the config.yml
file. So I'm copying it from the Gradle plugin src/resource
to the projects build
folder.ephemient
02/13/2022, 11:42 AMrootProject.file("config.yml")
everywhere else?simon.vergauwen
02/17/2022, 10:23 AMrootProject
will not be included in the Gradle Plugin's jar.ephemient
02/17/2022, 2:53 PMephemient
02/17/2022, 2:54 PMsimon.vergauwen
02/17/2022, 2:54 PMephemient
02/17/2022, 3:29 PM./gradlew detekt
succeeds in the project but will fail if you comment out detektConfig("example.config:config")
simon.vergauwen
02/17/2022, 3:40 PM