https://kotlinlang.org logo
Title
b

bamboo

04/08/2017, 12:31 PM
s

suresh

04/09/2017, 9:35 PM
thanks! After adding
gradle-wrapper.properties
i could able to run the script from CLI. IDE still has issues resolving the classes from
buildSrc
.
Trying the
domain-object
sample (https://github.com/gradle/gradle-script-kotlin/blob/master/samples/domain-objects/build.gradle.kts) with plugins moved to
buildSrc
.
https://github.com/sureshg/kotlin-starter/blob/master/buildSrc/src/main/kotlin/BookPlugin.kt - things are not working once i add this plugin to main build script. Mainly two types of errors. First one,
e: /Users/sgopal1/code/kotlin/kotlin-starter/build.gradle.kts:127:5: Expression '"quickStart"' of type 'String' cannot be invoked as a function. The function 'invoke()' is not found
e: /Users/sgopal1/code/kotlin/kotlin-starter/build.gradle.kts:128:9: Unresolved reference: sourceFile
e: /Users/sgopal1/code/kotlin/kotlin-starter/build.gradle.kts:130:5: Expression '"userGuide"' of type 'String' cannot be invoked as a function. The function 'invoke()' is not found
e: /Users/sgopal1/code/kotlin/kotlin-starter/build.gradle.kts:133:5: Expression '"developerGuide"' of type 'String' cannot be invoked as a function. The function 'invoke()' is not found
then IDE can’t find the
buildSrc
classes (showing with red squiggles)
b

bamboo

04/10/2017, 12:38 PM
Thanks for the report, I’ll look into it.
👍 1