Hi guys... How to run kodein in tornadofx? Demo pr...
# kodein
n
Hi guys... How to run kodein in tornadofx? Demo projeect doesnt work.. https://github.com/Kodein-Framework/Kodein-Samples/tree/master/di/tornadofx
r
If you have clone the latest version of `kodein-samples`this shouldn't be an issue
running the command `./gradlew ditornadofx:run`is working if you're on JDK8 (with JFX dependencies)
n
really? 🙂
r
Wow ! Sorry, this is a working progress project and I can't push this file right now... 😕 I'll keep you posted
The repo has been updated, you can pull from it. It uses a dev channel for testing deployment
otherwise, you can use the regular channel with jcenter() like
Copy code
plugins {
    kotlin("jvm") version "1.3.41"
}

group = "org.test"
version = "1.0-SNAPSHOT"

repositories {
    mavenCentral()
    jcenter()
}

dependencies {
    implementation(kotlin("stdlib-jdk8"))
    implementation("org.kodein.di:kodein-di-generic-jvm:6.3.3")
}

tasks.withType<KotlinCompile> {
    kotlinOptions.jvmTarget = "1.8"
}
n
)) ok, thanks very much 🙂