generated from ikaros-dev/plugin-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
75 lines (61 loc) · 2.22 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
75
plugins {
id "com.github.node-gradle.node" version "3.3.0"
id 'java'
id 'java-library'
}
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'
coreLibJar = 'lib/api-0.15.3.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 'jakarta.annotation:jakarta.annotation-api:2.1.1'
compileOnly 'org.springframework.retry:spring-retry:2.0.2'
compileOnly files(coreLibJar)
testImplementation "org.springframework:spring-context:$springContext"
testImplementation "org.pf4j:pf4j:$pf4j"
testImplementation "io.projectreactor:reactor-core:3.5.1"
testImplementation "org.springframework:spring-webflux:6.0.3"
testImplementation "org.springdoc:springdoc-openapi-starter-webflux-api:2.0.2"
testImplementation 'jakarta.annotation:jakarta.annotation-api:2.1.1'
testImplementation 'org.springframework.retry:spring-retry:2.0.2'
testImplementation files(coreLibJar)
// 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")
}