Steps:
build.gradle.kts
gradlew
gradlew.bat
settings.gradle
build.gradle.kts
based on your needs, you can use as inspiration the scripts in the project just cloned or in one of its samplesbuild.gradle.kts
and check if there are any error. If the highlighting is not working and/or is everything marked red, then close and reopen IntellijIf you are on Windows, you may encounter this bug, download the full Gradle 3.3 distribution and use that instead the one provided. Related.
OSX and Ubuntu work out of the box.
Small bonus, if you want to avoid all the hassle of publicing on Maven and similar, use Jitpack, the lines to add are almost identical compared to Groovy. You can take inspiration from this project of mine.