Skip to content

Commit

Permalink
Using snapshots from sonatype for 2.0 OpenSearch snapshot
Browse files Browse the repository at this point in the history
Signed-off-by: Vacha Shah <[email protected]>
  • Loading branch information
VachaShah committed Mar 30, 2022
1 parent 1e01fbe commit 35b7c06
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 30 deletions.
14 changes: 1 addition & 13 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,8 @@ jobs:
with:
java-version: '14'
distribution: 'adopt'

- name: Checkout OpenSearch
uses: actions/checkout@v2
with:
repository: opensearch-project/opensearch
ref: ${{ env.OPENSEARCH_VERSION }}
path: opensearch

- name: Assemble OpenSearch and Publish to Maven Local
run: |
cd opensearch
./gradlew publishToMavenLocal

- name: Checkout Branch
- name: Checkout Branch
uses: actions/checkout@v2

- name: Build with Gradle
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/test-integration-unreleased.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ jobs:
run: |
cd opensearch
./gradlew assemble
./gradlew publishToMavenLocal
# This step runs the docker image generated during gradle assemble in OpenSearch. It is tagged as opensearch:test.
# Reference: https://github.com/opensearch-project/OpenSearch/blob/2.0/distribution/docker/build.gradle#L190
Expand Down
12 changes: 0 additions & 12 deletions .github/workflows/test-unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,6 @@ jobs:
with:
java-version: '14'
distribution: 'adopt'

- name: Checkout OpenSearch
uses: actions/checkout@v2
with:
repository: opensearch-project/opensearch
ref: ${{ env.OPENSEARCH_VERSION }}
path: opensearch

- name: Assemble OpenSearch and Publish to Maven Local
run: |
cd opensearch
./gradlew publishToMavenLocal

- name: Checkout Branch
uses: actions/checkout@v2
Expand Down
3 changes: 2 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,9 @@ allprojects {
(File(project.rootDir, "config/version.txt").readText().trim() + "-SNAPSHOT")

repositories {
mavenCentral()
mavenLocal()
maven(url = "https://aws.oss.sonatype.org/content/repositories/snapshots")
mavenCentral()
maven(url = "https://plugins.gradle.org/m2/")
}

Expand Down
3 changes: 2 additions & 1 deletion buildSrc/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ dependencies {
}

repositories {
mavenCentral()
mavenLocal()
maven(url = "https://aws.oss.sonatype.org/content/repositories/snapshots")
mavenCentral()
maven(url = "https://plugins.gradle.org/m2/")
}
5 changes: 3 additions & 2 deletions java-client/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@ import java.io.FileWriter

buildscript {
repositories {
mavenCentral()
mavenLocal()
maven(url = "https://aws.oss.sonatype.org/content/repositories/snapshots")
mavenCentral()
maven(url = "https://plugins.gradle.org/m2/")
}
}
Expand Down Expand Up @@ -122,7 +123,7 @@ val integrationTest = task<Test>("integrationTest") {

dependencies {

val opensearchVersion = "2.0.0-SNAPSHOT"
val opensearchVersion = "2.0.0-alpha1-SNAPSHOT"
val jacksonVersion = "2.12.6"

// Apache 2.0
Expand Down

0 comments on commit 35b7c06

Please sign in to comment.