Skip to content

Commit fc919c7

Browse files
authored
Merge branch 'main' into nishcha-dev
Signed-off-by: Nishchay Malhotra <114057571+nishchay21@users.noreply.github.com>
2 parents 9f58854 + b054326 commit fc919c7

46 files changed

Lines changed: 250 additions & 543 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/maven-publish.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- uses: actions/setup-java@v3
2121
with:
2222
distribution: temurin # Temurin is a distribution of adoptium
23-
java-version: 11
23+
java-version: 21
2424
- uses: actions/checkout@v3
2525

2626
- name: Load secret
@@ -30,8 +30,14 @@ jobs:
3030
export-env: true
3131
env:
3232
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}
33-
SONATYPE_USERNAME: op://opensearch-infra-secrets/maven-central-portal-credentials/username
34-
SONATYPE_PASSWORD: op://opensearch-infra-secrets/maven-central-portal-credentials/password
33+
MAVEN_SNAPSHOTS_S3_REPO: op://opensearch-infra-secrets/maven-snapshots-s3/repo
34+
MAVEN_SNAPSHOTS_S3_ROLE: op://opensearch-infra-secrets/maven-snapshots-s3/role
35+
36+
- name: Configure AWS credentials
37+
uses: aws-actions/configure-aws-credentials@v5
38+
with:
39+
role-to-assume: ${{ env.MAVEN_SNAPSHOTS_S3_ROLE }}
40+
aws-region: us-east-1
3541

3642
- name: publish snapshots to maven
3743
run: |

build.gradle

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
buildscript {
77

88
ext {
9-
opensearch_version = System.getProperty("opensearch.version", "3.2.0-SNAPSHOT")
9+
opensearch_version = System.getProperty("opensearch.version", "3.4.0-SNAPSHOT")
1010
isSnapshot = "true" == System.getProperty("build.snapshot", "true")
1111
buildVersionQualifier = System.getProperty("build.version_qualifier", "")
1212

@@ -34,8 +34,7 @@ buildscript {
3434
// Used to resolve build file dependencies
3535
repositories {
3636
mavenLocal()
37-
maven { url "https://central.sonatype.com/repository/maven-snapshots/" }
38-
maven { url "https://aws.oss.sonatype.org/content/repositories/snapshots" }
37+
maven { url "https://ci.opensearch.org/ci/dbc/snapshots/maven/" }
3938
mavenCentral()
4039
maven { url "https://plugins.gradle.org/m2/" }
4140
}
@@ -168,10 +167,11 @@ publishing {
168167
repositories {
169168
maven {
170169
name = "Snapshots"
171-
url = "https://central.sonatype.com/repository/maven-snapshots/"
172-
credentials {
173-
username "$System.env.SONATYPE_USERNAME"
174-
password "$System.env.SONATYPE_PASSWORD"
170+
url = System.getenv("MAVEN_SNAPSHOTS_S3_REPO")
171+
credentials(AwsCredentials) {
172+
accessKey = System.getenv("AWS_ACCESS_KEY_ID")
173+
secretKey = System.getenv("AWS_SECRET_ACCESS_KEY")
174+
sessionToken = System.getenv("AWS_SESSION_TOKEN")
175175
}
176176
}
177177
}
@@ -200,8 +200,7 @@ publishing {
200200

201201
repositories {
202202
mavenLocal()
203-
maven { url "https://central.sonatype.com/repository/maven-snapshots/" }
204-
maven { url "https://aws.oss.sonatype.org/content/repositories/snapshots" }
203+
maven { url "https://ci.opensearch.org/ci/dbc/snapshots/maven/" }
205204
mavenCentral()
206205
maven { url "https://plugins.gradle.org/m2/" }
207206
}
@@ -304,7 +303,7 @@ dependencies {
304303
}
305304

306305
implementation 'org.jooq:jooq:3.10.8'
307-
implementation 'org.apache.commons:commons-lang3:3.9'
306+
implementation "org.apache.commons:commons-lang3:${versions.commonslang}"
308307
implementation "org.bouncycastle:bc-fips:${versions.bouncycastle_jce}"
309308
implementation "org.bouncycastle:bcpkix-fips:${versions.bouncycastle_pkix}"
310309
implementation "org.opensearch:performance-analyzer-commons:${paCommonsVersion}"
@@ -806,12 +805,6 @@ task updateVersion {
806805
ext.newVersion = System.getProperty('newVersion')
807806
println "Setting version to ${newVersion}."
808807
// String tokenization to support -SNAPSHOT
809-
ant.replaceregexp(match: opensearch_version.tokenize('-')[0], replace: newVersion.tokenize('-')[0], flags:'g', byline:true) {
810-
fileset(dir: projectDir) {
811-
// Include the required files that needs to be updated with new Version
812-
include(name: "src/main/resources/plugin-descriptor.properties")
813-
}
814-
}
815808
ant.replaceregexp(file:'build.gradle', match: '"opensearch.version", "\\d.*"', replace: '"opensearch.version", "' + newVersion.tokenize('-')[0] + '-SNAPSHOT"', flags:'g', byline:true)
816809
}
817810
}

licenses/bc-fips-2.0.0.jar.sha1

Lines changed: 0 additions & 1 deletion
This file was deleted.

licenses/bc-fips-2.1.1.jar.sha1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
34c72d0367d41672883283933ebec24843570bf5

licenses/bcpkix-fips-2.0.7.jar.sha1

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
722eaefa83fd8c53e1fc019bde25e353258ed22b

licenses/commons-lang3-3.14.0.jar.sha1

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
fb14946f0e39748a6571de0635acbe44e7885491

licenses/failureaccess-1.0.2.jar.sha1

Lines changed: 0 additions & 1 deletion
This file was deleted.

licenses/failureaccess-LICENSE.txt

Lines changed: 0 additions & 202 deletions
This file was deleted.

0 commit comments

Comments
 (0)