yeah, i just cloned the gradle script kotlin repo and i cant even build the sample projects :S
g
yeah, i just cloned the gradle script kotlin repo and i cant even build the sample projects :S
b
Hi Geoff, what error do you get?
g
ill spend a little more time with it tonight
yeah so I've been working through errors and I've got it down to a
Copy code
Error: Property delegate must have a 'getValue(Nothing?, KProperty<*>)' method. None of the following functions is suitable:
public operator fun <T> ExtraPropertiesExtension.getValue(nothing: Nothing?, property: KProperty<*>): String? defined in org.gradle.script.lang.kotlin (C:\Users\Geoff\.gradle\caches\3.4.1\gradle-script-kotlin\9ie15qme9coikkue7luuwndvb\build.gradle.kts (23:34))
this is when I simply run gradle's default target on the root directory of
gradle-script-kotlin
so if i run it from intelliJ it seems to run until I get to a build step
assemble
...
b
Thanks. That’s very odd. Are you building with the included Gradle wrapper as in
./gradlew clean check
?
f
If you're just getting started with gradle it might make sense to just stick w/ the standard groovy dsl until you get your feet wet
g
@bamboo I was not using the builtin
gradlew
I was using my local
gradle
installed by chocolaty. @fitzoh I'm scared of the groovy gradle DSL. I was hoping an IDE's auto completion might help me, because I'm pretty good with the intricacies of closures in kotlin, but gradle was literally my first experience with groovy.
b
@groostav ok, that’s what I suspected,
gradlew check
should work, please let us know if it doesn't