-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
44 lines (36 loc) · 1.1 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
buildscript {
repositories {
mavenCentral()
}
}
apply plugin: 'java'
apply plugin: 'eclipse'
def javaHome = System.properties['java.home']
def mainClassName = 'com.shootoff.diagnostics.Main'
repositories {
mavenCentral()
}
dependencies {
// OSHI to collect HW and system state data
compile group: 'com.github.dblock', name: 'oshi-core', version: '3.+'
// Raven, exception reporting client (requires logback)
compile group: 'com.getsentry.raven', name: 'raven-logback', version: '7.+'
// Logback to enable exception reporting
compile group: 'ch.qos.logback', name: 'logback-core', version: '1.+'
compile group: 'ch.qos.logback', name: 'logback-classic', version: '1.+'
}
jar {
manifest {
attributes 'Main-Class': mainClassName
attributes 'Application-Name': 'ShootOFF-Diagnostics'
attributes 'Created-By': 'ShootOFF'
}
from {
configurations.compile.collect {
it.isDirectory() ? it : zipTree(it)
}
configurations.runtime.collect {
it.isDirectory() ? it : zipTree(it)
}
}
}