Skip to content

Commit

Permalink
Modify default deploy maven repo to apache
Browse files Browse the repository at this point in the history
  • Loading branch information
lizhimins committed Nov 14, 2024
1 parent bab0523 commit e5b98e1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
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
```

0 comments on commit e5b98e1

Please sign in to comment.