Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add publish snapshots to maven via GHA #1417

Merged
merged 2 commits into from
Feb 21, 2023

Conversation

rupal-bq
Copy link
Contributor

Description

  • Added publish snapshots to maven via GHA

Issues Resolved

#1414

Check List

  • New functionality includes testing.
    • All tests pass, including unit test, integration test and doctest
  • New functionality has been documented.
    • New functionality has javadoc added
    • New functionality has user manual doc added
  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@rupal-bq rupal-bq requested a review from gaiksaya February 20, 2023 20:30
@rupal-bq rupal-bq requested a review from a team as a code owner February 20, 2023 20:30
@rupal-bq
Copy link
Contributor Author

Local test output

maharup@b0f1d879dff7 observability % ./gradlew publishPluginZipPublicationToSnapshotsRepository
=======================================
OpenSearch Build Hamster says Hello!
  Gradle Version        : 7.4.2
  OS Info               : Mac OS X 13.2 (x86_64)
  JDK Version           : 11 (Amazon Corretto JDK)
  JAVA_HOME             : /Library/Java/JavaVirtualMachines/amazon-corretto-11.jdk/Contents/Home
  Random Testing Seed   : 1044FD700D3634BE
  In FIPS 140 mode      : false
=======================================

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.4.2/userguide/command_line_interface.html#sec:command_line_warnings

BUILD SUCCESSFUL in 2s
10 actionable tasks: 3 executed, 7 up-to-date
maharup@b0f1d879dff7 observability % find snapshots | sort
snapshots
snapshots/org
snapshots/org/opensearch
snapshots/org/opensearch/plugin
snapshots/org/opensearch/plugin/observability
snapshots/org/opensearch/plugin/observability/3.0.0.0-SNAPSHOT
snapshots/org/opensearch/plugin/observability/3.0.0.0-SNAPSHOT/maven-metadata.xml
snapshots/org/opensearch/plugin/observability/3.0.0.0-SNAPSHOT/maven-metadata.xml.md5
snapshots/org/opensearch/plugin/observability/3.0.0.0-SNAPSHOT/maven-metadata.xml.sha1
snapshots/org/opensearch/plugin/observability/3.0.0.0-SNAPSHOT/maven-metadata.xml.sha256
snapshots/org/opensearch/plugin/observability/3.0.0.0-SNAPSHOT/maven-metadata.xml.sha512
snapshots/org/opensearch/plugin/observability/3.0.0.0-SNAPSHOT/observability-3.0.0.0-20230220.202117-1.pom
snapshots/org/opensearch/plugin/observability/3.0.0.0-SNAPSHOT/observability-3.0.0.0-20230220.202117-1.pom.md5
snapshots/org/opensearch/plugin/observability/3.0.0.0-SNAPSHOT/observability-3.0.0.0-20230220.202117-1.pom.sha1
snapshots/org/opensearch/plugin/observability/3.0.0.0-SNAPSHOT/observability-3.0.0.0-20230220.202117-1.pom.sha256
snapshots/org/opensearch/plugin/observability/3.0.0.0-SNAPSHOT/observability-3.0.0.0-20230220.202117-1.pom.sha512
snapshots/org/opensearch/plugin/observability/3.0.0.0-SNAPSHOT/observability-3.0.0.0-20230220.202117-1.zip
snapshots/org/opensearch/plugin/observability/3.0.0.0-SNAPSHOT/observability-3.0.0.0-20230220.202117-1.zip.md5
snapshots/org/opensearch/plugin/observability/3.0.0.0-SNAPSHOT/observability-3.0.0.0-20230220.202117-1.zip.sha1
snapshots/org/opensearch/plugin/observability/3.0.0.0-SNAPSHOT/observability-3.0.0.0-20230220.202117-1.zip.sha256
snapshots/org/opensearch/plugin/observability/3.0.0.0-SNAPSHOT/observability-3.0.0.0-20230220.202117-1.zip.sha512
snapshots/org/opensearch/plugin/observability/3.0.0.0-SNAPSHOT/observability-3.0.0.0-20230220.202712-2.pom
snapshots/org/opensearch/plugin/observability/3.0.0.0-SNAPSHOT/observability-3.0.0.0-20230220.202712-2.pom.md5
snapshots/org/opensearch/plugin/observability/3.0.0.0-SNAPSHOT/observability-3.0.0.0-20230220.202712-2.pom.sha1
snapshots/org/opensearch/plugin/observability/3.0.0.0-SNAPSHOT/observability-3.0.0.0-20230220.202712-2.pom.sha256
snapshots/org/opensearch/plugin/observability/3.0.0.0-SNAPSHOT/observability-3.0.0.0-20230220.202712-2.pom.sha512
snapshots/org/opensearch/plugin/observability/3.0.0.0-SNAPSHOT/observability-3.0.0.0-20230220.202712-2.zip
snapshots/org/opensearch/plugin/observability/3.0.0.0-SNAPSHOT/observability-3.0.0.0-20230220.202712-2.zip.md5
snapshots/org/opensearch/plugin/observability/3.0.0.0-SNAPSHOT/observability-3.0.0.0-20230220.202712-2.zip.sha1
snapshots/org/opensearch/plugin/observability/3.0.0.0-SNAPSHOT/observability-3.0.0.0-20230220.202712-2.zip.sha256
snapshots/org/opensearch/plugin/observability/3.0.0.0-SNAPSHOT/observability-3.0.0.0-20230220.202712-2.zip.sha512
snapshots/org/opensearch/plugin/observability/maven-metadata.xml
snapshots/org/opensearch/plugin/observability/maven-metadata.xml.md5
snapshots/org/opensearch/plugin/observability/maven-metadata.xml.sha1
snapshots/org/opensearch/plugin/observability/maven-metadata.xml.sha256
snapshots/org/opensearch/plugin/observability/maven-metadata.xml.sha512
maharup@b0f1d879dff7 observability % 

