I know, sorry i missed adding the context, we are using composite build and have two convention plugins one with kotlin 1.6 plugin and other with kotlin 1.8 plugin. I tried changing everything to 1.8 but things but things are failing and given the size of the repo everything cannot be fixed in one shot.