Grind fixes

This commit is contained in:
Alexander Nozik 2018-07-15 20:34:21 +03:00
parent d6b93d67e5
commit cce0372cf8
3 changed files with 5 additions and 3 deletions

View File

@ -41,6 +41,7 @@ allprojects {
compileKotlin {
kotlinOptions {
freeCompilerArgs = ['-Xjvm-default=enable']
jvmTarget = "1.8"
javaParameters = true
}
@ -48,7 +49,7 @@ allprojects {
compileTestKotlin {
kotlinOptions {
freeCompilerArgs = ['-Xenable-jvm-default']
freeCompilerArgs = ['-Xjvm-default=enable']
jvmTarget = "1.8"
javaParameters = true
}

View File

@ -2,6 +2,7 @@ package inr.numass
import hep.dataforge.context.Global
import hep.dataforge.grind.terminal.GrindTerminal
import hep.dataforge.grind.workspace.GrindWorkspace
import hep.dataforge.workspace.FileBasedWorkspace
import hep.dataforge.workspace.Workspace
@ -23,7 +24,7 @@ try {
GrindTerminal.system().launch {
if (cfgPath) {
Workspace numass = FileBasedWorkspace.build(context, new File(cfgPath as String).toPath())
bind("numass", numass)
bind("numass", new GrindWorkspace(numass))
} else {
println "No configuration path. Provide path via --config option"
}

View File

@ -43,7 +43,7 @@ import org.apache.commons.math3.util.FastMath
@PluginDef(
group = "inr.numass",
name = "numass",
dependsOn = arrayOf("hep.dataforge:functions", "hep.dataforge:MINUIT", "hep.dataforge:actions"),
dependsOn = ["hep.dataforge:functions", "hep.dataforge:MINUIT", "hep.dataforge:actions"],
support = false,
info = "Numass data analysis tools"
)