generated from amazon-archives/__template_MIT-0
-
Notifications
You must be signed in to change notification settings - Fork 70
Expand file tree
/
Copy pathbuild.gradle
More file actions
55 lines (45 loc) · 986 Bytes
/
build.gradle
File metadata and controls
55 lines (45 loc) · 986 Bytes
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
plugins {
id "com.github.node-gradle.node" version "7.1.0"
}
apply plugin: 'java'
repositories {
mavenCentral()
}
node {
download = true
version = "18.20.2"
nodeProjectDir = file("${buildDir}/resources/test")
}
task startMockBackend(type: NpmTask) {
args=["start"]
}
task stopMockBackend(type: NpmTask) {
args=["stop"]
}
test {
dependsOn npmInstall
dependsOn startMockBackend
useJUnitPlatform()
finalizedBy stopMockBackend
}
sourceSets {
main {
resources {
srcDir '../test'
}
}
test {
resources {
srcDir '../test'
}
}
}
npmInstall.dependsOn("processTestResources")
dependencies {
implementation 'com.fasterxml.jackson.jr:jackson-jr-objects:2.21.2'
implementation 'software.amazon.spapi:spapi-sdk:1.7.0'
implementation 'org.threeten:threetenbp:1.7.2'
testImplementation 'com.fasterxml.jackson.jr:jackson-jr-all:2.21.2'
testImplementation 'org.junit.jupiter:junit-jupiter:5.14.3'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}