forked from santa-dev/santa-sim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
52 lines (41 loc) · 1.25 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
// Build file for use with the 'gradle' build and dependency management tool.
//
// There is also a separate build script for use by ant/ivy in build.xml and ivy.xml.
// Those scripts are not shared with this build configuation.
//
// To build build/lib/santa.jar,
// $ gradle build
//
// All dependencies and products are dropped into the 'build/lib/' directory.
//
// To run the Main function in santa.jar,
// $ java -cp 'build/lib/*' santa.simulator.SimulatorMain -replicates=1 -population=100 -samplesize=5 -generations=100 examples/indel_test.xml
//
apply plugin: 'application'
apply plugin: "eclipse"
distTar { enabled = false }
distZip { enabled = false }
mainClassName = "santa.simulator.SimulatorMain"
libsDirName = 'lib'
repositories {
mavenCentral()
}
repositories {
flatDir {
dirs 'lib'
}
}
dependencies {
compile 'org.apache.commons:commons-math3:3.6'
compile 'org.apache.commons:commons-lang3:3.4'
compile name: 'jdom'
compile name: 'jebl-0.3'
}
// copy dependencies to local directory
// http://stackoverflow.com/a/19385971/1135316
task copyToLib(type: Copy) {
into "$buildDir/lib"
from configurations.runtime
}
build.dependsOn copyToLib
sourceSets.main.java.srcDirs = ['src']