group 'control.server'
version '1.0-SNAPSHOT'

buildscript {
    ext.kotlin_version = '1.1.1'

    repositories {
        mavenLocal()
        mavenCentral()
        maven { url 'https://jitpack.io' }
    }
    dependencies {
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
    }
}

apply plugin: 'java'
apply plugin: 'kotlin'
apply plugin: 'idea'

sourceCompatibility = 1.8
targetCompatibility = 1.8

repositories {
    mavenLocal()
    mavenCentral()
    maven { url 'https://jitpack.io' }
}

apply plugin: 'application'
mainClassName = 'func.app.CSFuncApp'

//mainClassName = 'func.gui.fragments.shit.RestartDemoApp'
//mainClassName = 'func.test.InstrumentsApp'
//mainClassName = 'zebra.controlserver.study.StudyApp'

dependencies {
    //TornadoFX dependencies
    //compile 'no.tornado:tornadofx:1.7.0'

    compile 'org.controlsfx:controlsfx:8.40.12'

    //sqlite and RxJava-JDBC dependencies
    compile 'org.xerial:sqlite-jdbc:3.8.11.2'
    compile 'com.github.davidmoten:rxjava-jdbc:0.7.4'
    compile 'org.slf4j:slf4j-simple:1.7.21'

    //RxKotlin and RxKotlinFX dependencies
    compile 'com.github.thomasnield:rxkotlinfx:0.2.0'
    compile 'io.reactivex:rxkotlin:1.0.+'
    compile 'com.github.edvin:tornadofx:-SNAPSHOT'


    testCompile 'io.kotlintest:kotlintest:1.3.2'
    testCompile 'junit:junit:4.12'
}


compileKotlin {
    kotlinOptions{
        jvmTarget = "1.8"
    }
}

compileTestKotlin {
    kotlinOptions{
        jvmTarget = "1.8"
    }
}

