2016-05-08 18:46:09 +03:00
|
|
|
apply plugin: 'java'
|
2016-07-10 22:10:42 +03:00
|
|
|
apply plugin: 'c'
|
2016-06-04 14:33:01 +03:00
|
|
|
apply plugin: 'idea'
|
2016-05-08 18:46:09 +03:00
|
|
|
apply plugin: 'application'
|
|
|
|
|
|
|
|
|
|
|
|
mainClassName = "inr.numass.trapping.Trapping"
|
|
|
|
|
|
|
|
group = 'inr.numass'
|
|
|
|
version = 'dev'
|
|
|
|
|
2016-06-09 15:51:41 +03:00
|
|
|
description = "Numass trapping simulation"
|
2016-05-08 18:46:09 +03:00
|
|
|
|
|
|
|
sourceCompatibility = 1.8
|
|
|
|
targetCompatibility = 1.8
|
|
|
|
|
|
|
|
tasks.withType(JavaCompile) {
|
|
|
|
options.encoding = 'UTF-8'
|
|
|
|
}
|
|
|
|
|
2016-07-10 22:10:42 +03:00
|
|
|
tasks.withType(JavaExec) {
|
2016-06-14 16:48:47 +03:00
|
|
|
enableAssertions = true
|
|
|
|
}
|
|
|
|
|
2016-05-08 18:46:09 +03:00
|
|
|
repositories {
|
2016-06-10 23:02:36 +03:00
|
|
|
mavenCentral()
|
2016-05-08 18:46:09 +03:00
|
|
|
}
|
2016-06-09 15:51:41 +03:00
|
|
|
|
2016-05-08 18:46:09 +03:00
|
|
|
dependencies {
|
2016-07-10 22:10:42 +03:00
|
|
|
compile group: 'org.apache.commons', name: 'commons-math3', version: '3.6.1'
|
|
|
|
testCompile group: 'junit', name: 'junit', version: '4.12'
|
2016-05-08 18:46:09 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
task runTrap(type: JavaExec) {
|
2016-07-10 22:10:42 +03:00
|
|
|
classpath = sourceSets.main.runtimeClasspath
|
2016-05-08 18:46:09 +03:00
|
|
|
|
2016-07-10 22:10:42 +03:00
|
|
|
main = mainClassName
|
2016-05-08 18:46:09 +03:00
|
|
|
|
2016-07-10 22:10:42 +03:00
|
|
|
// arguments to pass to the application
|
|
|
|
args 'D:\\Work\\Numass\\trapping\\trap.out'
|
|
|
|
}
|
|
|
|
|
|
|
|
// native component
|
|
|
|
|
|
|
|
model {
|
|
|
|
components {
|
|
|
|
scatter(NativeLibrarySpec)
|
|
|
|
}
|
|
|
|
toolChains {
|
2016-07-14 16:41:15 +03:00
|
|
|
visualCpp(VisualCpp) {
|
|
|
|
// Specify the installDir if Visual Studio cannot be located
|
|
|
|
// installDir "C:/Apps/Microsoft Visual Studio 10.0"
|
|
|
|
installDir "C:\\Program Files (x86)\\Microsoft Visual Studio 12.0"
|
|
|
|
}
|
2016-07-10 22:10:42 +03:00
|
|
|
gcc(Gcc) {
|
|
|
|
// Uncomment to use a GCC install that is not in the PATH
|
|
|
|
// path "/usr/bin/gcc"
|
|
|
|
}
|
2016-07-14 16:41:15 +03:00
|
|
|
|
2016-07-10 22:10:42 +03:00
|
|
|
}
|
2016-05-08 18:46:09 +03:00
|
|
|
}
|