-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
88 lines (73 loc) · 2.48 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
/*
* This is a Gradle build file:
* - Gradle Homepage: http://gradle.org/
* - Gradle Documentation: http://gradle.org/documentation
* - View tasks for this project: $ gradlew tasks
*/
apply plugin: 'java'
apply plugin: 'project-report'
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'checkstyle'
/*
* To update the Gradle Wrapper:
* 1. Uncomment 'wrapper' task
* 2. Change 'gradleVersion'
* 3. Run "gradlew wrapper"
* 4. Comment 'wrapper' task
*/
//task wrapper(type: Wrapper) {
// gradleVersion = '1.10'
//}
repositories {
mavenCentral()
}
/* Java -------------------------------------------------------------------- */
sourceCompatibility = 1.6
configurations {
devCompile.extendsFrom compile
}
dependencies {
compile group: 'java3d', name: 'vecmath', version: '1.3.1'
compile fileTree(dir: 'lib', include: 'LeapJava.jar')
compile group: 'org.slf4j', name: 'slf4j-api', version: '1.6.4'
compile group: 'ch.qos.logback', name: 'logback-classic', version: '1.0.6'
devCompile sourceSets.main.output
testCompile group: 'junit', name: 'junit', version: '4.10'
}
jar {
archiveName = 'jitter.jar'
manifest {
attributes("Class-Path" : 'lib/LeapJava.jar', "Implementation-Title": "Jitter")
}
}
/* Check ------------------------------------------------------------------- */
checkstyle.ignoreFailures = true
checkstyle.configProperties.samedir = checkstyle.configFile.parentFile
/* Optional check plugins
apply plugin: 'codenarc'
apply plugin: 'findbugs'
apply plugin: 'pmd'
// ignoreFailures: Whether or not this task will ignore failures and continue running the build.
codenarc.ignoreFailures = true
findbugs.ignoreFailures = true
pmd.ignoreFailures = true
*/
/* IDE --------------------------------------------------------------------- */
// Hook for parent projects that may embed Jitter - in that case parent will be responsible for IntelliJ setup
if (project.getParent() != null) {
println "Project parent isn't null! Must be embedded within a parent project, not setting up IntelliJ"
} else {
println "Project parent is null! Must not be embedded within a parent project, setting up IntelliJ"
// Sets an IntelliJ project JDK and makes Git the VCS of choice
idea {
project {
jdkName = '1.6'
ipr {
withXml { provider ->
provider.node.component.find { it.@name == 'VcsDirectoryMappings' }.mapping.@vcs = 'Git'
}
}
}
}
}