File tree Expand file tree Collapse file tree 3 files changed +19
-1
lines changed Expand file tree Collapse file tree 3 files changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -22,10 +22,14 @@ jobs:
22
22
- name : Build with Gradle
23
23
run : |
24
24
./gradlew publishPublishMavenPublicationToLocalRepoRepository && tar -C build -cvf artifacts.tar.gz repository
25
+ - name : Build shadowJar
26
+ run :
27
+ ./gradlew shadowJar
25
28
- name : Draft a release
26
29
uses : softprops/action-gh-release@v1
27
30
with :
28
31
draft : true
29
32
generate_release_notes : true
30
33
files : |
31
34
artifacts.tar.gz
35
+ build/libs/opensearch-sql-jdbc-shadow-*.jar
Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ static def getShadowPath(String path) {
92
92
}
93
93
94
94
shadowJar {
95
- baseName = rootProject. name
95
+ baseName = rootProject. name + " -shadow "
96
96
classifier = ' '
97
97
exclude ' META-INF/maven/commons-*/**'
98
98
exclude ' META-INF/maven/org.apache.*/**'
Original file line number Diff line number Diff line change @@ -14,4 +14,18 @@ standardReleasePipelineWithGenericTrigger(
14
14
mavenArtifactsPath: "$WORKSPACE/repository/",
15
15
autoPublish: true
16
16
)
17
+ publishToArtifactsProdBucket(
18
+ assumedRoleName: 'sql-jdbc-upload-role',
19
+ source: "$WORKSPACE/artifacts.tar.gz",
20
+ destination: "https://artifacts.opensearch.org/opensearch-clients/jdbc/opensearch-sql-jdbc-${tag}.tar.gz",
21
+ signingPlatform: 'linux',
22
+ sigOverwrite: true
23
+ )
24
+ publishToArtifactsProdBucket(
25
+ assumedRoleName: 'sql-jdbc-shadowJar-upload-role',
26
+ source: "$WORKSPACE/opensearch-sql-jdbc-shadow-*.jar",
27
+ destination: "https://artifacts.opensearch.org/opensearch-clients/jdbc/opensearch-sql-jdbc-shadow-${tag}.jar",
28
+ signingPlatform: 'linux',
29
+ sigOverwrite: true
30
+ )
17
31
}
You can’t perform that action at this time.
0 commit comments