1.5.1原版
This commit is contained in:
@@ -0,0 +1,54 @@
|
||||
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 'run.halo.photos'
|
||||
|
||||
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.17.0-SNAPSHOT')
|
||||
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}/console")
|
||||
}
|
||||
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user