mirror of
https://github.com/halo-dev/plugin-s3.git
synced 2025-10-17 16:08:25 +00:00

#### What type of PR is this? /kind improvement #### What this PR does / why we need it: Reshape the DataBuffers into parts of the same size (5MB) except for the last part. #### Which issue(s) this PR fixes: Fixes https://github.com/halo-sigs/plugin-s3/issues/49 #### Does this PR introduce a user-facing change? ```release-note 保证分片上传时片段大小一致 ```
44 lines
1.2 KiB
Groovy
44 lines
1.2 KiB
Groovy
plugins {
|
|
id "io.github.guqing.plugin-development" version "0.0.7-SNAPSHOT"
|
|
id "io.freefair.lombok" version "8.0.0-rc2"
|
|
id 'java'
|
|
}
|
|
|
|
group 'run.halo.s3os'
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
|
|
repositories {
|
|
maven { url 'https://s01.oss.sonatype.org/content/repositories/releases' }
|
|
maven { url 'https://s01.oss.sonatype.org/content/repositories/snapshots/' }
|
|
mavenCentral()
|
|
}
|
|
|
|
jar {
|
|
enabled = true
|
|
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
|
from {
|
|
configurations.runtimeClasspath.collect {
|
|
it.isDirectory() ? it : zipTree(it)
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation platform('run.halo.tools.platform:plugin:2.5.0-SNAPSHOT')
|
|
compileOnly 'run.halo.app:api'
|
|
|
|
implementation platform('software.amazon.awssdk:bom:2.19.8')
|
|
implementation 'software.amazon.awssdk:s3'
|
|
implementation "javax.xml.bind:jaxb-api:2.3.1"
|
|
implementation "javax.activation:activation:1.1.1"
|
|
implementation "org.glassfish.jaxb:jaxb-runtime:2.3.3"
|
|
|
|
testImplementation 'run.halo.app:api'
|
|
testImplementation 'org.springframework.boot:spring-boot-starter-test'
|
|
testImplementation 'io.projectreactor:reactor-test'
|
|
}
|
|
|
|
test {
|
|
useJUnitPlatform()
|
|
}
|