What is the best way to use a file on a web server as a config file?

when i try to use https://github.com/BuiltBrokenModding/BuiltBrokenScripts/blob/DmodTest/Forge.properties as https://github.com/BuiltBrokenModding/BuiltBrokenScripts/blob/DmodTest/scripts/forge/builtbroken.gradle#L29 it gives me the error.

The file method doesn’t allow for using HTTP(S) URLs. In your case I’d go for plain Groovy code. Keep in mind that you’ll have to use the raw content URL for GitHub.

println new URL("https://raw.githubusercontent.com/BuiltBrokenModding/BuiltBrokenScripts/DmodTest/Forge.properties").text

thanks now I need to figure out the best way to use it for https://github.com/BuiltBrokenModding/BuiltBrokenScripts/blob/3c45a30ba934de25761dbee240234ebb296ca5ae/scripts/forge/builtbroken.gradle#L44