azeDevs
03/22/2019, 8:55 PMbuild.gradle
looks like this: plugins {
id "kotlin-multiplatform" version "1.3.21"
}
repositories {
mavenCentral()
}
kotlin {
mingwX64("mingw") {
compilations.main {
outputKinds("executable")
entryPoint "classes.main"
}
}
sourceSets {
mingwMain {
dependencies {
implementation fileTree(include: ['*.klib'], dir: 'libs')
}
}
mingwTest {}
}
}
task runProgram {
println("getLibsDirName = "+getLibsDirName())
def buildType = "RELEASE" // Change to 'DEBUG' to run application with debug symbols.
dependsOn kotlin.targets.mingw.compilations.main.linkTaskName("EXECUTABLE", buildType)
doLast {
def programFile = kotlin.targets.mingw.compilations.main.getBinary("EXECUTABLE", buildType)
exec {
executable programFile
args ""
}
}
}
and my settings.gradle
looks like this: pluginManagement {
resolutionStrategy {
eachPlugin {
if (requested.id.id == "kotlin-multiplatform") {
useModule("org.jetbrains.kotlin:kotlin-gradle-plugin:${requested.version}")
}
}
}
}
rootProject.name = 'gearNet'
includeBuild './src/libs'
Any advice on how to get my project to recognize and implement ./src/libs/kwinhelp.klib
within my project? Any advice or even a direction on where to look for an answer is very much appreciated.Dominaezzz
03/22/2019, 9:04 PM./src/libs/kwinhelp.klib
created from another local multiplatform project?azeDevs
03/22/2019, 9:09 PMlibs/kwinhelp.klib
was committed to the project by a collaborator.Dominaezzz
03/22/2019, 9:14 PMDominaezzz
03/22/2019, 9:16 PMazeDevs
03/22/2019, 9:19 PMDominaezzz
03/22/2019, 9:22 PMimplementation files('src/libs/kwinhelp.klib')
?Dominaezzz
03/22/2019, 9:23 PMExternal Libraries
drop down?azeDevs
03/22/2019, 9:30 PMimplementation files('src/libs/kwinhelp.klib')
did the trick for a majority of the imports! I think I need to add a JVM as a dependency too though for the last few. Any advice on how I might add that too?Dominaezzz
03/22/2019, 9:32 PMazeDevs
03/22/2019, 9:32 PMazeDevs
03/22/2019, 9:34 PMjava.nio.ByteBuffer
Dominaezzz
03/22/2019, 9:35 PMkotlin
block,
jvm()
sourceSets {
jvmMain {
dependencies {
.....
}
}
}
Dominaezzz
03/22/2019, 9:35 PMDominaezzz
03/22/2019, 9:36 PMazeDevs
03/22/2019, 9:43 PM