Skip to content

Commit 4eb14dc

Browse files
committed
adding the gradle script
1 parent 2074a71 commit 4eb14dc

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

build.gradle

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
apply plugin: 'java'
2+
3+
sourceCompatibility = '1.7'
4+
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
5+
6+
//apply from: 'http://gradle-plugins.mihosoft.eu/latest/vlicenseheader.gradle'
7+
//repairHeaders.licenseHeaderText = new File(projectDir,'./license-template.txt')
8+
9+
task wrapper(type: Wrapper, description: 'Creates and deploys the Gradle wrapper to the current directory.') {
10+
gradleVersion = '1.11'
11+
}
12+
13+
applicationDefaultJvmArgs = ["-Xss515m"]
14+
15+
repositories {
16+
mavenCentral()
17+
}
18+
19+
20+
dependencies {
21+
22+
testCompile group: 'junit', name: 'junit', version: '4.+'
23+
24+
compile group: 'java3d', name: 'vecmath', version: '1.3.1'
25+
compile 'org.slf4j:slf4j-simple:1.6.1'
26+
//compile group: 'java3d', name: 'vecmath', version: '1.3.1' , classifier: "javadoc"
27+
}
28+
29+
// create a fat-jar (class files plus dependencies
30+
// excludes VRL.jar (plugin jar files must not start with 'vrl-\\d+')
31+
jar {
32+
33+
// dependencies except VRL
34+
from configurations.runtime.asFileTree.
35+
filter({file->return !file.name.startsWith("vrl-0")}).
36+
files.collect { zipTree(it) }
37+
38+
// project class files compiled from source
39+
from files(sourceSets.main.output.classesDir)
40+
41+
}

0 commit comments

Comments
 (0)