2016-09-28 17:04:18 +03:00
|
|
|
apply plugin: 'application'
|
2017-10-15 22:49:04 +03:00
|
|
|
apply plugin: 'kotlin'
|
2016-09-28 17:04:18 +03:00
|
|
|
|
|
|
|
if (!hasProperty('mainClass')) {
|
2017-05-28 11:31:49 +03:00
|
|
|
ext.mainClass = 'inr.numass.control.cryotemp.PKT8App'
|
2016-09-28 17:04:18 +03:00
|
|
|
}
|
|
|
|
mainClassName = mainClass
|
|
|
|
|
2017-05-15 22:16:59 +03:00
|
|
|
version = "0.2.0";
|
2016-10-14 16:31:21 +03:00
|
|
|
|
2016-09-28 17:04:18 +03:00
|
|
|
//mainClassName = "inr.numass.readvac.Main"
|
|
|
|
|
|
|
|
dependencies {
|
2016-10-22 09:40:25 +03:00
|
|
|
compile project(':numass-control')
|
2017-10-15 22:49:04 +03:00
|
|
|
compile "org.jetbrains.kotlin:kotlin-stdlib-jre8:$kotlin_version"
|
2016-09-29 13:52:24 +03:00
|
|
|
}
|
|
|
|
|
2017-06-08 08:19:08 +03:00
|
|
|
task testDevice(dependsOn: classes, type: JavaExec) {
|
2016-09-29 13:52:24 +03:00
|
|
|
main mainClass
|
2017-06-08 08:19:08 +03:00
|
|
|
args = ["--config.resource=/config-test/devices.xml"]
|
2016-09-29 13:52:24 +03:00
|
|
|
classpath = sourceSets.main.runtimeClasspath
|
|
|
|
description "Start application in debug mode with default virtual port"
|
2017-06-08 08:19:08 +03:00
|
|
|
group "test"
|
2016-10-07 14:19:01 +03:00
|
|
|
}
|
2017-10-15 22:49:04 +03:00
|
|
|
buildscript {
|
2017-11-14 21:14:15 +03:00
|
|
|
ext.kotlin_version = '1.1.60'
|
2017-10-15 22:49:04 +03:00
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
dependencies {
|
|
|
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
compileKotlin {
|
|
|
|
kotlinOptions {
|
|
|
|
jvmTarget = "1.8"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
compileTestKotlin {
|
|
|
|
kotlinOptions {
|
|
|
|
jvmTarget = "1.8"
|
|
|
|
}
|
|
|
|
}
|
2016-10-07 14:19:01 +03:00
|
|
|
|
2017-06-08 08:19:08 +03:00
|
|
|
//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"
|
|
|
|
//}
|