mirror of
https://github.com/halo-dev/plugin-s3.git
synced 2026-04-06 02:00:46 +08:00
```release-note 修复无日志输出的问题 ``` fixes #100 测试上传,关联,删除,解除关联 4种操作的日志 ``` ---上传--- 2023-11-27T22:39:22.139+08:00 INFO 7 --- [oundedElastic-5] run.halo.s3os.S3OsAttachmentHandler : operation: createMultipartUpload, result: CreateMultipartUploadResponse(Bucket=test-1305034426, Key=test/image-pjcl.png, UploadId=17010959629c897f8b8c1a592b0efe300de867a1ea3e891cf04b4f95c6986470a0f30195be) 2023-11-27T22:39:22.391+08:00 INFO 7 --- [oundedElastic-5] run.halo.s3os.S3OsAttachmentHandler : operation: uploadPart, result: UploadPartResponse(ETag="aa84eea735192b49552fa5bf3df317fa") 2023-11-27T22:39:22.547+08:00 INFO 7 --- [oundedElastic-5] run.halo.s3os.S3OsAttachmentHandler : operation: completeUpload, result: CompleteMultipartUploadResponse(Location=http://test-1305034426.cos.ap-guangzhou.myqcloud.com/test/image-pjcl.png, Bucket=test-1305034426, Key=test/image-pjcl.png, ETag="afdd5ce39cf49676238fcfc879664b55-1") 2023-11-27T22:39:22.616+08:00 INFO 7 --- [oundedElastic-5] run.halo.s3os.S3OsAttachmentHandler : operation: getMetadata, result: HeadObjectResponse(AcceptRanges=bytes, LastModified=2023-11-27T14:39:22Z, ContentLength=1420, ETag="afdd5ce39cf49676238fcfc879664b55-1", ContentType=image/png, Metadata={}) 2023-11-27T22:39:22.616+08:00 INFO 7 --- [oundedElastic-5] run.halo.s3os.S3OsAttachmentHandler : Upload object test/image-pjcl.png to bucket test-1305034426 successfully 2023-11-27T22:39:22.626+08:00 INFO 7 --- [oundedElastic-5] run.halo.s3os.S3OsAttachmentHandler : Build attachment test/image-pjcl.png successfully 2023-11-27T22:39:29.915+08:00 WARN 7 --- [or-http-epoll-1] ocalVariableTableParameterNameDiscoverer : Using deprecated '-debug' fallback for parameter name resolution. Compile the affected code with '-parameters' instead or avoid its introspection: run.halo.s3os.S3LinkController ---关联--- 2023-11-27T22:39:34.657+08:00 INFO 7 --- [oundedElastic-5] run.halo.s3os.S3OsAttachmentHandler : Build attachment test/34.txt successfully ---解除关联--- 2023-11-27T22:39:39.937+08:00 INFO 7 --- [tReconciler-t-1] run.halo.s3os.S3OsAttachmentHandler : Skip deleting object test/34.txt from S3. ---删除--- 2023-11-27T22:39:44.290+08:00 INFO 7 --- [oundedElastic-5] run.halo.s3os.S3OsAttachmentHandler : operation: delete object, result: DeleteObjectResponse() 2023-11-27T22:39:44.291+08:00 INFO 7 --- [oundedElastic-5] run.halo.s3os.S3OsAttachmentHandler : Delete object test/image-pjcl.png from bucket test-1305034426 successfully ```
66 lines
1.5 KiB
Groovy
66 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.10.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.10.1'
|
|
}
|
|
|
|
haloPlugin {
|
|
watchDomains {
|
|
consoleSource {
|
|
files files('console/src/')
|
|
}
|
|
}
|
|
}
|
|
|
|
test {
|
|
useJUnitPlatform()
|
|
}
|
|
|
|
node {
|
|
nodeProjectDir = file("${project.projectDir}/console")
|
|
}
|
|
|
|
task buildFrontend(type: PnpmTask) {
|
|
args = ['build']
|
|
}
|
|
|
|
build {
|
|
// build frontend before build
|
|
tasks.getByName('compileJava').dependsOn('buildFrontend')
|
|
}
|