From 478f8fb1c0f70cd797a5961ce648aa7471b1ac56 Mon Sep 17 00:00:00 2001 From: Abbas Hussain Date: Wed, 29 Sep 2021 16:18:01 -0700 Subject: [PATCH] Update build to use public Maven repo Signed-off-by: Abbas Hussain --- .github/workflows/test-workflow.yml | 22 ---------------------- build-tools/repositories.gradle | 1 + build.gradle | 1 + 3 files changed, 2 insertions(+), 22 deletions(-) diff --git a/.github/workflows/test-workflow.yml b/.github/workflows/test-workflow.yml index 3c68b05ef..fdf1e099d 100644 --- a/.github/workflows/test-workflow.yml +++ b/.github/workflows/test-workflow.yml @@ -29,28 +29,6 @@ jobs: with: java-version: ${{ matrix.java }} - # dependencies: OpenSearch - - name: Checkout OpenSearch - uses: actions/checkout@v2 - with: - repository: 'opensearch-project/OpenSearch' - path: OpenSearch - ref: '1.1' - - name: Build OpenSearch - working-directory: ./OpenSearch - run: ./gradlew publishToMavenLocal - - # dependencies: common-utils - - name: Checkout common-utils - uses: actions/checkout@v2 - with: - repository: 'opensearch-project/common-utils' - path: common-utils - ref: 'main' - - name: Build common-utils - working-directory: ./common-utils - run: ./gradlew publishToMavenLocal -Dopensearch.version=1.1.0-SNAPSHOT - - name: Build and run with Gradle run: ./gradlew build -Dopensearch.version=1.1.0-SNAPSHOT diff --git a/build-tools/repositories.gradle b/build-tools/repositories.gradle index 2421552ca..67e5e47ed 100644 --- a/build-tools/repositories.gradle +++ b/build-tools/repositories.gradle @@ -26,6 +26,7 @@ repositories { mavenLocal() + maven { url "https://aws.oss.sonatype.org/content/repositories/snapshots" } mavenCentral() jcenter() } \ No newline at end of file diff --git a/build.gradle b/build.gradle index c92b6430d..9973ce6de 100644 --- a/build.gradle +++ b/build.gradle @@ -37,6 +37,7 @@ buildscript { repositories { mavenLocal() + maven { url "https://aws.oss.sonatype.org/content/repositories/snapshots" } mavenCentral() maven { url "https://plugins.gradle.org/m2/" } jcenter()