-
Notifications
You must be signed in to change notification settings - Fork 569
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
Automatically add copyright header upon creating a new file #8984
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excellent! This will be a big QoL improvement 👍 It happens so often that I check in new classes without the license, but no more! 🚀
I did a bit of testing and it works really well. I've found 2 differences to the license headers being added via maven.
First, a blank line is added between the license header and the package definition. This is because of a formatting setting in IntelliJ.
🔧 Please disable it by adding to the .idea/copyright/profiles_settings.xml
:
<LanguageOptions name="__TEMPLATE__">
<option name="addBlankAfter" value="false" />
</LanguageOptions>
I've described the other difference in the comments.
853edad
to
9be0ad0
Compare
bors merge |
8984: Automatically add copyright header upon creating a new file r=remcowesterhoud a=remcowesterhoud ## Description <!-- Please explain the changes you made here. --> These settings in intellij will automatically add the correct copyright header to a new file that's created. By default it will add the Zeebe 1.1 license header. There are 5 exceptions to this: 1. zeebe-java-client 2. zeebe-exporter-api 3. zeebe-protocol 4. zeebe-gateway-protocol-impl 5. zeebe-bpmn-model For these 5 modules we will automatically add the Apache 2.0 license header. The Go client should also be included in this list, however IntelliJ scopes only support the addition of packages. Since these packages are a Java concept we cannot include the Go files to these exceptions. No copyright header will be added automatically for new files in the go client. Co-authored-by: Remco Westerhoud <remco@westerhoud.nl>
Timed out. |
bors retry |
8984: Automatically add copyright header upon creating a new file r=remcowesterhoud a=remcowesterhoud ## Description <!-- Please explain the changes you made here. --> These settings in intellij will automatically add the correct copyright header to a new file that's created. By default it will add the Zeebe 1.1 license header. There are 5 exceptions to this: 1. zeebe-java-client 2. zeebe-exporter-api 3. zeebe-protocol 4. zeebe-gateway-protocol-impl 5. zeebe-bpmn-model For these 5 modules we will automatically add the Apache 2.0 license header. The Go client should also be included in this list, however IntelliJ scopes only support the addition of packages. Since these packages are a Java concept we cannot include the Go files to these exceptions. No copyright header will be added automatically for new files in the go client. Co-authored-by: Remco Westerhoud <remco@westerhoud.nl>
bors cancel |
These settings in intellij will automatically add the correct copyright header to a new file that's created. By default it will add the Zeebe 1.1 license header. There are 5 exceptions to this: 1. zeebe-java-client 2. zeebe-exporter-api 3. zeebe-protocol 4. zeebe-gateway-protocol-impl 5. zeebe-bpmn-model For these 5 modules we will automatically add the Apache 2.0 license header. The Go client should also be included in this list, however IntelliJ scopes only support the addition of packages. Since these packages are a Java concept we cannot include the Go files to these exceptions. No copyright header will be added automatically for new files in the go client.
9be0ad0
to
569f7d2
Compare
Canceled. |
bors merge |
8984: Automatically add copyright header upon creating a new file r=remcowesterhoud a=remcowesterhoud ## Description <!-- Please explain the changes you made here. --> These settings in intellij will automatically add the correct copyright header to a new file that's created. By default it will add the Zeebe 1.1 license header. There are 5 exceptions to this: 1. zeebe-java-client 2. zeebe-exporter-api 3. zeebe-protocol 4. zeebe-gateway-protocol-impl 5. zeebe-bpmn-model For these 5 modules we will automatically add the Apache 2.0 license header. The Go client should also be included in this list, however IntelliJ scopes only support the addition of packages. Since these packages are a Java concept we cannot include the Go files to these exceptions. No copyright header will be added automatically for new files in the go client. Co-authored-by: Remco Westerhoud <remco@westerhoud.nl>
Timed out. |
Don't be lazy now bors 😢 bors merge |
8984: Automatically add copyright header upon creating a new file r=remcowesterhoud a=remcowesterhoud ## Description <!-- Please explain the changes you made here. --> These settings in intellij will automatically add the correct copyright header to a new file that's created. By default it will add the Zeebe 1.1 license header. There are 5 exceptions to this: 1. zeebe-java-client 2. zeebe-exporter-api 3. zeebe-protocol 4. zeebe-gateway-protocol-impl 5. zeebe-bpmn-model For these 5 modules we will automatically add the Apache 2.0 license header. The Go client should also be included in this list, however IntelliJ scopes only support the addition of packages. Since these packages are a Java concept we cannot include the Go files to these exceptions. No copyright header will be added automatically for new files in the go client. Co-authored-by: Remco Westerhoud <remco@westerhoud.nl>
Timed out. |
😡 |
Description
These settings in intellij will automatically add the correct copyright header to a new file that's created. By default it will add the Zeebe 1.1 license header. There are 5 exceptions to this:
For these 5 modules we will automatically add the Apache 2.0 license header.
The Go client should also be included in this list, however IntelliJ scopes only support the addition of packages. Since these packages are a Java concept we cannot include the Go files to these exceptions. No copyright header will be added automatically for new files in the go client.
Definition of Done
Not all items need to be done depending on the issue and the pull request.
Code changes:
backport stable/1.3
) to the PR, in case that fails you need to create backports manually.Testing:
Documentation: