When using ~/.config/coursier/credentials.properties, the custom credentials are not picked up by the Java interfaces like it does out of the box when using the Coursier CLI or the bootstrap launcher.
A workaround is to manually parse the properties file and assign the credentials to each coursierapi.MavenRepository.