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

Disabled publish task #221

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 2 additions & 4 deletions .github/workflows/publish_snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@ jobs:

- name: publish snapshots to build repositories
run: |
./gradlew :opensearch-hadoop-mr:publishMainPublicationToBuildRepository
./gradlew :opensearch-hadoop-hive:publishMainPublicationToBuildRepository
./gradlew -S -Dbuild.snapshot=true -Dorg.gradle.warning.mode=summary distribution

- name: set required env variables
Expand All @@ -71,8 +69,8 @@ jobs:
mkdir -p "${{ env.MAVEN_HOME_CLIENT }}/opensearch-spark-20_2.12/${{ env.VERSION }}-SNAPSHOT"
mkdir -p "${{ env.MAVEN_HOME_CLIENT }}/opensearch-spark-30_2.12/${{ env.VERSION }}-SNAPSHOT"
mkdir -p "${{ env.MAVEN_HOME_CLIENT }}/opensearch-spark-30_2.13/${{ env.VERSION }}-SNAPSHOT"
cp -R mr/build/repo/org/opensearch/client/* ${{ env.MAVEN_HOME_CLIENT }}
cp -R hive/build/repo/org/opensearch/client/* ${{ env.MAVEN_HOME_CLIENT }}
cp -R mr/build/distributions/* ${{ env.MAVEN_HOME_CLIENT }}
cp -R hive/build/distributions/* ${{ env.MAVEN_HOME_CLIENT }}
cp -R dist/build/distributions/* ${{ env.MAVEN_HOME_CLIENT }}/opensearch-hadoop/${{ env.VERSION }}-SNAPSHOT
cp -R spark/sql-20/build/distributions/opensearch-spark-20_2.10* ${{ env.MAVEN_HOME_CLIENT }}/opensearch-spark-20_2.10/${{ env.VERSION }}-SNAPSHOT
cp -R spark/sql-20/build/distributions/opensearch-spark-20_2.11* ${{ env.MAVEN_HOME_CLIENT }}/opensearch-spark-20_2.11/${{ env.VERSION }}-SNAPSHOT
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@ class BuildPlugin implements Plugin<Project> {
// If we are working with a project that has a scala variant (see below), we need to modify the pom's
// artifact id which the publish task does not like (it fails validation when run).
project.getTasks().withType(PublishToMavenRepository) { PublishToMavenRepository m ->
m.enabled = true
m.enabled = false
}

// Configure Scala Variants if present
Expand Down