tudortimi / gradle-hdvl

Family of Gradle plugins that provide support for hardware design and verification languages
Apache License 2.0
4 stars 2 forks source link

Replace conventions with extension when adding methods to source sets #126

Open tudortimi opened 8 months ago

tudortimi commented 8 months ago

We use conventions to add sv, c, etc. methods to source sets. This is a deprecated feature and we should move away from it.

tudortimi commented 8 months ago

Some notes on how this could be implemented:

https://blog.mrhaki.com/2013/01/groovy-goodness-adding-extra-methods.html https://stackoverflow.com/questions/62318216/how-gradle-plugin-add-method-to-a-specific-block https://github.com/gradle/gradle/blob/master/subprojects/core-api/src/main/java/org/gradle/internal/metaobject/MethodMixIn.java https://www.logicbig.com/tutorials/misc/groovy/method-pointer-operator.html

This needs to be studied in more depth.