Reputation: 2488
I migrated my Gradle project config for Kotlin-script usage: now I have both build.gradle
and build.gradle.kts
and can switch between them configuring settings.gradle
:
project(':myProject').buildFileName='build.gradle.kts'
The issue is kts build.gradle.kts
is not properly highlited: it does not resolve dependencies, says version = 123
is not a valid word and so on.
I use Idea Ultimate 2017.1.3 and kotlin-plugin 1.1.2. What's the issue? Deleting build.gradle
doesn't help either.
gradle-script-kotlin project files are highlited correctly.
Upvotes: 4
Views: 1495
Reputation: 2488
The issue probably was I used incorrect gradle version. I recreated the project specifying gradle version 3.5 and now it works fine. Probably I should use gradle wrapper to prevent the same issue occurence on other developers' machines.
Upvotes: 1