Skip to content

Commit

Permalink
Merge pull request rabbitmq#5929 from rabbitmq/lukebakken/hex-publish…
Browse files Browse the repository at this point in the history
…-fixes

Fix publishing to hex.pm so that projects can be used with erlang.mk
  • Loading branch information
michaelklishin authored Sep 30, 2022
2 parents 1639e3a + 553aab5 commit d47ad8e
Show file tree
Hide file tree
Showing 17 changed files with 48 additions and 23 deletions.
7 changes: 4 additions & 3 deletions deps/amqp10_client/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,11 @@ DEP_PLUGINS = rabbit_common/mk/rabbitmq-macros.mk \
DEP_PLUGINS += elvis_mk
dep_elvis_mk = git https://github.com/inaka/elvis.mk.git master

include ../../rabbitmq-components.mk
include ../../erlang.mk
include rabbitmq-components.mk
include erlang.mk

HEX_TARBALL_FILES += $(DEPS_DIR)/../rabbitmq-components.mk
HEX_TARBALL_FILES += rabbitmq-components.mk \
git-revisions.txt

# --------------------------------------------------------------------
# Compiler flags.
Expand Down
1 change: 1 addition & 0 deletions deps/amqp10_client/erlang.mk
1 change: 1 addition & 0 deletions deps/amqp10_client/rabbitmq-components.mk
7 changes: 4 additions & 3 deletions deps/amqp10_common/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,10 @@ DEP_PLUGINS = rabbit_common/mk/rabbitmq-build.mk \
rabbit_common/mk/rabbitmq-test.mk \
rabbit_common/mk/rabbitmq-tools.mk

include ../../rabbitmq-components.mk
include ../../erlang.mk
include rabbitmq-components.mk
include erlang.mk

HEX_TARBALL_FILES += $(DEPS_DIR)/../rabbitmq-components.mk
HEX_TARBALL_FILES += rabbitmq-components.mk \
git-revisions.txt

-include development.post.mk
1 change: 1 addition & 0 deletions deps/amqp10_common/erlang.mk
1 change: 1 addition & 0 deletions deps/amqp10_common/rabbitmq-components.mk
7 changes: 4 additions & 3 deletions deps/amqp_client/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ DEP_PLUGINS = rabbit_common/mk/rabbitmq-build.mk \

PLT_APPS = ssl public_key

include ../../rabbitmq-components.mk
include ../../erlang.mk
include rabbitmq-components.mk
include erlang.mk

HEX_TARBALL_FILES += $(DEPS_DIR)/../rabbitmq-components.mk
HEX_TARBALL_FILES += rabbitmq-components.mk \
git-revisions.txt
1 change: 1 addition & 0 deletions deps/amqp_client/erlang.mk
1 change: 1 addition & 0 deletions deps/amqp_client/rabbitmq-components.mk
18 changes: 13 additions & 5 deletions deps/rabbit_common/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ define PROJECT_APP_EXTRA_KEYS
{licenses, ["MPL-2.0"]},
{links, [
{"Website", "https://www.rabbitmq.com/"},
{"GitHub", "https://github.com/rabbitmq/rabbitmq-server/tree/master/deps/rabbit_common"}
{"GitHub", "https://github.com/rabbitmq/rabbitmq-server/tree/main/deps/rabbit_common"}
]},
{build_tools, ["make", "rebar3"]},
{files, [
Expand All @@ -20,7 +20,7 @@ define HEX_TARBALL_EXTRA_METADATA
licenses => [<<"MPL-2.0">>],
links => #{
<<"Website">> => <<"https://www.rabbitmq.com">>,
<<"GitHub">> => <<"https://github.com/rabbitmq/rabbitmq-server/tree/master/deps/rabbit_common">>
<<"GitHub">> => <<"https://github.com/rabbitmq/rabbitmq-server/tree/main/deps/rabbit_common">>
}
}
endef
Expand Down Expand Up @@ -49,9 +49,17 @@ DEP_PLUGINS = $(PROJECT)/mk/rabbitmq-build.mk \

PLT_APPS += mnesia crypto ssl

include ../../rabbitmq-components.mk
include ../../erlang.mk
include rabbitmq-components.mk
include erlang.mk

