-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.gradle
47 lines (41 loc) · 985 Bytes
/
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
plugins {
id 'java'
id 'idea'
id 'jacoco'
id 'com.github.kt3k.coveralls' version '2.8.1'
}
jacocoTestReport {
reports {
xml.enabled = true
html.enabled = true
}
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
// Create a single Jar file with all dependencies
task buildjar(type: Jar) {
manifest {
attributes 'Main-Class': 'common.Main',
'Implementation-Title': 'CodeCarnage'
}
baseName = project.name + '-all'
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}
repositories {
mavenCentral()
}
dependencies {
compile group: 'com.jfoenix', name: 'jfoenix', version: '1.8.0'
compile fileTree(dir: 'src/main/lib', include: '*.jar')
compile 'junit:junit:4.12'
}
sourceSets.main {
java {
srcDir 'src/main/java'
}
resources {
srcDirs = ['src/main/java', 'src/main/resources']
exclude "**/*.java"
}
}