Skip to content

Commit 9841e2a

Browse files
authored
Merge pull request #1 from halo-sigs/bug/process-ui-resources
Make sure the processUiResources task is executed after processResources
2 parents 3957edd + 00709fe commit 9841e2a

File tree

5 files changed

+29
-4746
lines changed

5 files changed

+29
-4746
lines changed

.github/workflows/ci.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: CI
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
branches:
8+
- main
9+
jobs:
10+
ci:
11+
runs-on: ubuntu-24.04
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: halo-sigs/reusable-workflows/plugin-setup-env@v3
15+
with:
16+
node-version: 22
17+
pnpm-version: 10
18+
java-version: 21
19+
- name: Install dependencies
20+
run: pnpm install
21+
- name: Create a plugin
22+
run: node index.js build/my-plugin --name=my-plugin --domain=run.halo.plugin --author=halo --uiTool=rsbuild
23+
- name: Build the plugin
24+
run: cd build/my-plugin && ./gradlew build

template/build.gradle.template

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,14 @@ tasks.withType(JavaCompile).configureEach {
3737
tasks.register('processUiResources', Copy) {
3838
from project(':ui').tasks.named('buildFrontend')
3939
into layout.buildDirectory.dir('resources/main/console')
40+
shouldRunAfter tasks.named('processResources')
4041
}
4142

42-
tasks.named('processResources', ProcessResources) {
43+
tasks.named('classes') {
4344
dependsOn tasks.named('processUiResources')
4445
}
4546

4647
halo {
4748
version = '2.21'
4849
}
50+
-17.4 KB
Binary file not shown.
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14-bin.zip
44
networkTimeout=10000
5+
validateDistributionUrl=true
56
zipStoreBase=GRADLE_USER_HOME
67
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)