Is there a minimum gradle version for kotlin 1.3?
# announcements
h
Is there a minimum gradle version for kotlin 1.3?
r
Depends what you’re talking about. If you just compile kotlin, I don’t think so. If you’re using Gradle kotlin-dsl, then yes
h
When I change
ext.kotlin_version = '1.2.50'
to
1.3.0
, I get the following when it tries to apply the kotlin plugin:
Copy code
A problem occurred evaluating root project 'kubed'.
> Failed to apply plugin [id 'kotlin']
   > Could not generate a proxy class for class org.jetbrains.kotlin.gradle.dsl.KotlinJvmProjectExtension.
r
Are you using JDK8?
h
Yep
Upgrading gradle for this project is fine, been meaning to add a gradle wrapper to it forever. Just have some work stuff that requires gradle 2 right now so 2 is on the path and 1.3.0 doesn't seem to like it
r
This error has a cause, try to print it with
--stacktrace
h
Copy code
groovy.lang.MissingPropertyException: Could not get unknown property 'kotlin_version' for object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
r
It does not find your
ext.kotlin_version
h
Sorry I was messing around see what was wrong, added that back in the error is:
Copy code
java.lang.NoClassDefFoundError: org/gradle/api/attributes/HasAttributes
Which I assume was added to gradle in a version newer than the one Im using
r
Pretty sure this means Gradle upgrade required
h
Agreed, thanks
r
This one thing was added in 3.3
So unless it’s something else that you upgraded that requires that, we now know that the answer to your original question was that yes, Kotlin 1.3 requires Gradle 3.3+
👍 1
g
In most cases better to use the latest stable Gradle
👌 3