```Failed to apply plugin [id 'org.jetbrains.kotli...
# announcements
s
Copy code
Failed to apply plugin [id 'org.jetbrains.kotlin.jvm']
223   > The current Gradle version 5.1.1 is not compatible with the Kotlin Gradle plugin. Please use Gradle 5.3 or newer, or the previous version of the Kotlin plugin.
k
You should use Gradle 5.3 or newer. Try Gradle 6.6
s
Yeah, I used now 6.6.1
but has to manually install on Travis
j
Travis uses the gradle wrapper automatically if it find a gradlew script in your project. You should use the wrapper. Always.
s
ah I see
So you are saying i should always provide the gradle wrapper in the project?
Gradle 6 has now a predefined Wrapper task?
e
Whenever you generate a Gradle project, a
gradlew
file will be created. It's intended to allow you to use Gradle without having to install it, and also ensures the version used is the correct one. What Jean-Baptiste meant about using the wrapper is:
./gradlew <your-task>
. Also, since it will have to download and install Gradle, it's a good a idea to cache
$GRADLE_HOME
. More info here: https://guides.gradle.org/executing-gradle-builds-on-travisci/
✔️ 1
j
✔️ 1
s
Thanks. Yeah, Gradle 6 is very neat.