@gaiksaya
Copy link
Member

@rupal-bq
Copy link
Contributor Author

Hi @rupal-bq, shouldn't the name be opensearch-observability? https://aws.oss.sonatype.org/content/repositories/snapshots/org/opensearch/plugin/opensearch-observability/

Thanks for noticing. Output after adding rootProject.name = 'opensearch-observability'

maharup@b0f1d879dff7 observability % ./gradlew publishPluginZipPublicationToSnapshotsRepository
=======================================
OpenSearch Build Hamster says Hello!
  Gradle Version        : 7.4.2
  OS Info               : Mac OS X 13.2 (x86_64)
  JDK Version           : 11 (Amazon Corretto JDK)
  JAVA_HOME             : /Library/Java/JavaVirtualMachines/amazon-corretto-11.jdk/Contents/Home
  Random Testing Seed   : 32B6B964AEB93F20
  In FIPS 140 mode      : false
=======================================

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.4.2/userguide/command_line_interface.html#sec:command_line_warnings

BUILD SUCCESSFUL in 2s
10 actionable tasks: 3 executed, 7 up-to-date
maharup@b0f1d879dff7 observability % find snapshots | sort                                     
snapshots
snapshots/org
snapshots/org/opensearch
snapshots/org/opensearch/plugin
snapshots/org/opensearch/plugin/observability
snapshots/org/opensearch/plugin/observability/3.0.0.0-SNAPSHOT
snapshots/org/opensearch/plugin/observability/3.0.0.0-SNAPSHOT/maven-metadata.xml
snapshots/org/opensearch/plugin/observability/3.0.0.0-SNAPSHOT/maven-metadata.xml.md5
snapshots/org/opensearch/plugin/observability/3.0.0.0-SNAPSHOT/maven-metadata.xml.sha1
snapshots/org/opensearch/plugin/observability/3.0.0.0-SNAPSHOT/maven-metadata.xml.sha256
snapshots/org/opensearch/plugin/observability/3.0.0.0-SNAPSHOT/maven-metadata.xml.sha512
snapshots/org/opensearch/plugin/observability/3.0.0.0-SNAPSHOT/observability-3.0.0.0-20230221.024948-1.pom
snapshots/org/opensearch/plugin/observability/3.0.0.0-SNAPSHOT/observability-3.0.0.0-20230221.024948-1.pom.md5
snapshots/org/opensearch/plugin/observability/3.0.0.0-SNAPSHOT/observability-3.0.0.0-20230221.024948-1.pom.sha1
snapshots/org/opensearch/plugin/observability/3.0.0.0-SNAPSHOT/observability-3.0.0.0-20230221.024948-1.pom.sha256
snapshots/org/opensearch/plugin/observability/3.0.0.0-SNAPSHOT/observability-3.0.0.0-20230221.024948-1.pom.sha512
snapshots/org/opensearch/plugin/observability/3.0.0.0-SNAPSHOT/observability-3.0.0.0-20230221.024948-1.zip
snapshots/org/opensearch/plugin/observability/3.0.0.0-SNAPSHOT/observability-3.0.0.0-20230221.024948-1.zip.md5
snapshots/org/opensearch/plugin/observability/3.0.0.0-SNAPSHOT/observability-3.0.0.0-20230221.024948-1.zip.sha1
snapshots/org/opensearch/plugin/observability/3.0.0.0-SNAPSHOT/observability-3.0.0.0-20230221.024948-1.zip.sha256
snapshots/org/opensearch/plugin/observability/3.0.0.0-SNAPSHOT/observability-3.0.0.0-20230221.024948-1.zip.sha512
snapshots/org/opensearch/plugin/observability/maven-metadata.xml
snapshots/org/opensearch/plugin/observability/maven-metadata.xml.md5
snapshots/org/opensearch/plugin/observability/maven-metadata.xml.sha1
snapshots/org/opensearch/plugin/observability/maven-metadata.xml.sha256
snapshots/org/opensearch/plugin/observability/maven-metadata.xml.sha512
snapshots/org/opensearch/plugin/opensearch-observability
snapshots/org/opensearch/plugin/opensearch-observability/3.0.0.0-SNAPSHOT
snapshots/org/opensearch/plugin/opensearch-observability/3.0.0.0-SNAPSHOT/maven-metadata.xml
snapshots/org/opensearch/plugin/opensearch-observability/3.0.0.0-SNAPSHOT/maven-metadata.xml.md5
snapshots/org/opensearch/plugin/opensearch-observability/3.0.0.0-SNAPSHOT/maven-metadata.xml.sha1
snapshots/org/opensearch/plugin/opensearch-observability/3.0.0.0-SNAPSHOT/maven-metadata.xml.sha256
snapshots/org/opensearch/plugin/opensearch-observability/3.0.0.0-SNAPSHOT/maven-metadata.xml.sha512
snapshots/org/opensearch/plugin/opensearch-observability/3.0.0.0-SNAPSHOT/opensearch-observability-3.0.0.0-20230221.025800-1.pom
snapshots/org/opensearch/plugin/opensearch-observability/3.0.0.0-SNAPSHOT/opensearch-observability-3.0.0.0-20230221.025800-1.pom.md5
snapshots/org/opensearch/plugin/opensearch-observability/3.0.0.0-SNAPSHOT/opensearch-observability-3.0.0.0-20230221.025800-1.pom.sha1
snapshots/org/opensearch/plugin/opensearch-observability/3.0.0.0-SNAPSHOT/opensearch-observability-3.0.0.0-20230221.025800-1.pom.sha256
snapshots/org/opensearch/plugin/opensearch-observability/3.0.0.0-SNAPSHOT/opensearch-observability-3.0.0.0-20230221.025800-1.pom.sha512
snapshots/org/opensearch/plugin/opensearch-observability/3.0.0.0-SNAPSHOT/opensearch-observability-3.0.0.0-20230221.025800-1.zip
snapshots/org/opensearch/plugin/opensearch-observability/3.0.0.0-SNAPSHOT/opensearch-observability-3.0.0.0-20230221.025800-1.zip.md5
snapshots/org/opensearch/plugin/opensearch-observability/3.0.0.0-SNAPSHOT/opensearch-observability-3.0.0.0-20230221.025800-1.zip.sha1
snapshots/org/opensearch/plugin/opensearch-observability/3.0.0.0-SNAPSHOT/opensearch-observability-3.0.0.0-20230221.025800-1.zip.sha256
snapshots/org/opensearch/plugin/opensearch-observability/3.0.0.0-SNAPSHOT/opensearch-observability-3.0.0.0-20230221.025800-1.zip.sha512
snapshots/org/opensearch/plugin/opensearch-observability/3.0.0.0-SNAPSHOT/opensearch-observability-3.0.0.0-20230221.171629-2.pom
snapshots/org/opensearch/plugin/opensearch-observability/3.0.0.0-SNAPSHOT/opensearch-observability-3.0.0.0-20230221.171629-2.pom.md5
snapshots/org/opensearch/plugin/opensearch-observability/3.0.0.0-SNAPSHOT/opensearch-observability-3.0.0.0-20230221.171629-2.pom.sha1
snapshots/org/opensearch/plugin/opensearch-observability/3.0.0.0-SNAPSHOT/opensearch-observability-3.0.0.0-20230221.171629-2.pom.sha256
snapshots/org/opensearch/plugin/opensearch-observability/3.0.0.0-SNAPSHOT/opensearch-observability-3.0.0.0-20230221.171629-2.pom.sha512
snapshots/org/opensearch/plugin/opensearch-observability/3.0.0.0-SNAPSHOT/opensearch-observability-3.0.0.0-20230221.171629-2.zip
snapshots/org/opensearch/plugin/opensearch-observability/3.0.0.0-SNAPSHOT/opensearch-observability-3.0.0.0-20230221.171629-2.zip.md5
snapshots/org/opensearch/plugin/opensearch-observability/3.0.0.0-SNAPSHOT/opensearch-observability-3.0.0.0-20230221.171629-2.zip.sha1
snapshots/org/opensearch/plugin/opensearch-observability/3.0.0.0-SNAPSHOT/opensearch-observability-3.0.0.0-20230221.171629-2.zip.sha256
snapshots/org/opensearch/plugin/opensearch-observability/3.0.0.0-SNAPSHOT/opensearch-observability-3.0.0.0-20230221.171629-2.zip.sha512
snapshots/org/opensearch/plugin/opensearch-observability/maven-metadata.xml
snapshots/org/opensearch/plugin/opensearch-observability/maven-metadata.xml.md5
snapshots/org/opensearch/plugin/opensearch-observability/maven-metadata.xml.sha1
snapshots/org/opensearch/plugin/opensearch-observability/maven-metadata.xml.sha256
snapshots/org/opensearch/plugin/opensearch-observability/maven-metadata.xml.sha512
maharup@b0f1d879dff7 observability % 

