-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
52 lines (43 loc) · 1.17 KB
/
build.gradle
File metadata and controls
52 lines (43 loc) · 1.17 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
group 'edu.kit.ipd.dbis'
version '0.0.1-SNAPSHOT'
// Allows to build JAR. Implicitly applies the 'java' plugin
apply plugin: 'application'
apply plugin: 'pmd'
// Java version
sourceCompatibility = 1.8
targetCompatibility = 1.8
// Access variables defined below by using $variableName
mainClassName = 'edu.kit.ipd.dbis.Main'
// Gradle searches here for dependencies
// JCenter is a superset of MavenCentral
repositories {
jcenter()
}
dependencies {
compile group: 'mysql', name: 'mysql-connector-java', version: '5.1.45'
compile group: 'org.jgrapht', name: 'jgrapht-core', version: '1.1.0'
testCompile group: 'junit', name: 'junit', version: '4.12'
testCompile 'org.mockito:mockito-core:1.+'
}
// Configuration of the java jar plugin.
jar {
manifest {
attributes 'Main-Class': "$mainClassName"
}
}
pmd {
ignoreFailures = true
}
// Build a single jar file with all the dependencies
task fullJar(type: Jar) {
manifest {
attributes 'Main-Class': "$mainClassName"
}
baseName = project.name + '-all'
from {
configurations.compile.collect {
it.isDirectory() ? it : zipTree(it)
}
}
with jar
}