2017-09-21 20:13:05 +03:00
|
|
|
plugins {
|
|
|
|
id 'groovy'
|
|
|
|
id 'application'
|
|
|
|
}
|
|
|
|
|
|
|
|
apply plugin: 'kotlin'
|
2015-12-18 16:20:47 +03:00
|
|
|
|
2019-02-11 17:03:45 +03:00
|
|
|
//apply plugin: 'org.openjfx.javafxplugin'
|
|
|
|
//
|
|
|
|
//javafx{
|
|
|
|
// modules = [ 'javafx.controls']
|
|
|
|
//}
|
|
|
|
|
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 {
|
2018-11-17 22:27:12 +03:00
|
|
|
compile group: 'commons-cli', name: 'commons-cli', version: '1.+'
|
|
|
|
compile group: 'commons-io', name: 'commons-io', version: '2.+'
|
|
|
|
compile project(':numass-core')
|
|
|
|
compile "hep.dataforge:dataforge-minuit" //project(':dataforge-stat:dataforge-minuit')
|
|
|
|
compile "hep.dataforge:grind-terminal" //project(':dataforge-grind:grind-terminal')
|
|
|
|
compile "hep.dataforge:dataforge-gui"
|
|
|
|
//compile "hep.dataforge:dataforge-html"
|
2017-10-23 19:57:40 +03:00
|
|
|
|
|
|
|
// https://mvnrepository.com/artifact/org.ehcache/ehcache
|
2018-11-17 22:27:12 +03:00
|
|
|
//compile group: 'org.ehcache', name: 'ehcache', version: '3.4.0'
|
2017-10-23 19:57:40 +03:00
|
|
|
|
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
|
|
|
}
|
|
|
|
|
2017-12-21 16:12:20 +03:00
|
|
|
task scanTreeStartScript(type: CreateStartScripts, dependsOn: installDist) {
|
|
|
|
applicationName = 'scanTree'
|
|
|
|
classpath = fileTree('build/install/numass-main/lib')
|
|
|
|
mainClassName = 'inr.numass.scripts.ScanTreeKt'
|
|
|
|
outputDir = file('build/install/numass-main/bin')
|
|
|
|
}
|