@rupal-bq rupal-bq self-assigned this Feb 21, 2023
@gaiksaya
Copy link
Member

Hi @rupal-bq, shouldn't the name be opensearch-observability? https://aws.oss.sonatype.org/content/repositories/snapshots/org/opensearch/plugin/opensearch-observability/

Thanks for noticing. Output after adding rootProject.name = 'opensearch-observability'

maharup@b0f1d879dff7 observability % ./gradlew publishPluginZipPublicationToSnapshotsRepository
=======================================
OpenSearch Build Hamster says Hello!
  Gradle Version        : 7.4.2
  OS Info               : Mac OS X 13.2 (x86_64)
  JDK Version           : 11 (Amazon Corretto JDK)
  JAVA_HOME             : /Library/Java/JavaVirtualMachines/amazon-corretto-11.jdk/Contents/Home
  Random Testing Seed   : 32B6B964AEB93F20
  In FIPS 140 mode      : false
=======================================

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.4.2/userguide/command_line_interface.html#sec:command_line_warnings

BUILD SUCCESSFUL in 2s
10 actionable tasks: 3 executed, 7 up-to-date
maharup@b0f1d879dff7 observability % find snapshots | sort                                     
snapshots
snapshots/org
snapshots/org/opensearch
snapshots/org/opensearch/plugin
snapshots/org/opensearch/plugin/observability
snapshots/org/opensearch/plugin/observability/3.0.0.0-SNAPSHOT
snapshots/org/opensearch/plugin/observability/3.0.0.0-SNAPSHOT/maven-metadata.xml
snapshots/org/opensearch/plugin/observability/3.0.0.0-SNAPSHOT/maven-metadata.xml.md5
snapshots/org/opensearch/plugin/observability/3.0.0.0-SNAPSHOT/maven-metadata.xml.sha1
snapshots/org/opensearch/plugin/observability/3.0.0.0-SNAPSHOT/maven-metadata.xml.sha256
snapshots/org/opensearch/plugin/observability/3.0.0.0-SNAPSHOT/maven-metadata.xml.sha512
snapshots/org/opensearch/plugin/observability/3.0.0.0-SNAPSHOT/observability-3.0.0.0-20230221.024948-1.pom
snapshots/org/opensearch/plugin/observability/3.0.0.0-SNAPSHOT/observability-3.0.0.0-20230221.024948-1.pom.md5
snapshots/org/opensearch/plugin/observability/3.0.0.0-SNAPSHOT/observability-3.0.0.0-20230221.024948-1.pom.sha1
snapshots/org/opensearch/plugin/observability/3.0.0.0-SNAPSHOT/observability-3.0.0.0-20230221.024948-1.pom.sha256
snapshots/org/opensearch/plugin/observability/3.0.0.0-SNAPSHOT/observability-3.0.0.0-20230221.024948-1.pom.sha512
snapshots/org/opensearch/plugin/observability/3.0.0.0-SNAPSHOT/observability-3.0.0.0-20230221.024948-1.zip
snapshots/org/opensearch/plugin/observability/3.0.0.0-SNAPSHOT/observability-3.0.0.0-20230221.024948-1.zip.md5
snapshots/org/opensearch/plugin/observability/3.0.0.0-SNAPSHOT/observability-3.0.0.0-20230221.024948-1.zip.sha1
snapshots/org/opensearch/plugin/observability/3.0.0.0-SNAPSHOT/observability-3.0.0.0-20230221.024948-1.zip.sha256
snapshots/org/opensearch/plugin/observability/3.0.0.0-SNAPSHOT/observability-3.0.0.0-20230221.024948-1.zip.sha512
snapshots/org/opensearch/plugin/observability/maven-metadata.xml
snapshots/org/opensearch/plugin/observability/maven-metadata.xml.md5
snapshots/org/opensearch/plugin/observability/maven-metadata.xml.sha1
snapshots/org/opensearch/plugin/observability/maven-metadata.xml.sha256
snapshots/org/opensearch/plugin/observability/maven-metadata.xml.sha512
snapshots/org/opensearch/plugin/opensearch-observability
snapshots/org/opensearch/plugin/opensearch-observability/3.0.0.0-SNAPSHOT
snapshots/org/opensearch/plugin/opensearch-observability/3.0.0.0-SNAPSHOT/maven-metadata.xml
snapshots/org/opensearch/plugin/opensearch-observability/3.0.0.0-SNAPSHOT/maven-metadata.xml.md5
snapshots/org/opensearch/plugin/opensearch-observability/3.0.0.0-SNAPSHOT/maven-metadata.xml.sha1
snapshots/org/opensearch/plugin/opensearch-observability/3.0.0.0-SNAPSHOT/maven-metadata.xml.sha256
snapshots/org/opensearch/plugin/opensearch-observability/3.0.0.0-SNAPSHOT/maven-metadata.xml.sha512
snapshots/org/opensearch/plugin/opensearch-observability/3.0.0.0-SNAPSHOT/opensearch-observability-3.0.0.0-20230221.025800-1.pom
snapshots/org/opensearch/plugin/opensearch-observability/3.0.0.0-SNAPSHOT/opensearch-observability-3.0.0.0-20230221.025800-1.pom.md5
snapshots/org/opensearch/plugin/opensearch-observability/3.0.0.0-SNAPSHOT/opensearch-observability-3.0.0.0-20230221.025800-1.pom.sha1
snapshots/org/opensearch/plugin/opensearch-observability/3.0.0.0-SNAPSHOT/opensearch-observability-3.0.0.0-20230221.025800-1.pom.sha256
snapshots/org/opensearch/plugin/opensearch-observability/3.0.0.0-SNAPSHOT/opensearch-observability-3.0.0.0-20230221.025800-1.pom.sha512
snapshots/org/opensearch/plugin/opensearch-observability/3.0.0.0-SNAPSHOT/opensearch-observability-3.0.0.0-20230221.025800-1.zip
snapshots/org/opensearch/plugin/opensearch-observability/3.0.0.0-SNAPSHOT/opensearch-observability-3.0.0.0-20230221.025800-1.zip.md5
snapshots/org/opensearch/plugin/opensearch-observability/3.0.0.0-SNAPSHOT/opensearch-observability-3.0.0.0-20230221.025800-1.zip.sha1
snapshots/org/opensearch/plugin/opensearch-observability/3.0.0.0-SNAPSHOT/opensearch-observability-3.0.0.0-20230221.025800-1.zip.sha256
snapshots/org/opensearch/plugin/opensearch-observability/3.0.0.0-SNAPSHOT/opensearch-observability-3.0.0.0-20230221.025800-1.zip.sha512
snapshots/org/opensearch/plugin/opensearch-observability/3.0.0.0-SNAPSHOT/opensearch-observability-3.0.0.0-20230221.171629-2.pom
snapshots/org/opensearch/plugin/opensearch-observability/3.0.0.0-SNAPSHOT/opensearch-observability-3.0.0.0-20230221.171629-2.pom.md5
snapshots/org/opensearch/plugin/opensearch-observability/3.0.0.0-SNAPSHOT/opensearch-observability-3.0.0.0-20230221.171629-2.pom.sha1
snapshots/org/opensearch/plugin/opensearch-observability/3.0.0.0-SNAPSHOT/opensearch-observability-3.0.0.0-20230221.171629-2.pom.sha256
snapshots/org/opensearch/plugin/opensearch-observability/3.0.0.0-SNAPSHOT/opensearch-observability-3.0.0.0-20230221.171629-2.pom.sha512
snapshots/org/opensearch/plugin/opensearch-observability/3.0.0.0-SNAPSHOT/opensearch-observability-3.0.0.0-20230221.171629-2.zip
snapshots/org/opensearch/plugin/opensearch-observability/3.0.0.0-SNAPSHOT/opensearch-observability-3.0.0.0-20230221.171629-2.zip.md5
snapshots/org/opensearch/plugin/opensearch-observability/3.0.0.0-SNAPSHOT/opensearch-observability-3.0.0.0-20230221.171629-2.zip.sha1
snapshots/org/opensearch/plugin/opensearch-observability/3.0.0.0-SNAPSHOT/opensearch-observability-3.0.0.0-20230221.171629-2.zip.sha256
snapshots/org/opensearch/plugin/opensearch-observability/3.0.0.0-SNAPSHOT/opensearch-observability-3.0.0.0-20230221.171629-2.zip.sha512
snapshots/org/opensearch/plugin/opensearch-observability/maven-metadata.xml
snapshots/org/opensearch/plugin/opensearch-observability/maven-metadata.xml.md5
snapshots/org/opensearch/plugin/opensearch-observability/maven-metadata.xml.sha1
snapshots/org/opensearch/plugin/opensearch-observability/maven-metadata.xml.sha256
snapshots/org/opensearch/plugin/opensearch-observability/maven-metadata.xml.sha512
maharup@b0f1d879dff7 observability % 

