Custom plugin to customize C++ plugin

Hi guys,

I’d like to do something very similar for an internal project. I already created and validated a Gradle configuration that allows me to cross-compile code for a specific processor. I want to convert that Gradle Configuration into a plugin that I can apply to any build.gradle in order to cross-compile automatically for our processor. This plugin will set the cross-compilers toolchains, set the locations of src folders, set flags, etc. To give you an idea, here is the kind of build.gradle I want to convert into a plugin: Cross-compiler for C project, commandLine vs Gradle

I read your answer Paul but according to the Gradle doc, Rule based configuration will be deprecated and new plugins should not use this concept… well your answer is two years old now so it makes sense. Can you or someone else tell me what replace the Rule based configuration? And if possible share an example of code? I searched on the forum and the doc but have yet to find the info.

Thanks