Fix dep. scanning through Pom generation
Maven Poms are now generated using the custom generatePom task defined in build.gradle.kts. The generatePom task adds repositories to the generated pom to make sure the generated POM can be used to download dependencies if needed.
Dependency scanning runs a maven task that requires a download to happen. As such, we should provide proper repositories to Maven.