54 lines
1.3 KiB
Groovy
54 lines
1.3 KiB
Groovy
apply plugin: 'application'
|
|
apply plugin: 'kotlin'
|
|
|
|
if (!hasProperty('mainClass')) {
|
|
ext.mainClass = 'inr.numass.control.cryotemp.PKT8App'
|
|
}
|
|
mainClassName = mainClass
|
|
|
|
version = "0.2.0";
|
|
|
|
//mainClassName = "inr.numass.readvac.Main"
|
|
|
|
dependencies {
|
|
compile project(':numass-control')
|
|
compile "org.jetbrains.kotlin:kotlin-stdlib-jre8:$kotlin_version"
|
|
}
|
|
|
|
task testDevice(dependsOn: classes, type: JavaExec) {
|
|
main mainClass
|
|
args = ["--config.resource=/config-test/devices.xml"]
|
|
classpath = sourceSets.main.runtimeClasspath
|
|
description "Start application in debug mode with default virtual port"
|
|
group "test"
|
|
}
|
|
buildscript {
|
|
ext.kotlin_version = '1.1.51'
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
dependencies {
|
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
|
}
|
|
}
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
compileKotlin {
|
|
kotlinOptions {
|
|
jvmTarget = "1.8"
|
|
}
|
|
}
|
|
compileTestKotlin {
|
|
kotlinOptions {
|
|
jvmTarget = "1.8"
|
|
}
|
|
}
|
|
|
|
//task testRun(dependsOn: classes, type: JavaExec) {
|
|
// main mainClass
|
|
// args = ["--config=D:/temp/test/numass-devices.xml", "--device=thermo-1"]
|
|
// classpath = sourceSets.main.runtimeClasspath
|
|
// description "Start application using real device"
|
|
// group "debug"
|
|
//} |