sksk
08/29/2018, 5:26 AMartifact project(':kdx'), 'kdx'
to the new kotlin dls plugin ?gildor
08/29/2018, 5:41 AMartifact
is configuration, than should work like:
artifact(project(":kdx"))
But only if you use plugins DSL and have type safe accessors.
Otherwise you can use dynamic syntax to add dependency to unknown configuration:
"artifact"(project(":kdx"))
sksk
08/29/2018, 7:28 AMScript compilation error:
Line 24: artifact(project(":kdx"))
^ None of the following functions can be called with the arguments supplied:
public final fun artifact(name: String): Unit defined in org.jetbrains.kotlin.gradle.plugin.KonanLibrariesSpec
public final fun artifact(artifact: KonanInteropLibrary): Unit defined in org.jetbrains.kotlin.gradle.plugin.KonanLibrariesSpec
public final fun artifact(artifact: KonanLibrary): Unit defined in org.jetbrains.kotlin.gradle.plugin.KonanLibrariesSpec
1 error
sksk
08/29/2018, 7:29 AMsksk
08/29/2018, 7:29 AMinclude(":kdx")
sksk
08/29/2018, 7:32 AMgildor
08/29/2018, 7:59 AM"artifact"(project(":kdx"))
gildor
08/29/2018, 7:59 AMsksk
08/29/2018, 8:00 AMScript compilation error:
Line 23: "artifact"(project(":kdx"))
^ Expression '"artifact"' of type 'String' cannot be invoked as a function. The function 'invoke()' is not found
1 error
gildor
08/29/2018, 8:00 AMsksk
08/29/2018, 8:00 AMgildor
08/29/2018, 8:01 AMsksk
08/29/2018, 8:03 AMprogram('kdx-sandbox') {
libraries {
artifact project(':kdx'), 'kdx'
artifact project(':platform-windows'), 'platform-windows'
artifact 'libglew'
artifact 'libglfw'
}
i renamed some stuff but project structure is the samesksk
08/29/2018, 8:03 AMgildor
08/29/2018, 8:04 AMproject
functiongildor
08/29/2018, 8:04 AMgildor
08/29/2018, 8:05 AMartifact(project(":kdx"), "kdx")
gildor
08/29/2018, 8:06 AMsksk
08/29/2018, 8:06 AMsksk
08/29/2018, 8:06 AMgildor
08/29/2018, 8:06 AMsksk
08/29/2018, 8:07 AMgildor
08/29/2018, 8:07 AMgildor
08/29/2018, 8:07 AMsksk
08/29/2018, 8:07 AMgildor
08/29/2018, 8:07 AMsksk
08/29/2018, 8:08 AMgildor
08/29/2018, 8:08 AMsksk
08/29/2018, 8:16 AMilya.matveev
08/30/2018, 5:54 AMgildor
08/30/2018, 6:18 AM//build.gradle.kts
plugins {
id("org.jetbrains.kotlin.konan") version ("0.8.2")
}
konanArtifacts {
program("app")
}
No autocomplete or code navigation in build file in CLion 2018.2.2 and Kotlin/Native plugin v182.4129.59
CLion sync project without problem, I see all the tasks and src/main/kotlin marked as source set