Skip to content

Commit f71303b

Browse files
authored
Switch default branch to main (#506)
Signed-off-by: Pierangelo Di Pilato <[email protected]>
1 parent d59b333 commit f71303b

File tree

20 files changed

+56
-54
lines changed

20 files changed

+56
-54
lines changed

.github/workflows/branch.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches:
66
- master
7+
- main
78
- 2.[0-9]+
89

910
jobs:

.github/workflows/pr.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
pull_request:
55
branches:
66
- master
7+
- main
78
- 2.[0-9]+
89

910
jobs:

CONTRIBUTING.md

+10-10
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ your code. Thanks for getting involved! :rocket:
2323
* [Getting Started](#getting-started)
2424
* [Branches](#branches)
2525
* [Commit Messages](#commit-messages)
26-
* [Staying current with master](#staying-current-with-master)
26+
* [Staying current with main](#staying-current-with-main)
2727
* [Submitting and Updating a Pull Request](#submitting-and-updating-a-pull-request)
2828
* [Congratulations!](#congratulations)
2929

@@ -47,7 +47,7 @@ organized.
4747

4848
```console
4949
git fetch upstream
50-
git reset --hard upstream/master
50+
git reset --hard upstream/main
5151
git checkout FETCH_HEAD
5252
git checkout -b 48-fix-http-agent-error
5353
```
@@ -102,19 +102,19 @@ Date: Thu Feb 2 11:41:15 2018 -0800
102102
Notice the `Author` and `Signed-off-by` lines match. If they don't your PR will
103103
be rejected by the automated DCO check.
104104

105-
## Staying Current with `master`
105+
## Staying Current with `main`
106106

107-
As you are working on your branch, changes may happen on `master`. Before
107+
As you are working on your branch, changes may happen on `main`. Before
108108
submitting your pull request, be sure that your branch has been updated
109109
with the latest commits.
110110

111111
```console
112112
git fetch upstream
113-
git rebase upstream/master
113+
git rebase upstream/main
114114
```
115115

116116
This may cause conflicts if the files you are changing on your branch are
117-
also changed on master. Error messages from `git` will indicate if conflicts
117+
also changed on main. Error messages from `git` will indicate if conflicts
118118
exist and what files need attention. Resolve the conflicts in each file, then
119119
continue with the rebase with `git rebase --continue`.
120120

@@ -131,15 +131,15 @@ git push -f origin 48-fix-http-agent-error
131131
Before submitting a pull request, you should make sure that all of the tests
132132
successfully pass.
133133

134-
Once you have sent your pull request, `master` may continue to evolve
135-
before your pull request has landed. If there are any commits on `master`
134+
Once you have sent your pull request, `main` may continue to evolve
135+
before your pull request has landed. If there are any commits on `main`
136136
that conflict with your changes, you may need to update your branch with
137137
these changes before the pull request can land. Resolve conflicts the same
138138
way as before.
139139

140140
```console
141141
git fetch upstream
142-
git rebase upstream/master
142+
git rebase upstream/main
143143
# fix any potential conflicts
144144
git push -f origin 48-fix-http-agent-error
145145
```
@@ -156,7 +156,7 @@ for details.
156156

157157
```console
158158
git commit -m "fixup: fix typo"
159-
git rebase -i upstream/master # follow git instructions
159+
git rebase -i upstream/main # follow git instructions
160160
```
161161

162162
Once you have rebased your commits, you can force push to your fork as before.

MAINTAINERS.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Currently, active maintainers who may be found in the CNCF Slack.
1010

1111
The release process is automated with Github actions. In order to perform a release:
1212

13-
1. Check if master CI pass.
13+
1. Check if main CI pass.
1414
1. Open the Github repository main page and go in the tab "Actions". Trigger the workflow "Bump version" and insert the new version to release. This will create a new release PR.
1515
1. Check the release PR, merge it and cleanup the created branch.
1616
1. Wait for the CI to complete the deploy of the modules to OSSRH.
@@ -44,14 +44,14 @@ When landing pull requests, be sure to check the first line uses an appropriate
4444

4545
## Branch Management
4646

47-
The `master` branch is the bleeding edge. New major versions of the module
47+
The `main` branch is the bleeding edge. New major versions of the module
4848
are cut from this branch and tagged. If you intend to submit a pull request
49-
you should use `master HEAD` as your starting point.
49+
you should use `main HEAD` as your starting point.
5050

5151
Each major release will result in a new branch and tag. For example, the
5252
release of version 1.0.0 of the module will result in a `v1.0.0` tag on the
5353
release commit, and a new branch `v1.x.y` for subsequent minor and patch
5454
level releases of that major version. However, development will continue
55-
apace on `master` for the next major version - e.g. 2.0.0. Version branches
55+
apace on `main` for the next major version - e.g. 2.0.0. Version branches
5656
are only created for each major version. Minor and patch level releases
5757
are simply tagged.

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -98,13 +98,13 @@ You can check out the examples in the [examples](examples) directory.
9898

9999
Each SDK may have its own unique processes, tooling and guidelines, common
100100
governance related material can be found in the
101-
[CloudEvents `community`](https://github.com/cloudevents/spec/tree/master/community)
101+
[CloudEvents `community`](https://github.com/cloudevents/spec/tree/main/docs)
102102
directory. In particular, in there you will find information concerning how SDK
103103
projects are
104-
[managed](https://github.com/cloudevents/spec/blob/master/community/SDK-GOVERNANCE.md),
105-
[guidelines](https://github.com/cloudevents/spec/blob/master/community/SDK-maintainer-guidelines.md)
104+
[managed](https://github.com/cloudevents/spec/blob/main/docs/SDK-GOVERNANCE.md),
105+
[guidelines](https://github.com/cloudevents/spec/blob/main/docs/SDK-maintainer-guidelines.md)
106106
for how PR reviews and approval, and our
107-
[Code of Conduct](https://github.com/cloudevents/spec/blob/master/community/GOVERNANCE.md#additional-information)
107+
[Code of Conduct](https://github.com/cloudevents/spec/blob/main/docs/GOVERNANCE.md#additional-information)
108108
information.
109109

110110
[http4k]: https://www.http4k.org/guide/reference/cloud_events/

core/src/main/java/io/cloudevents/core/extensions/DistributedTracingExtension.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
/**
2727
* This extension embeds context from Distributed Tracing so that distributed systems can include traces that span an event-driven system.
2828
*
29-
* @see <a href="https://github.com/cloudevents/spec/blob/master/extensions/distributed-tracing.md">https://github.com/cloudevents/spec/blob/master/extensions/distributed-tracing.md</a>
29+
* @see <a href="https://github.com/cloudevents/spec/blob/main/extensions/distributed-tracing.md">https://github.com/cloudevents/spec/blob/main/extensions/distributed-tracing.md</a>
3030
*/
3131
public final class DistributedTracingExtension implements CloudEventExtension {
3232

docs/_config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ search_enabled: true
1111
gh_edit_link: true
1212
gh_edit_link_text: "Edit this page on GitHub."
1313
gh_edit_repository: "https://github.com/cloudevents/sdk-java"
14-
gh_edit_branch: "master"
14+
gh_edit_branch: "main"
1515
gh_edit_source: docs
1616
gh_edit_view_mode: "tree"
1717

docs/amqp-proton.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,5 @@ public class ProtonAmqpMessageFactory {
4343
The example uses the `vertx-proton` integration to send/receive CloudEvent
4444
messages over AMQP:
4545

46-
- [Vertx AmqpServer](https://github.com/cloudevents/sdk-java/tree/master/examples/amqp-proton/src/main/java/io/cloudevents/examples/amqp/vertx/AmqpServer.java)
47-
- [Vertx AmqpClient](https://github.com/cloudevents/sdk-java/tree/master/examples/amqp-proton/src/main/java/io/cloudevents/examples/amqp/vertx/AmqpClient.java)
46+
- [Vertx AmqpServer](https://github.com/cloudevents/sdk-java/tree/main/examples/amqp-proton/src/main/java/io/cloudevents/examples/amqp/vertx/AmqpServer.java)
47+
- [Vertx AmqpClient](https://github.com/cloudevents/sdk-java/tree/main/examples/amqp-proton/src/main/java/io/cloudevents/examples/amqp/vertx/AmqpClient.java)

docs/http-basic.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,6 @@ public class HttpMessageFactory {
4848

4949
## Examples
5050

51-
- [Standard Java HttpServer](https://github.com/cloudevents/sdk-java/tree/master/examples/basic-http/src/main/java/io/cloudevents/examples/http/basic/BasicHttpServer.java)
52-
- [Http Client with HttpURLConnection](https://github.com/cloudevents/sdk-java/tree/master/examples/basic-http/src/main/java/io/cloudevents/examples/http/basic/HttpURLConnectionClient.java)
53-
- [Http Servlet with Jetty](https://github.com/cloudevents/sdk-java/tree/master/examples/basic-http/src/main/java/io/cloudevents/examples/http/basic/JettyServer.java)
51+
- [Standard Java HttpServer](https://github.com/cloudevents/sdk-java/tree/main/examples/basic-http/src/main/java/io/cloudevents/examples/http/basic/BasicHttpServer.java)
52+
- [Http Client with HttpURLConnection](https://github.com/cloudevents/sdk-java/tree/main/examples/basic-http/src/main/java/io/cloudevents/examples/http/basic/HttpURLConnectionClient.java)
53+
- [Http Servlet with Jetty](https://github.com/cloudevents/sdk-java/tree/main/examples/basic-http/src/main/java/io/cloudevents/examples/http/basic/JettyServer.java)

docs/http-jakarta-restful-ws-jakarta.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -133,5 +133,5 @@ To migrate to use EE 9+ supported package - replace `cloudevents-http-restful-ws
133133

134134
## Examples
135135

136-
- [Microprofile and Liberty](https://github.com/cloudevents/sdk-java/tree/master/examples/restful-ws-micropofile-liberty)
136+
- [Microprofile and Liberty](https://github.com/cloudevents/sdk-java/tree/main/examples/restful-ws-micropofile-liberty)
137137

docs/http-jakarta-restful-ws.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -118,5 +118,5 @@ public class CloudEventSender {
118118

119119
## Examples
120120

121-
- [Quarkus and Resteasy](https://github.com/cloudevents/sdk-java/tree/master/examples/restful-ws-quarkus)
122-
- [Jersey and Spring Boot](https://github.com/cloudevents/sdk-java/tree/master/examples/restful-ws-spring-boot)
121+
- [Quarkus and Resteasy](https://github.com/cloudevents/sdk-java/tree/main/examples/restful-ws-quarkus)
122+
- [Jersey and Spring Boot](https://github.com/cloudevents/sdk-java/tree/main/examples/restful-ws-spring-boot)

docs/http-vertx.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,4 +95,4 @@ public class CloudEventClientVerticle extends AbstractVerticle {
9595

9696
## Examples:
9797

98-
- [Vert.x Client and Server](https://github.com/cloudevents/sdk-java/tree/master/examples/vertx)
98+
- [Vert.x Client and Server](https://github.com/cloudevents/sdk-java/tree/main/examples/vertx)

docs/index.md

+14-14
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ and related interfaces, in order to interoperate with the other components of
7575
the SDK, check out the [API module documentation](api.md).
7676

7777
You can also check out the
78-
[**Examples**](https://github.com/cloudevents/sdk-java/tree/master/examples).
78+
[**Examples**](https://github.com/cloudevents/sdk-java/tree/main/examples).
7979

8080
## Modules
8181

@@ -121,17 +121,17 @@ You can look at the latest published artifacts on
121121
[HTTP Protocol Binding]: https://github.com/cloudevents/spec/blob/v1.0/http-protocol-binding.md
122122
[Kafka Protocol Binding]: https://github.com/cloudevents/spec/blob/v1.0/kafka-protocol-binding.md
123123
[AMQP Protocol Binding]: https://github.com/cloudevents/spec/blob/v1.0/amqp-protocol-binding.md
124-
[`cloudevents-api`]: https://github.com/cloudevents/sdk-java/tree/master/api
125-
[`cloudevents-bom`]: https://github.com/cloudevents/sdk-java/tree/master/bom
126-
[`cloudevents-core`]: https://github.com/cloudevents/sdk-java/tree/master/core
127-
[`cloudevents-json-jackson`]: https://github.com/cloudevents/sdk-java/tree/master/formats/json-jackson
128-
[`cloudevents-protobuf`]: https://github.com/cloudevents/sdk-java/tree/master/formats/protobuf
129-
[`cloudevents-xml`]: https://github.com/cloudevents/sdk-java/tree/master/formats/xml
130-
[`cloudevents-http-vertx`]: https://github.com/cloudevents/sdk-java/tree/master/http/vertx
131-
[`cloudevents-http-basic`]: https://github.com/cloudevents/sdk-java/tree/master/http/basic
132-
[`cloudevents-http-restful-ws`]: https://github.com/cloudevents/sdk-java/tree/master/http/restful-ws
133-
[`cloudevents-http-restful-ws-jakarta`]: https://github.com/cloudevents/sdk-java/tree/master/http/restful-ws-jakarta
134-
[`cloudevents-kafka`]: https://github.com/cloudevents/sdk-java/tree/master/kafka
135-
[`cloudevents-amqp-proton`]: https://github.com/cloudevents/sdk-java/tree/master/amqp
136-
[`cloudevents-spring`]: https://github.com/cloudevents/sdk-java/tree/master/spring
124+
[`cloudevents-api`]: https://github.com/cloudevents/sdk-java/tree/main/api
125+
[`cloudevents-bom`]: https://github.com/cloudevents/sdk-java/tree/main/bom
126+
[`cloudevents-core`]: https://github.com/cloudevents/sdk-java/tree/main/core
127+
[`cloudevents-json-jackson`]: https://github.com/cloudevents/sdk-java/tree/main/formats/json-jackson
128+
[`cloudevents-protobuf`]: https://github.com/cloudevents/sdk-java/tree/main/formats/protobuf
129+
[`cloudevents-xml`]: https://github.com/cloudevents/sdk-java/tree/main/formats/xml
130+
[`cloudevents-http-vertx`]: https://github.com/cloudevents/sdk-java/tree/main/http/vertx
131+
[`cloudevents-http-basic`]: https://github.com/cloudevents/sdk-java/tree/main/http/basic
132+
[`cloudevents-http-restful-ws`]: https://github.com/cloudevents/sdk-java/tree/main/http/restful-ws
133+
[`cloudevents-http-restful-ws-jakarta`]: https://github.com/cloudevents/sdk-java/tree/main/http/restful-ws-jakarta
134+
[`cloudevents-kafka`]: https://github.com/cloudevents/sdk-java/tree/main/kafka
135+
[`cloudevents-amqp-proton`]: https://github.com/cloudevents/sdk-java/tree/main/amqp
136+
[`cloudevents-spring`]: https://github.com/cloudevents/sdk-java/tree/main/spring
137137
[http4k]: https://www.http4k.org/guide/modules/cloud_events/

docs/kafka.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ nav_order: 5
1010
Implementation of Kafka Protocol Binding to send and receive CloudEvents.
1111

1212
For Maven based projects, use the following to configure the
13-
[Kafka Protocol Binding](https://github.com/cloudevents/spec/blob/master/kafka-protocol-binding.md):
13+
[Kafka Protocol Binding](https://github.com/cloudevents/spec/blob/main/kafka-protocol-binding.md):
1414

1515
```xml
1616

@@ -64,7 +64,7 @@ public class CloudEventProducer {
6464
You can configure the Encoding and EventFormat to use to emit the event.
6565

6666
Check out the
67-
[`CloudEventSerializer`](https://github.com/cloudevents/sdk-java/tree/master/kafka/src/main/java/io/cloudevents/kafka/CloudEventSerializer.java)
67+
[`CloudEventSerializer`](https://github.com/cloudevents/sdk-java/tree/main/kafka/src/main/java/io/cloudevents/kafka/CloudEventSerializer.java)
6868
javadoc for more info.
6969

7070
### Partition key extension
@@ -81,7 +81,7 @@ producerProps.put(
8181

8282
When using in your producer, this interceptor will pick the `partitionkey`
8383
extension from the event and will set it as record key, regardless of the input record key.
84-
Check out the [`PartitionKeyExtensionInterceptor`](https://github.com/cloudevents/sdk-java/tree/master/kafka/src/main/java/io/cloudevents/kafka/PartitionKeyExtensionInterceptor.java)
84+
Check out the [`PartitionKeyExtensionInterceptor`](https://github.com/cloudevents/sdk-java/tree/main/kafka/src/main/java/io/cloudevents/kafka/PartitionKeyExtensionInterceptor.java)
8585
javadoc for more info.
8686

8787
## Consuming CloudEvents

docs/spring.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -194,12 +194,12 @@ public Mono<CloudEvent> event(@RequestBody Mono<CloudEvent> body) {
194194

195195
Check out the integration tests and samples:
196196

197-
- [spring-reactive](https://github.com/cloudevents/sdk-java/tree/master/examples/spring-reactive)
197+
- [spring-reactive](https://github.com/cloudevents/sdk-java/tree/main/examples/spring-reactive)
198198
shows how to receive and send CloudEvents through HTTP using Spring Boot and
199199
Webflux.
200200

201-
- [spring-rsocket](https://github.com/cloudevents/sdk-java/tree/master/examples/spring-rsocket)
201+
- [spring-rsocket](https://github.com/cloudevents/sdk-java/tree/main/examples/spring-rsocket)
202202
shows how to receive and send CloudEvents through RSocket using Spring Boot.
203203

204-
- [spring-cloud-function](https://github.com/cloudevents/sdk-java/tree/master/examples/spring-function)
204+
- [spring-cloud-function](https://github.com/cloudevents/sdk-java/tree/main/examples/spring-function)
205205
shows how to consume and process CloudEvents via Spring Cloud Function.

examples/kafka/src/main/java/io/cloudevents/examples/kafka/SampleProducer.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public static void main(String[] args) {
4343

4444
// Create an event template to set basic CloudEvent attributes
4545
CloudEventBuilder eventTemplate = CloudEventBuilder.v1()
46-
.withSource(URI.create("https://github.com/cloudevents/sdk-java/tree/master/examples/kafka"))
46+
.withSource(URI.create("https://github.com/cloudevents/sdk-java/tree/main/examples/kafka"))
4747
.withType("producer.example");
4848

4949
for (int i = 0; i < MESSAGE_COUNT; i++) {

examples/vertx/src/main/java/io/cloudevents/examples/vertx/SampleHTTPClient.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public static void main(String[] args) {
3232

3333
// Create an event template to set basic CloudEvent attributes.
3434
CloudEventBuilder eventTemplate = CloudEventBuilder.v1()
35-
.withSource(URI.create("https://github.com/cloudevents/sdk-java/tree/master/examples/vertx"))
35+
.withSource(URI.create("https://github.com/cloudevents/sdk-java/tree/main/examples/vertx"))
3636
.withType("vertx.example");
3737

3838
// Send NUM_EVENTS events.

formats/json-jackson/src/main/java/io/cloudevents/jackson/CloudEventDeserializer.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ private boolean shouldSkipExtensionName(String extensionName) {
233233
*
234234
* @param name the extension name
235235
* @return true if extension name is valid, false otherwise
236-
* @see <a href="https://github.com/cloudevents/spec/blob/master/spec.md#attribute-naming-convention">attribute-naming-convention</a>
236+
* @see <a href="https://github.com/cloudevents/spec/blob/main/spec.md#attribute-naming-convention">attribute-naming-convention</a>
237237
*/
238238
private boolean isValidExtensionName(String name) {
239239
for (int i = 0; i < name.length(); i++) {

http/restful-ws-jakarta/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ Javadocs: [![Javadocs](http://www.javadoc.io/badge/io.cloudevents/cloudevents-ht
44

55
Documentation: https://cloudevents.github.io/sdk-java/http-jakarta-restful-ws
66

7-
The code for this package lies within the [restful-ws](https://github.com/cloudevents/sdk-java/tree/master/http/restful-ws) directory and is copied within here and has `javax.` replaced with `jakarta.`
7+
The code for this package lies within the [restful-ws](https://github.com/cloudevents/sdk-java/tree/main/http/restful-ws) directory and is copied within here and has `javax.` replaced with `jakarta.`

kafka/src/main/java/io/cloudevents/kafka/PartitionKeyExtensionInterceptor.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
/**
1111
* This {@link ProducerInterceptor} implements the partitioning extension,
12-
* as described in the <a href="https://github.com/cloudevents/spec/blob/master/kafka-protocol-binding.md#31-key-mapping">CloudEvents Kafka specification</a>.
12+
* as described in the <a href="https://github.com/cloudevents/spec/blob/main/kafka-protocol-binding.md#31-key-mapping">CloudEvents Kafka specification</a>.
1313
* <p>
1414
* When using in your {@link org.apache.kafka.clients.producer.KafkaProducer},
1515
* it will pick the {@code partitionkey} extension from the event and will set it as record key.

0 commit comments

Comments
 (0)