your script could not transform dependencies of the types developmentOnly and runtimeOnly.
Even if it those are custom configurations it should treat everything inside "dependencies" the same.
Example:
configurations {
developmentOnly // for dependencies that are needed for development only
}
dependencies {
developmentOnly "net.java.dev.jna:jna:5.5.0"
developmentOnly "io.methvin:directory-watcher:0.9.9"
...
}
your script could not transform dependencies of the types developmentOnly and runtimeOnly.
Even if it those are custom configurations it should treat everything inside "dependencies" the same.
Example: