numass-framework/numass-main/build.gradle
2017-12-21 16:12:20 +03:00

82 lines
2.3 KiB
Groovy

plugins {
id 'groovy'
id 'application'
}
apply plugin: 'kotlin'
//if (!hasProperty('mainClass')) {
// ext.mainClass = 'inr.numass.LaunchGrindShell'
//}
mainClassName = 'inr.numass.LaunchGrindShell'
description = "Main numass project"
compileKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}
compileTestKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}
compileGroovy.dependsOn(compileKotlin)
compileGroovy.classpath += files(compileKotlin.destinationDir)
dependencies {
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:kmath"
compile "hep.dataforge:dataforge-gui"
// https://mvnrepository.com/artifact/org.ehcache/ehcache
compile group: 'org.ehcache', name: 'ehcache', version: '3.4.0'
}
task repl(dependsOn: classes, type: JavaExec) {
group "numass"
main 'inr.numass.LaunchGrindShell'
classpath = sourceSets.main.runtimeClasspath
description "Start Grind repl"
standardInput = System.in
standardOutput = System.out
if (project.hasProperty("cmd")) {
args = cmd.split().toList()
}
}
task grindTask(dependsOn: classes, type: JavaExec) {
group "numass"
main 'inr.numass.RunTask'
classpath = sourceSets.main.runtimeClasspath
description "Run a task in a numass workspace"
standardInput = System.in
standardOutput = System.out
}
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) {
group "numass"
main 'inr.numass.scripts.underflow.Underflow'
classpath = sourceSets.main.runtimeClasspath
}
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')
}