Hey! Looks like it is still publishing observability as well as opensearch-observability? Can you recheck? Not sure if these were previous artifacts. Make clean the directory and then republish?
Thanks!

@rupal-bq
Copy link
Contributor Author

Hey! Looks like it is still publishing observability as well as opensearch-observability? Can you recheck? Not sure if these were previous artifacts. Make clean the directory and then republish? Thanks!

Sorry, I forgot to clear the directory. Output with clean directory

maharup@b0f1d879dff7 observability % ./gradlew publishPluginZipPublicationToSnapshotsRepository                                                  
=======================================
OpenSearch Build Hamster says Hello!
  Gradle Version        : 7.4.2
  OS Info               : Mac OS X 13.2 (x86_64)
  JDK Version           : 11 (Amazon Corretto JDK)
  JAVA_HOME             : /Library/Java/JavaVirtualMachines/amazon-corretto-11.jdk/Contents/Home
  Random Testing Seed   : B61715B95E9185B3
  In FIPS 140 mode      : false
=======================================

> Task :compileKotlin
w: /Users/maharup/GitRepoWorkspace/observability/src/main/kotlin/org/opensearch/observability/index/ObservabilityIndex.kt: (95, 18): 'mapping(String!, XContentType!): CreateIndexRequest!' is deprecated. Deprecated in Java
w: /Users/maharup/GitRepoWorkspace/observability/src/main/kotlin/org/opensearch/observability/index/ObservabilityIndex.kt: (96, 18): 'settings(String!, XContentType!): CreateIndexRequest!' is deprecated. Deprecated in Java
w: /Users/maharup/GitRepoWorkspace/observability/src/main/kotlin/org/opensearch/observability/metrics/RollingCounter.kt: (36, 13): Parameter 'k' is never used, could be renamed to _

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.4.2/userguide/command_line_interface.html#sec:command_line_warnings

