在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):literalice/gradle-aws-s3-sync开源软件地址(OpenSource Url):https://github.com/literalice/gradle-aws-s3-sync开源编程语言(OpenSource Language):Groovy 100.0%开源软件介绍(OpenSource Introduction):This is the gradle task for synchronizing a local directory with a AWS S3 bucket and vice-versa. This task depends on JetS3t, a open-source Java toolkit for AWS. Situation - uploadThis task assumes the case, for example, a web site would be published in a AWS S3 bucket. Usage - upload// Gradle Script
buildscript {
repositories {
jcenter()
}
dependencies {
classpath "com.monochromeroad.gradle-plugins:gradle-aws-s3-sync:0.10"
}
}
import com.monochromeroad.gradle.plugin.aws.s3.S3Sync
task deploy(type: S3Sync){
description = "Deploys my site on a s3 bucket."
accessKey awsAccessKey
secretKey awsSecretKey
configFile "jets3t.properties"
mimeTypesFile "my-mime.types"
from "local-site"
into "my.bucket.name/subdirectory-optional"
} Situation - downloadThis task assumes the case, for example, a set of files has to be fetched from an S3 bucket to a local directory. Usage - download// Gradle Script
buildscript {
repositories {
jcenter()
}
dependencies {
classpath "com.monochromeroad.gradle-plugins:gradle-aws-s3-sync:0.10"
}
}
import com.monochromeroad.gradle.plugin.aws.s3.S3Sync
task deploy(type: S3Sync){
description = "Downloads files from s3 bucket to a local directory"
accessKey awsAccessKey
secretKey awsSecretKey
configFile "jets3t.properties"
// follows the jets3t conventions for action names
action = 'DOWN'
from "my.bucket.name/subdirectory-optional"
from "local-site"
} Options
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论