-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
74 lines (60 loc) · 1.89 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
buildscript {
ext {
springBootVersion = '1.5.15.RELEASE'
}
repositories {
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
}
}
apply plugin: 'java'
apply plugin:'application'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
apply plugin: 'build-announcements'
apply plugin: 'maven'
mainClassName = "se.voipbusiness.core.MonitorApp"
sourceCompatibility = 1.8
targetCompatibility = 1.8
version = '1.0'
repositories {
mavenCentral()
}
dependencies {
compile('org.springframework.boot:spring-boot-starter-web'){
exclude module: 'spring-boot-starter-logging'
}
compile("org.springframework.boot:spring-boot-starter-websocket")
testCompile group: 'junit', name: 'junit', version: '4.11'
compile 'com.eclipsesource.minimal-json:minimal-json:0.9.1'
compile 'org.java-websocket:Java-WebSocket:1.3.0'
compile 'org.mapdb:mapdb:1.0.7'
compile 'org.quartz-scheduler:quartz:2.2.1'
compile 'org.slf4j:slf4j-api:1.7.12'
compile 'commons-io:commons-io:2.4'
compile 'org.apache.logging.log4j:log4j-api:2.5'
compile 'org.apache.logging.log4j:log4j-core:2.5'
}
jar {
manifest {
attributes("Implementation-Title": "Application Monitor",
"Implementation-Version": 1.0,
'Main-Class': 'se.voipbusiness.core.MonitorApp')
}
}
run {
systemProperties System.getProperties()
}
//create a single Jar with all dependencies
task fatJar(type: Jar) {
manifest {
attributes("Implementation-Title": "Application Monitor",
"Implementation-Version": 1.0,
'Main-Class': 'se.voipbusiness.core.MonitorApp')
}
baseName = project.name + '-all'
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}