<@U0B9ZL4N4> maybe you’re running into this issue:...
# gradle
b
s
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,
Copy code
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
Thanks for the report, I’ll look into it.
👍 1