BUILD SUCCESSFUL in 51s
10 actionable tasks: 10 executed
maharup@b0f1d879dff7 observability % find snapshots | sort                                                                                       
snapshots
snapshots/org
snapshots/org/opensearch
snapshots/org/opensearch/plugin
snapshots/org/opensearch/plugin/opensearch-observability
snapshots/org/opensearch/plugin/opensearch-observability/3.0.0.0-SNAPSHOT
snapshots/org/opensearch/plugin/opensearch-observability/3.0.0.0-SNAPSHOT/maven-metadata.xml
snapshots/org/opensearch/plugin/opensearch-observability/3.0.0.0-SNAPSHOT/maven-metadata.xml.md5
snapshots/org/opensearch/plugin/opensearch-observability/3.0.0.0-SNAPSHOT/maven-metadata.xml.sha1
snapshots/org/opensearch/plugin/opensearch-observability/3.0.0.0-SNAPSHOT/maven-metadata.xml.sha256
snapshots/org/opensearch/plugin/opensearch-observability/3.0.0.0-SNAPSHOT/maven-metadata.xml.sha512
snapshots/org/opensearch/plugin/opensearch-observability/3.0.0.0-SNAPSHOT/opensearch-observability-3.0.0.0-20230221.181442-1.pom
snapshots/org/opensearch/plugin/opensearch-observability/3.0.0.0-SNAPSHOT/opensearch-observability-3.0.0.0-20230221.181442-1.pom.md5
snapshots/org/opensearch/plugin/opensearch-observability/3.0.0.0-SNAPSHOT/opensearch-observability-3.0.0.0-20230221.181442-1.pom.sha1
snapshots/org/opensearch/plugin/opensearch-observability/3.0.0.0-SNAPSHOT/opensearch-observability-3.0.0.0-20230221.181442-1.pom.sha256
snapshots/org/opensearch/plugin/opensearch-observability/3.0.0.0-SNAPSHOT/opensearch-observability-3.0.0.0-20230221.181442-1.pom.sha512
snapshots/org/opensearch/plugin/opensearch-observability/3.0.0.0-SNAPSHOT/opensearch-observability-3.0.0.0-20230221.181442-1.zip
snapshots/org/opensearch/plugin/opensearch-observability/3.0.0.0-SNAPSHOT/opensearch-observability-3.0.0.0-20230221.181442-1.zip.md5
snapshots/org/opensearch/plugin/opensearch-observability/3.0.0.0-SNAPSHOT/opensearch-observability-3.0.0.0-20230221.181442-1.zip.sha1
snapshots/org/opensearch/plugin/opensearch-observability/3.0.0.0-SNAPSHOT/opensearch-observability-3.0.0.0-20230221.181442-1.zip.sha256
snapshots/org/opensearch/plugin/opensearch-observability/3.0.0.0-SNAPSHOT/opensearch-observability-3.0.0.0-20230221.181442-1.zip.sha512
snapshots/org/opensearch/plugin/opensearch-observability/maven-metadata.xml
snapshots/org/opensearch/plugin/opensearch-observability/maven-metadata.xml.md5
snapshots/org/opensearch/plugin/opensearch-observability/maven-metadata.xml.sha1
snapshots/org/opensearch/plugin/opensearch-observability/maven-metadata.xml.sha256
snapshots/org/opensearch/plugin/opensearch-observability/maven-metadata.xml.sha512

