-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
72 lines (64 loc) · 2.25 KB
/
build.gradle
File metadata and controls
72 lines (64 loc) · 2.25 KB
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
apply plugin: 'java'
apply plugin: 'eclipse'
project.ext.lwjglVersion = "3.1.5"
project.ext.natives = "natives-linux"
repositories {
mavenCentral()
}
test {
testLogging{
showStandardStreams = true
testLogging.exceptionFormat = 'full'
}
}
dependencies {
compile "org.lwjgl:lwjgl:${lwjglVersion}"
compile "org.lwjgl:lwjgl-glfw:${lwjglVersion}"
compile "org.lwjgl:lwjgl-opengl:${lwjglVersion}"
compile "org.joml:joml:1.9.6"
compile "org.lwjgl:lwjgl:${lwjglVersion}:${natives}"
compile "org.lwjgl:lwjgl-glfw:${lwjglVersion}:${natives}"
compile "org.lwjgl:lwjgl-opengl:${lwjglVersion}:${natives}"
compile "org.ejml:ejml-dsparse:0.32"
compile "org.ejml:ejml-simple:0.32"
/* compile "org.ojalgo:ojalgo:44.0.0" */
compile "junit:junit:4.12"
compile "org.apache.logging.log4j:log4j-core:2.10.0"
compile "org.apache.logging.log4j:log4j-api:2.10.0"
}
task runApp(type: JavaExec) {
dependsOn classes
dependsOn eclipseClasspath
jvmArgs "-Dorg.lwjgl.util.DebugLoader=true", "-ea"
classpath sourceSets.main.runtimeClasspath
main = 'main.Main'
/*println(commandLine)*/
/*File f = file(".classpath")
f.write((sourceSets.main.runtimeClasspath
+ configurations.testCompile).asPath)*/
}
jar {
from {
(configurations.runtime).collect {
it.isDirectory() ? it : zipTree(it)
}
}
manifest {
attributes("Main-Class": "main.Main" )
}
}
test {
filter {
/* includeTestsMatching "physics.CellGridTests.fourOnFourStretching" */
/*includeTestsMatching "physics.CellGridTests.slurp"*/
/* includeTestsMatching "physics.TwoCellTests.beamOscillationRotation" */
/* includeTestsMatching "physics.TwoCellTests.dampedSymmetricRotationOscillation" */
/*includeTestsMatching "physics.TwoCellTests.dampedAbsoluteRotation"*/
/* includeTestsMatching "physics.TwoCellTests.symmetricRotationOscillation" */
/* includeTestsMatching "physics.TwoCellTests.*" */
/* includeTestsMatching "physics.TwoCellTests.testotesto" */
/* includeTestsMatching "physics.TwoCellTests.basicRotation" */
/* includeTestsMatching "physics.CellGridTests.*" */
includeTestsMatching "*"
}
}