HEX_TARBALL_FILES += $(DEPS_DIR)/../rabbitmq-components.mk
HEX_TARBALL_FILES += rabbitmq-components.mk \
git-revisions.txt \
mk/rabbitmq-build.mk \
mk/rabbitmq-dist.mk \
mk/rabbitmq-early-test.mk \
mk/rabbitmq-hexpm.mk \
mk/rabbitmq-macros.mk \
mk/rabbitmq-test.mk \
mk/rabbitmq-tools.mk

-include development.post.mk
1 change: 1 addition & 0 deletions deps/rabbit_common/erlang.mk
1 change: 1 addition & 0 deletions deps/rabbit_common/rabbitmq-components.mk
2 changes: 1 addition & 1 deletion deps/rabbitmq_auth_backend_cache/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ In the classic config format:
].
```

The following example combines this backend with the [HTTP backend](https://github.com/rabbitmq/rabbitmq-auth-backend-http/tree/master) and its [example Spring Boot application](https://github.com/rabbitmq/rabbitmq-auth-backend-http/tree/master/examples):
The following example combines this backend with the [HTTP backend](https://github.com/rabbitmq/rabbitmq-server/tree/main/deps/rabbitmq_auth_backend_http) and its [example Spring Boot application](https://github.com/rabbitmq/rabbitmq-server/tree/main/deps/rabbitmq_auth_backend_http/examples):


auth_backends.1 = cache
Expand Down
2 changes: 1 addition & 1 deletion deps/rabbitmq_peer_discovery_k8s/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ are not in scope for this plugin.
For a more comprehensive open source RabbitMQ on Kubernetes deployment solution,
see the [RabbitMQ Cluster Operator for Kubernetes](https://www.rabbitmq.com/kubernetes/operator/operator-overview.html).
The Operator is developed [on GitHub](https://github.com/rabbitmq/cluster-operator/) and contains its
own [set of examples](https://github.com/rabbitmq/cluster-operator/tree/master/docs/examples).
own [set of examples](https://github.com/rabbitmq/cluster-operator/tree/main/docs/examples).


## Supported RabbitMQ Versions
Expand Down
4 changes: 1 addition & 3 deletions deps/rabbitmq_peer_discovery_k8s/examples/gke/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
# Deploy RabbitMQ on Kubernetes with the Kubernetes Peer Discovery Plugin to GKE

This example has graduated and moved to [a separate repository](https://github.com/rabbitmq/diy-kubernetes-examples/tree/master/gke).
Please use the RabbitMQ Cluster Operator: [link](https://www.rabbitmq.com/kubernetes/operator/operator-overview.html)
8 changes: 6 additions & 2 deletions deps/rabbitmq_peer_discovery_k8s/examples/kind/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Deploy RabbitMQ on Kubernetes with the Kubernetes Peer Discovery Plugin to Kind
# Recommended Deployment

This example has graduated and moved to [a separate repository](https://github.com/rabbitmq/diy-kubernetes-examples/tree/master/kind).
In Production, use the RabbitMQ Cluster Operator: [link](https://www.rabbitmq.com/kubernetes/operator/operator-overview.html)

## Deploy RabbitMQ on Kubernetes with the Kubernetes Peer Discovery Plugin to Kind

This example has graduated and moved to [a separate repository](https://github.com/rabbitmq/diy-kubernetes-examples/tree/master/kind#production-non-suitability)
8 changes: 6 additions & 2 deletions deps/rabbitmq_peer_discovery_k8s/examples/minikube/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Deploy RabbitMQ on Kubernetes with the Kubernetes Peer Discovery Plugin to Minikube
# Recommended Deployment

This example has graduated and moved to [a separate repository](https://github.com/rabbitmq/diy-kubernetes-examples/tree/master/minikube).
In Production, use the RabbitMQ Cluster Operator: [link](https://www.rabbitmq.com/kubernetes/operator/operator-overview.html)

## Deploy RabbitMQ on Kubernetes with the Kubernetes Peer Discovery Plugin to Minikube

This example has graduated and moved to [a separate repository](https://github.com/rabbitmq/diy-kubernetes-examples/tree/master/minikube).

0 comments on commit d47ad8e

Please sign in to comment.