-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
42 lines (36 loc) · 1.09 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
plugins {
id 'java'
}
group = 'lucasjc'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '11'
repositories {
mavenCentral()
}
dependencies {
implementation 'org.eclipse.jetty:jetty-server:9.4.19.v20190610'
implementation 'org.eclipse.jetty:jetty-servlet:9.4.19.v20190610'
implementation 'org.eclipse.jetty:jetty-servlets:9.4.19.v20190610'
implementation 'org.eclipse.jetty.websocket:websocket-server:9.4.19.v20190610'
implementation 'io.socket:socket.io-server:3.0.1'
implementation 'io.socket:engine.io-server-jetty:4.0.3'
implementation 'ch.qos.logback:logback-classic:1.2.3'
implementation 'org.apache.commons:commons-lang3:3.11'
implementation 'com.google.code.gson:gson:2.8.6'
testImplementation(platform('org.junit:junit-bom:5.7.1'))
testImplementation('org.junit.jupiter:junit-jupiter')
}
jar {
// copy dependencies to generated jar
from { configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
// indicate main class
manifest {
attributes 'Main-Class': 'lucasjc.Main'
}
}
test {
useJUnitPlatform()
testLogging {
events "passed", "skipped", "failed"
}
}