|
6 | 6 | buildscript { |
7 | 7 |
|
8 | 8 | ext { |
9 | | - opensearch_version = System.getProperty("opensearch.version", "3.2.0-SNAPSHOT") |
| 9 | + opensearch_version = System.getProperty("opensearch.version", "3.4.0-SNAPSHOT") |
10 | 10 | isSnapshot = "true" == System.getProperty("build.snapshot", "true") |
11 | 11 | buildVersionQualifier = System.getProperty("build.version_qualifier", "") |
12 | 12 |
|
@@ -34,8 +34,7 @@ buildscript { |
34 | 34 | // Used to resolve build file dependencies |
35 | 35 | repositories { |
36 | 36 | 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/" } |
39 | 38 | mavenCentral() |
40 | 39 | maven { url "https://plugins.gradle.org/m2/" } |
41 | 40 | } |
@@ -168,10 +167,11 @@ publishing { |
168 | 167 | repositories { |
169 | 168 | maven { |
170 | 169 | 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") |
175 | 175 | } |
176 | 176 | } |
177 | 177 | } |
@@ -200,8 +200,7 @@ publishing { |
200 | 200 |
|
201 | 201 | repositories { |
202 | 202 | 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/" } |
205 | 204 | mavenCentral() |
206 | 205 | maven { url "https://plugins.gradle.org/m2/" } |
207 | 206 | } |
@@ -304,7 +303,7 @@ dependencies { |
304 | 303 | } |
305 | 304 |
|
306 | 305 | 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}" |
308 | 307 | implementation "org.bouncycastle:bc-fips:${versions.bouncycastle_jce}" |
309 | 308 | implementation "org.bouncycastle:bcpkix-fips:${versions.bouncycastle_pkix}" |
310 | 309 | implementation "org.opensearch:performance-analyzer-commons:${paCommonsVersion}" |
@@ -806,12 +805,6 @@ task updateVersion { |
806 | 805 | ext.newVersion = System.getProperty('newVersion') |
807 | 806 | println "Setting version to ${newVersion}." |
808 | 807 | // 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 | | - } |
815 | 808 | ant.replaceregexp(file:'build.gradle', match: '"opensearch.version", "\\d.*"', replace: '"opensearch.version", "' + newVersion.tokenize('-')[0] + '-SNAPSHOT"', flags:'g', byline:true) |
816 | 809 | } |
817 | 810 | } |
0 commit comments