I'm not fluent in gradle as well I'm not fluent with conversion groovy to kotlin gradle. It took me some time to find corresponded groovy code for the configurations.