I am working on a small project for fun, and I'm h...
# getting-started
s
I am working on a small project for fun, and I'm having a little trouble with setting things up with gradle/kotlin 1.3. (Going to post more in a thread so I don't spam the channel)
This is my gradle file: https://github.com/MclaughlinSteve/automerge-kt/blob/master/build.gradle The project seems to run fine, but when intellij is trying to run the gradle build I'm getting a big dump of errors.
h
what are the errors?
s
These are the errors I'm getting:
Copy code
Could not find method classpath() for arguments [org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.0-rc-190] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
(I'm still getting used to gradle so I suspect I have something messed up in there)
d
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.0-rc-146"
is probably wrong. Is this a build for the regular JVM?
s
Yeah, I updated that to 1.3.0-rc-190 (just haven't pushed it up yet)
d
It’s the
classpath
command or the location of the line itself that needs to be changed, probably. I’m not very good at debugging gradle so I won’t be able to help much more than this though 🙂
s
It looks like it's just barfing on whatever is first in the dependency block. I moved the compile command there and then got this:
Copy code
Could not find method compile() for arguments [org.jetbrains.kotlin:kotlin-stdlib:1.3.0-rc-190]
I don't really understand what was wrong, but I think I fixed it. I'm thinking it had to do with the order/context that things were being done in. (I'm still very new to gradle so I don't really know exactly)