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

Modify default deploy maven repo to apache #88

Merged
merged 1 commit into from
Nov 14, 2024
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions java/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ java_library(
"@maven//:com_google_api_grpc_proto_google_common_protos",
"@maven//:javax_annotation_javax_annotation_api", # gRPC needs this in order to compile in Java 11 and Java 14
],
tags = ["maven_coordinates=org.apache.rocketmq:rocketmq-proto-test:{pom_version}"]
tags = ["maven_coordinates=org.apache.rocketmq:rocketmq-proto:{pom_version}"]
)

assemble_maven(
Expand All @@ -70,7 +70,7 @@ assemble_maven(

deploy_maven(
name = "deploy-maven",
release = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/",
snapshot = "https://s01.oss.sonatype.org/content/repositories/snapshots",
release = "https://repository.apache.org/service/local/staging/deploy/maven2",
snapshot = "https://repository.apache.org/content/repositories/snapshots",
target = ":assemble-maven",
)
4 changes: 4 additions & 0 deletions java/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,8 @@ build and deploy snapshot
export DEPLOY_MAVEN_USERNAME=your_username
export DEPLOY_MAVEN_PASSWORD=your_password
bazel run //java:deploy-maven snapshot

# release to apache repo
# https://medium.com/wix-engineering/how-to-publish-artifacts-from-bazel-to-maven-central-71da0cf990f5
bazel run //java:deploy-maven -- snapshot --gpg
```
Loading