numass-framework/numass-main/build.gradle

82 lines
2.3 KiB
Groovy
Raw Normal View History

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
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')
compile "hep.dataforge:dataforge-minuit" //project(':dataforge-stat:dataforge-minuit')
compile "hep.dataforge:grind-terminal" //project(':dataforge-grind:grind-terminal')
2017-11-09 15:09:19 +03:00
compile "hep.dataforge:dataforge-gui"
2018-07-08 21:44:46 +03:00
//compile "hep.dataforge:dataforge-html"
2017-10-23 19:57:40 +03:00
// https://mvnrepository.com/artifact/org.ehcache/ehcache
//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')
}