Does anybody know what the difference is when refe...
# multiplatform
j
Does anybody know what the difference is when referencing a sub project from within a build.gradle.kts file?
implementation(projects.shared)
vs
implementation(project(":shared"))
For some reason the first way does not work for me, not sure what I have to do get it resolved, thanks for you time. The error shared/build.gradle.kts4220: Unresolved reference. None of the following candidates is applicable because of receiver type mismatch: public val TaskContainer.projects: TaskProvider<ProjectReportTask> defined in org.gradle.kotlin.dsl
r
do you have
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
set in your gradle settings?
j
@Raed Ghazal thank you, that was it!
1