-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
49 lines (38 loc) · 989 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
apply plugin: 'war'
apply plugin: 'eclipse'
apply plugin: 'java'
apply plugin: 'application'
repositories {
jcenter()
}
sourceSets {
main {
java {
srcDirs = ['src/main']
}
}
test {
java {
srcDirs = ['src/test']
}
}
}
application {
mainClassName = 'com.move.exercise.Main'
}
task copyTestResources(type: Copy) {
from "${projectDir}/src/main"
into "${buildDir}/classes/main"
}
processTestResources.dependsOn copyTestResources
dependencies {
compile 'org.eclipse.jetty:jetty-server:9.4.3.v20170317'
compile 'org.eclipse.jetty:jetty-servlet:9.4.3.v20170317'
compile 'com.google.code.gson:gson:2.8.2'
testCompile group: 'org.junit.jupiter', name: 'junit-jupiter', version: '5.6.0'
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter', version: '5.6.0'
testRuntimeOnly "org.junit.platform:junit-platform-commons:1.7.0"
}
test {
useJUnitPlatform()
}