mirrored from https://www.bouncycastle.org/repositories/bc-java
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Expand file tree
/
Copy pathpublish.gradle
More file actions
34 lines (24 loc) · 1.04 KB
/
Copy pathpublish.gradle
File metadata and controls
34 lines (24 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
gradle.projectsEvaluated {
rootProject.subprojects {
publishing {
repositories {
maven {
name "${System.getenv("CW_MAVEN_NAME")}"
url "${System.getenv("CW_MAVEN_BUCKET_URL")}/${System.getenv("CI_COMMIT_BRANCH")}"
credentials(AwsCredentials) {
accessKey "${System.getenv("CW_BUCKET_KEY")}"
secretKey "${System.getenv("CW_BUCKET_SECRET")}"
}
}
}
}
jar.doLast {
"signjar ${archiveFile.get()}".execute()
}
publish.doLast {
"s3index -key ${System.getenv("CW_BUCKET_KEY")} -secret ${System.getenv("CW_BUCKET_SECRET")} -region ${System.getenv("CW_BUCKET_REGION")}" +
" -url ${System.getenv("CW_MAVEN_STAGE_URL")}/${System.getenv("CI_COMMIT_BRANCH")} " +
"-s3url ${System.getenv("CW_MAVEN_BUCKET_URL")}/${System.getenv("CI_COMMIT_BRANCH")}".execute()
}
}
}