56 lines
1.0 KiB
Groovy
56 lines
1.0 KiB
Groovy
apply plugin: 'java'
|
|
apply plugin: 'c'
|
|
apply plugin: 'idea'
|
|
apply plugin: 'application'
|
|
|
|
|
|
mainClassName = "inr.numass.trapping.Trapping"
|
|
|
|
group = 'inr.numass'
|
|
version = 'dev'
|
|
|
|
description = "Numass trapping simulation"
|
|
|
|
sourceCompatibility = 1.8
|
|
targetCompatibility = 1.8
|
|
|
|
tasks.withType(JavaCompile) {
|
|
options.encoding = 'UTF-8'
|
|
}
|
|
|
|
tasks.withType(JavaExec) {
|
|
enableAssertions = true
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
compile group: 'org.apache.commons', name: 'commons-math3', version: '3.6.1'
|
|
testCompile group: 'junit', name: 'junit', version: '4.12'
|
|
}
|
|
|
|
task runTrap(type: JavaExec) {
|
|
classpath = sourceSets.main.runtimeClasspath
|
|
|
|
main = mainClassName
|
|
|
|
// arguments to pass to the application
|
|
args 'D:\\Work\\Numass\\trapping\\trap.out'
|
|
}
|
|
|
|
// native component
|
|
|
|
model {
|
|
components {
|
|
scatter(NativeLibrarySpec)
|
|
}
|
|
toolChains {
|
|
gcc(Gcc) {
|
|
// Uncomment to use a GCC install that is not in the PATH
|
|
// path "/usr/bin/gcc"
|
|
}
|
|
}
|
|
}
|