@gaiksaya
Copy link
Member

Added the secret role. You are good to merge.
Thanks!

@prudhvigodithi
Copy link
Member

Hey to avoid confusion in future, please add settings.gradle file with rootProject.name = 'opensearch-observability'
Example https://github.com/opensearch-project/job-scheduler/blob/main/settings.gradle#L6
@rupal-bq @ps48 @derek-ho

@rupal-bq rupal-bq merged commit 298bf9f into opensearch-project:main Feb 21, 2023
opensearch-trigger-bot bot pushed a commit that referenced this pull request Feb 21, 2023
* Add publish snapshots to maven via GHA

Signed-off-by: Rupal Mahajan <[email protected]>

* Add rootProject name in seetings.gradle to change plugin name to opensearch-observability

Signed-off-by: Rupal Mahajan <[email protected]>

---------

Signed-off-by: Rupal Mahajan <[email protected]>
(cherry picked from commit 298bf9f)
@gaiksaya
Copy link
Member

Looks like the workflow is failing @rupal-bq https://github.com/opensearch-project/observability/actions/runs/4236736463/jobs/7361884843
Can you take a look and fix it?
Thanks!

@rupal-bq
Copy link
Contributor Author

Looks like the workflow is failing @rupal-bq https://github.com/opensearch-project/observability/actions/runs/4236736463/jobs/7361884843 Can you take a look and fix it? Thanks!

