diff --git a/.github/workflows/maven-publish.yml b/.github/workflows/maven-publish.yml index 7ccca143..3b00ed63 100644 --- a/.github/workflows/maven-publish.yml +++ b/.github/workflows/maven-publish.yml @@ -31,6 +31,8 @@ jobs: OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }} MAVEN_SNAPSHOTS_S3_REPO: op://opensearch-infra-secrets/maven-snapshots-s3/repo MAVEN_SNAPSHOTS_S3_ROLE: op://opensearch-infra-secrets/maven-snapshots-s3/role + SONATYPE_USERNAME: op://opensearch-infra-secrets/maven-central-portal-credentials/username + SONATYPE_PASSWORD: op://opensearch-infra-secrets/maven-central-portal-credentials/password - name: Configure AWS credentials uses: aws-actions/configure-aws-credentials@v5 diff --git a/build.gradle b/build.gradle index f743d686..516aeb4a 100644 --- a/build.gradle +++ b/build.gradle @@ -35,6 +35,8 @@ buildscript { repositories { mavenLocal() maven { url "https://ci.opensearch.org/ci/dbc/snapshots/maven/" } + maven { url "https://central.sonatype.com/repository/maven-snapshots/" } + maven { url "https://aws.oss.sonatype.org/content/repositories/snapshots" } mavenCentral() maven { url "https://plugins.gradle.org/m2/" } } @@ -48,7 +50,7 @@ buildscript { plugins { id 'java' id 'com.netflix.nebula.ospackage' version "11.6.0" - id 'com.github.spotbugs' version '6.2.2' + id 'com.github.spotbugs' version '6.2.4' id 'jacoco' id 'com.diffplug.spotless' version '6.25.0' id 'checkstyle' @@ -58,7 +60,7 @@ plugins { } checkstyle { - toolVersion = '10.26.1' + toolVersion = '11.0.0' configFile file("checkstyle/checkstyle.xml") } @@ -199,6 +201,8 @@ publishing { repositories { mavenLocal() maven { url "https://ci.opensearch.org/ci/dbc/snapshots/maven/" } + maven { url "https://central.sonatype.com/repository/maven-snapshots/" } + maven { url "https://aws.oss.sonatype.org/content/repositories/snapshots" } mavenCentral() maven { url "https://plugins.gradle.org/m2/" } }