maven { url 'https://jitpack.io' } does not work.
the new way is:
maven {url = uri("https://jitpack.io")}