plugins { id "com.github.node-gradle.node" version "5.0.0" id "run.halo.plugin.devtools" version "0.0.9" id "io.freefair.lombok" version "8.13.1" id 'java' } group 'com.kunkunyu.equipment' java { sourceCompatibility = JavaVersion.VERSION_17 targetCompatibility = JavaVersion.VERSION_17 } repositories { mavenCentral() maven { url 'https://s01.oss.sonatype.org/content/repositories/snapshots' } } dependencies { implementation platform('run.halo.tools.platform:plugin:2.20.11') compileOnly 'run.halo.app:api' testImplementation 'run.halo.app:api' testImplementation 'org.springframework.boot:spring-boot-starter-test' } test { useJUnitPlatform() } node { nodeProjectDir = file("${project.projectDir}/ui") } tasks.register('installDepsForUI', PnpmTask) { args = ['install'] } tasks.register('buildFrontend', PnpmTask) { args = ['build'] dependsOn('installDepsForUI') } build { tasks.named('compileJava').configure { dependsOn('buildFrontend') } } halo { version = '2.21.0-beta.2' debug = true }