Skip to content

Commit 0004ebd

Browse files
committed
Update build tasks
Signed-off-by: Ryan Wang <i@ryanc.cc>
1 parent a6d618e commit 0004ebd

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

build.gradle

+9-6
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,20 @@ node {
3131
nodeProjectDir = file("${project.projectDir}")
3232
}
3333

34-
tasks.register('installDepsForUI', PnpmTask) {
35-
args = ['install']
36-
}
37-
3834
tasks.register('buildFrontend', PnpmTask) {
3935
args = ['build:packages']
4036
dependsOn('installDepsForUI')
4137
}
4238

43-
tasks.named('build').configure {
44-
dependsOn('buildFrontend')
39+
tasks.register('installDepsForUI', PnpmTask) {
40+
args = ['install']
41+
}
42+
43+
build {
44+
// build frontend before build
45+
tasks.named('compileJava').configure {
46+
dependsOn('buildFrontend')
47+
}
4548
}
4649

4750
halo {

0 commit comments

Comments
 (0)