2017-09-21 20:13:05 +03:00
|
|
|
plugins {
|
|
|
|
id 'groovy'
|
|
|
|
id 'application'
|
|
|
|
}
|
|
|
|
|
|
|
|
apply plugin: 'kotlin'
|
2015-12-18 16:20:47 +03:00
|
|
|
|
2017-04-11 17:01:34 +03:00
|
|
|
//if (!hasProperty('mainClass')) {
|
|
|
|
// ext.mainClass = 'inr.numass.LaunchGrindShell'
|
|
|
|
//}
|
2017-04-13 17:06:41 +03:00
|
|
|
mainClassName = 'inr.numass.LaunchGrindShell'
|
2015-12-18 16:20:47 +03:00
|
|
|
|
2016-09-15 22:09:21 +03:00
|
|
|
description = "Main numass project"
|
2015-12-18 16:20:47 +03:00
|
|
|
|
2017-09-21 20:13:05 +03:00
|
|
|
compileKotlin {
|
|
|
|
kotlinOptions {
|
|
|
|
jvmTarget = "1.8"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
compileTestKotlin {
|
|
|
|
kotlinOptions {
|
|
|
|
jvmTarget = "1.8"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-10-09 16:52:44 +03:00
|
|
|
compileGroovy.dependsOn(compileKotlin)
|
|
|
|
compileGroovy.classpath += files(compileKotlin.destinationDir)
|
|
|
|
|
2015-12-18 16:20:47 +03:00
|
|
|
dependencies {
|
2016-09-04 19:40:36 +03:00
|
|
|
compile group: 'commons-cli', name: 'commons-cli', version: '1.+'
|
|
|
|
compile group: 'commons-io', name: 'commons-io', version: '2.+'
|
2017-04-15 22:15:53 +03:00
|
|
|
compile project(':numass-core')
|
2017-04-05 22:07:43 +03:00
|
|
|
compile "hep.dataforge:dataforge-minuit" //project(':dataforge-stat:dataforge-minuit')
|
|
|
|
compile "hep.dataforge:grind-terminal" //project(':dataforge-grind:grind-terminal')
|
2017-09-21 20:13:05 +03:00
|
|
|
compile "hep.dataforge:kmath"
|
2017-10-13 10:04:03 +03:00
|
|
|
compile "hep.dataforge:kodex-fx"
|
2015-12-18 16:20:47 +03:00
|
|
|
}
|
|
|
|
|
2016-08-29 16:38:11 +03:00
|
|
|
task repl(dependsOn: classes, type: JavaExec) {
|
2017-04-11 17:01:34 +03:00
|
|
|
group "numass"
|
2016-08-29 16:38:11 +03:00
|
|
|
main 'inr.numass.LaunchGrindShell'
|
|
|
|
classpath = sourceSets.main.runtimeClasspath
|
|
|
|
description "Start Grind repl"
|
|
|
|
standardInput = System.in
|
|
|
|
standardOutput = System.out
|
2017-04-11 17:01:34 +03:00
|
|
|
if (project.hasProperty("cmd")) {
|
|
|
|
args = cmd.split().toList()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-09-16 10:11:51 +03:00
|
|
|
task grindTask(dependsOn: classes, type: JavaExec) {
|
2017-04-18 11:28:25 +03:00
|
|
|
group "numass"
|
|
|
|
main 'inr.numass.RunTask'
|
|
|
|
classpath = sourceSets.main.runtimeClasspath
|
|
|
|
description "Run a task in a numass workspace"
|
|
|
|
standardInput = System.in
|
|
|
|
standardOutput = System.out
|
|
|
|
}
|
|
|
|
|
2017-04-11 17:01:34 +03:00
|
|
|
task simulate(dependsOn: classes, type: JavaExec) {
|
|
|
|
group "numass"
|
|
|
|
main 'inr.numass.scripts.Simulate'
|
|
|
|
classpath = sourceSets.main.runtimeClasspath
|
|
|
|
description "Simulate spectrum"
|
|
|
|
}
|
|
|
|
|
|
|
|
task underflow(dependsOn: classes, type: JavaExec) {
|
2016-08-29 16:38:11 +03:00
|
|
|
group "numass"
|
2017-07-31 22:12:57 +03:00
|
|
|
main 'inr.numass.scripts.underflow.Underflow'
|
2017-04-11 17:01:34 +03:00
|
|
|
classpath = sourceSets.main.runtimeClasspath
|
2017-09-16 10:11:51 +03:00
|
|
|
}
|
|
|
|
|