mirror of
https://github.com/halo-dev/plugin-s3.git
synced 2026-01-14 07:03:32 +08:00
```release-note 在 S3 存储策略配置中增加了验证配置的功能。 ``` fixes https://github.com/halo-dev/plugin-s3/issues/132
70 lines
1.5 KiB
Groovy
70 lines
1.5 KiB
Groovy
plugins {
|
|
id 'java'
|
|
id "com.github.node-gradle.node" version "5.0.0"
|
|
id "io.freefair.lombok" version "8.0.1"
|
|
id "run.halo.plugin.devtools" version "0.0.7"
|
|
}
|
|
|
|
group 'run.halo.s3os'
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
|
|
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' }
|
|
}
|
|
|
|
dependencies {
|
|
implementation platform('run.halo.tools.platform:plugin:2.14.0-SNAPSHOT')
|
|
compileOnly 'run.halo.app:api'
|
|
|
|
implementation platform('software.amazon.awssdk:bom:2.19.8')
|
|
implementation ('software.amazon.awssdk:s3') {
|
|
exclude group: 'org.slf4j'
|
|
exclude group: 'commons-logging'
|
|
}
|
|
|
|
testImplementation 'run.halo.app:api'
|
|
testImplementation 'org.springframework.boot:spring-boot-starter-test'
|
|
testImplementation 'io.projectreactor:reactor-test'
|
|
}
|
|
|
|
configurations.runtimeClasspath {
|
|
exclude group: 'org.reactivestreams', module: 'reactive-streams'
|
|
}
|
|
|
|
|
|
halo {
|
|
version = '2.14.0'
|
|
}
|
|
|
|
haloPlugin {
|
|
watchDomains {
|
|
consoleSource {
|
|
files files('console/src/')
|
|
}
|
|
}
|
|
}
|
|
|
|
test {
|
|
useJUnitPlatform()
|
|
}
|
|
|
|
node {
|
|
nodeProjectDir = file("${project.projectDir}/console")
|
|
}
|
|
|
|
task buildFrontend(type: PnpmTask) {
|
|
args = ['build']
|
|
}
|
|
|
|
tasks.named('buildFrontend') {
|
|
dependsOn 'pnpmInstall'
|
|
}
|
|
|
|
build {
|
|
// build frontend before build
|
|
tasks.getByName('compileJava').dependsOn('buildFrontend')
|
|
}
|