I think it's failing because job-scheduler is missing. I see job scheduler PR isn't merged yet. Reporting also has same error and depends on job-scheduler.

e: Supertypes of the following classes cannot be resolved. Please make sure you have the required dependencies in the classpath:
    class org.opensearch.jobscheduler.spi.ScheduledJobParameter, unresolved supertypes: org.opensearch.common.xcontent.ToXContentObject
    class org.opensearch.commons.authuser.User, unresolved supertypes: org.opensearch.common.xcontent.ToXContent
    class org.opensearch.jobscheduler.spi.schedule.Schedule, unresolved supertypes: org.opensearch.common.xcontent.ToXContentObject
Adding -Xextended-compiler-checks argument might provide additional information.

@gaiksaya
Copy link
Member

I think this is the PR that needs to go in opensearch-project/job-scheduler#321

opensearch-trigger-bot bot pushed a commit that referenced this pull request Feb 22, 2023
* Add publish snapshots to maven via GHA

Signed-off-by: Rupal Mahajan <[email protected]>

* Add rootProject name in seetings.gradle to change plugin name to opensearch-observability

Signed-off-by: Rupal Mahajan <[email protected]>

---------

Signed-off-by: Rupal Mahajan <[email protected]>
(cherry picked from commit 298bf9f)
joshuali925 pushed a commit that referenced this pull request Feb 22, 2023
Signed-off-by: Rupal Mahajan <[email protected]>
(cherry picked from commit 298bf9f)

Co-authored-by: Rupal Mahajan <[email protected]>
YANG-DB pushed a commit that referenced this pull request Feb 22, 2023
* Add publish snapshots to maven via GHA

Signed-off-by: Rupal Mahajan <[email protected]>

* Add rootProject name in seetings.gradle to change plugin name to opensearch-observability

Signed-off-by: Rupal Mahajan <[email protected]>

---------

Signed-off-by: Rupal Mahajan <[email protected]>
(cherry picked from commit 298bf9f)

Co-authored-by: Rupal Mahajan <[email protected]>
@opensearch-trigger-bot
Copy link
Contributor

The backport to 1.x failed:

The process '/usr/bin/git' failed with exit code 1

To backport manually, run these commands in your terminal:

# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-1.x 1.x
# Navigate to the new working tree
cd .worktrees/backport-1.x
# Create a new branch
git switch --create backport/backport-1417-to-1.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 298bf9f1e7b89b468e7a1756b945256090fde339
# Push it to GitHub
git push --set-upstream origin backport/backport-1417-to-1.x
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-1.x

Then, create a pull request where the base branch is 1.x and the compare/head branch is backport/backport-1417-to-1.x.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants