https://kotlinlang.org logo
Title
g

groostav

04/06/2017, 4:18 AM
yeah, i just cloned the gradle script kotlin repo and i cant even build the sample projects :S
b

bamboo

04/06/2017, 1:07 PM
Hi Geoff, what error do you get?
g

groostav

04/07/2017, 1:32 AM
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
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

bamboo

04/07/2017, 12:26 PM
Thanks. That’s very odd. Are you building with the included Gradle wrapper as in
./gradlew clean check
?
f

fitzoh

04/07/2017, 4:44 PM
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

groostav

04/07/2017, 9:17 PM
@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

bamboo

04/07/2017, 9:33 PM
@groostav ok, that’s what I suspected,
gradlew check
should work, please let us know if it doesn't