-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
71 lines (56 loc) · 1.9 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
plugins {
id "com.github.node-gradle.node" version "3.3.0"
id 'java'
}
repositories {
mavenCentral()
maven { url 'https://s01.oss.sonatype.org/content/repositories/releases' }
maven { url 'https://s01.oss.sonatype.org/content/repositories/snapshots/' }
maven { url 'https://repo.spring.io/milestone' }
}
ext {
springContext = '6.0.3'
pf4j = '3.8.0'
lombok = '1.18.24'
libFile = 'lib/api-0.18.2.jar'
}
dependencies {
compileOnly "org.springframework:spring-context:$springContext"
compileOnly "org.pf4j:pf4j:$pf4j"
compileOnly "io.projectreactor:reactor-core:3.5.1"
compileOnly "org.springframework:spring-webflux:6.0.3"
compileOnly "org.springdoc:springdoc-openapi-starter-webflux-api:2.0.2"
compileOnly files(libFile)
testRuntimeOnly files(libFile)
testRuntimeOnly "org.springframework:spring-context:$springContext"
testRuntimeOnly "org.pf4j:pf4j:$pf4j"
testRuntimeOnly "io.projectreactor:reactor-core:3.5.1"
testRuntimeOnly "org.springframework:spring-webflux:6.0.3"
testRuntimeOnly "org.springdoc:springdoc-openapi-starter-webflux-api:2.0.2"
// lombok
compileOnly "org.projectlombok:lombok:$lombok"
testCompileOnly "org.projectlombok:lombok:$lombok"
annotationProcessor "org.projectlombok:lombok:$lombok"
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.1'
testImplementation 'org.assertj:assertj-core:3.24.2'
}
test {
useJUnitPlatform()
}
node {
nodeProjectDir = file("${project.projectDir}/console")
}
task buildFrontend(type: NpxTask) {
command = 'pnpm'
args = ['build']
}
task pnpmInstall(type: NpxTask) {
command = "pnpm"
args = ["install"]
}
build {
// build frontend before build
tasks.getByName('compileJava').dependsOn('buildFrontend')
tasks.getByName("buildFrontend").dependsOn("pnpmInstall")
}