Problem with build.gradle.kts, don't have support for compile dependencies


Hi, I was trying to rewrite my build.gradle to build.gradle.kts to get my hands on kotlin dsls but when I got to dependencies I can’t specify compiled dependencies like there was no support for it, classpath ones works like expected though. My version of kotlin plugin is : 1.2.21-release-IJ2017.3-1.



dependencies { } block inside buildscript { } can declare only one type of dependencies — those that go to the classpath of the build script itself. Therefore there’s the only one classpath dependency configuration.

On the contrary in the top-level dependencies { } block you can declare dependencies of the project dependency configurations. One of these configurations is compile, but note that it becomes available only after you have applied kotlin or java plugin.