Skip to content

Commit d83a80f

Browse files
committed
Merge remote-tracking branch 'origin/update-from-template-github_com_xdev-software_vaadin-addon-template_master' into develop
2 parents 06607aa + 7401516 commit d83a80f

4 files changed

Lines changed: 180 additions & 144 deletions

File tree

‎.github/workflows/check-build.yml‎

Lines changed: 58 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -33,19 +33,20 @@ jobs:
3333
steps:
3434
- uses: actions/checkout@v7
3535

36-
- name: Set up JDK
37-
uses: actions/setup-java@v6
38-
with:
39-
distribution: ${{ matrix.distribution }}
40-
java-version: ${{ matrix.java }}
41-
42-
- name: Cache Maven
43-
uses: actions/cache@v6
44-
with:
45-
path: ~/.m2/repository
46-
key: ${{ runner.os }}-mvn-build-${{ hashFiles('**/pom.xml') }}
47-
restore-keys: |
48-
${{ runner.os }}-mvn-build-
36+
- parallel:
37+
- name: Set up JDK
38+
uses: actions/setup-java@v6
39+
with:
40+
distribution: ${{ matrix.distribution }}
41+
java-version: ${{ matrix.java }}
42+
43+
- name: Cache Maven
44+
uses: actions/cache@v6
45+
with:
46+
path: ~/.m2/repository
47+
key: ${{ runner.os }}-mvn-build-${{ hashFiles('**/pom.xml') }}
48+
restore-keys: |
49+
${{ runner.os }}-mvn-build-
4950
5051
- name: Cache Vaadin prod bundles
5152
uses: actions/cache@v6
@@ -95,27 +96,28 @@ jobs:
9596
steps:
9697
- uses: actions/checkout@v7
9798

98-
- name: Set up JDK
99-
uses: actions/setup-java@v6
100-
with:
101-
distribution: ${{ matrix.distribution }}
102-
java-version: ${{ matrix.java }}
103-
104-
- name: Cache Maven
105-
uses: actions/cache@v6
106-
with:
107-
path: ~/.m2/repository
108-
key: ${{ runner.os }}-mvn-checkstyle-${{ hashFiles('**/pom.xml') }}
109-
restore-keys: |
110-
${{ runner.os }}-mvn-checkstyle-
111-
112-
- name: CheckStyle Cache
113-
uses: actions/cache@v6
114-
with:
115-
path: '**/target/checkstyle-cachefile'
116-
key: ${{ runner.os }}-checkstyle-${{ hashFiles('**/pom.xml') }}
117-
restore-keys: |
118-
${{ runner.os }}-checkstyle-
99+
- parallel:
100+
- name: Set up JDK
101+
uses: actions/setup-java@v6
102+
with:
103+
distribution: ${{ matrix.distribution }}
104+
java-version: ${{ matrix.java }}
105+
106+
- name: Cache Maven
107+
uses: actions/cache@v6
108+
with:
109+
path: ~/.m2/repository
110+
key: ${{ runner.os }}-mvn-checkstyle-${{ hashFiles('**/pom.xml') }}
111+
restore-keys: |
112+
${{ runner.os }}-mvn-checkstyle-
113+
114+
- name: CheckStyle Cache
115+
uses: actions/cache@v6
116+
with:
117+
path: '**/target/checkstyle-cachefile'
118+
key: ${{ runner.os }}-checkstyle-${{ hashFiles('**/pom.xml') }}
119+
restore-keys: |
120+
${{ runner.os }}-checkstyle-
119121
120122
- name: Run Checkstyle
121123
run: ./mvnw -B checkstyle:check -P checkstyle -T2C
@@ -131,27 +133,28 @@ jobs:
131133
steps:
132134
- uses: actions/checkout@v7
133135

134-
- name: Set up JDK
135-
uses: actions/setup-java@v6
136-
with:
137-
distribution: ${{ matrix.distribution }}
138-
java-version: ${{ matrix.java }}
139-
140-
- name: Cache Maven
141-
uses: actions/cache@v6
142-
with:
143-
path: ~/.m2/repository
144-
key: ${{ runner.os }}-mvn-pmd-${{ hashFiles('**/pom.xml') }}
145-
restore-keys: |
146-
${{ runner.os }}-mvn-pmd-
147-
148-
- name: PMD Cache
149-
uses: actions/cache@v6
150-
with:
151-
path: '**/target/pmd/pmd.cache'
152-
key: ${{ runner.os }}-pmd-${{ hashFiles('**/pom.xml') }}
153-
restore-keys: |
154-
${{ runner.os }}-pmd-
136+
- parallel:
137+
- name: Set up JDK
138+
uses: actions/setup-java@v6
139+
with:
140+
distribution: ${{ matrix.distribution }}
141+
java-version: ${{ matrix.java }}
142+
143+
- name: Cache Maven
144+
uses: actions/cache@v6
145+
with:
146+
path: ~/.m2/repository
147+
key: ${{ runner.os }}-mvn-pmd-${{ hashFiles('**/pom.xml') }}
148+
restore-keys: |
149+
${{ runner.os }}-mvn-pmd-
150+
151+
- name: PMD Cache
152+
uses: actions/cache@v6
153+
with:
154+
path: '**/target/pmd/pmd.cache'
155+
key: ${{ runner.os }}-pmd-${{ hashFiles('**/pom.xml') }}
156+
restore-keys: |
157+
${{ runner.os }}-pmd-
155158
156159
- name: Run PMD
157160
run: ./mvnw -B test pmd:aggregate-pmd-no-fork pmd:check -P pmd -DskipTests -T2C

‎.github/workflows/release.yml‎

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,21 @@ jobs:
2020
steps:
2121
- uses: actions/checkout@v7
2222

23-
- name: Set up JDK
24-
uses: actions/setup-java@v6
25-
with:
26-
java-version: '21'
27-
distribution: 'temurin'
28-
29-
# Try to reuse existing cache from check-build
30-
- name: Try restore Maven Cache
31-
uses: actions/cache/restore@v6
32-
with:
33-
path: ~/.m2/repository
34-
key: ${{ runner.os }}-mvn-build-${{ hashFiles('**/pom.xml') }}
35-
restore-keys: |
36-
${{ runner.os }}-mvn-build-
23+
- parallel:
24+
- name: Set up JDK
25+
uses: actions/setup-java@v6
26+
with:
27+
java-version: '21'
28+
distribution: 'temurin'
29+
30+
# Try to reuse existing cache from check-build
31+
- name: Try restore Maven Cache
32+
uses: actions/cache/restore@v6
33+
with:
34+
path: ~/.m2/repository
35+
key: ${{ runner.os }}-mvn-build-${{ hashFiles('**/pom.xml') }}
36+
restore-keys: |
37+
${{ runner.os }}-mvn-build-
3738
3839
- name: Build with Maven
3940
run: ./mvnw -B clean package -T2C

‎CONTRIBUTING.md‎

Lines changed: 43 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -1,88 +1,56 @@
1-
## Contributing
1+
# Contributing
22

3-
We would absolutely love to get the community involved, and we welcome any form of contributions – comments and questions on different communication channels, issues and pull request and anything that you build and share using our components.
3+
We would absolutely love to get the community involved and we welcome any form of contributions - comments and questions, issues, pull request and anything that you build and share using our project.
44

5-
### Communication channels
5+
## Communication channels
66
* Communication is primarily done using issues.
77
* If you need support as soon as possible and you can't wait for any pull request, feel free to use [our support](https://xdev.software/en/services-products/support).
88
* As a last resort measure or on otherwise important matter you may also [contact us directly](https://xdev.software/en/about-us/contact).
99

10-
### Ways to help
11-
* **Report bugs**<br/>Create an issue or send a pull request
10+
## Ways to help
11+
* **Report bugs**<br/>Create an issue and send a pull request
1212
* **Send pull requests**<br/>If you want to contribute code, check out the development instructions below.
1313
* However when contributing larger new features, please first discuss the change you wish to make via issue with the owners of this repository before making it.<br/>Otherwise your work might be rejected and your effort was pointless.
14+
* Please also note that your pull request might not be noticed immediately when it's not attached to an issue.
1415

1516
We also encourage you to read the [contribution instructions by GitHub](https://docs.github.com/en/get-started/exploring-projects-on-github/contributing-to-a-project).
1617

1718
## Developing
1819

19-
### Software Requirements
20-
You should have the following things installed:
21-
* Git
22-
* Java 25 - should be as unmodified as possible (Recommended: [Eclipse Adoptium](https://adoptium.net/temurin/releases/))
23-
* Maven (Note that the [Maven Wrapper](https://maven.apache.org/tools/wrapper/) is shipped with the repo)
24-
25-
### Recommended setup
26-
* Install `IntelliJ`
27-
* Recommended setup actions
28-
* Disable not needed plugins
29-
* Disable [telemetry](https://www.jetbrains.com/help/idea/settings-usage-statistics.html)
30-
* Configure the available memory
31-
* Import the project
32-
* You will get prompted to install the required plugins
33-
* Ensure that everything is encoded in `UTF-8`
34-
* Ensure that the JDK/Java-Version is correct
35-
* To enable AUTOMATIC reloading/restarting while developing and running the app do this (further information in "
36-
SpringBoot-Devtools" section below; [Source](https://stackoverflow.com/q/33349456)):
37-
* ``Settings > Build, Execution, Deployment > Compiler``:<br/>
38-
Enable [``Build project automatically``](https://www.jetbrains.com/help/idea/compiling-applications.html#auto-build)
39-
* ``Settings > Advanced Settings``:<br/>
40-
Enable [``Allow auto-make to start even if developed application is currently running``](https://www.jetbrains.com/help/idea/advanced-settings.html#advanced_compiler)
41-
* To launch the Demo execute the predefined (launch) configuration ``Run Demo``
42-
43-
#### [SpringBoot-Developer-Tools](https://docs.spring.io/spring-boot/docs/current/reference/html/using.html#using.devtools)
44-
... should automatically be enabled.<br/>
45-
If you are changing a file and build the project, parts of the app get restarted.<br/>
46-
Bigger changes may require a complete restart.
47-
* [Vaadin automatically reloads the UI on each restart](https://vaadin.com/docs/latest/flow/configuration/live-reload/spring-boot).<br/>
48-
You can control this behavior with the ``vaadin.devmode.liveReload.enabled`` property (default: ``true``).
49-
50-
## Releasing [![Build](https://img.shields.io/github/actions/workflow/status/xdev-software/vaadin-chartjs-wrapper/release.yml?branch=master)](https://github.com/xdev-software/vaadin-chartjs-wrapper/actions/workflows/release.yml)
51-
52-
Before releasing:
53-
* Consider doing a [test-deployment](https://github.com/xdev-software/vaadin-chartjs-wrapper/actions/workflows/test-deploy.yml?query=branch%3Adevelop) before actually releasing.
54-
* Check the [changelog](CHANGELOG.md)
55-
56-
If the ``develop`` is ready for release, create a pull request to the ``master``-Branch and merge the changes
57-
58-
When the release is finished do the following:
59-
* Merge the auto-generated PR (with the incremented version number) back into the ``develop``
60-
* Ensure that [Vaadin Directory](https://vaadin.com/directory/) syncs the update and maybe update the component / version there
61-
62-
### Release failures
63-
64-
There are 2 modes of release failure:
65-
1. The remote server was e.g. down and non of the artifacts got published
66-
2. There was a build failure during release and only parts of the artifacts got released
67-
68-
In case 1 we can re-release the existing version,<br/>in case 2 we have to release a new version when we can't get the artifacts deleted (as is the case with Maven Central)
69-
70-
#### How-to: Re-Releasing an existing version
71-
72-
1. Delete the release on GitHub
73-
2. Delete the release Git tag from the repo (locally and remote!)
74-
3. Delete the ``master``-Branch and re-create it from the ``develop`` branch (or reset it to the state before the release-workflow commits have been done)
75-
* This requires __temporarily__ removing the branch protection
76-
* Once this was done a new release is triggered immediately!
77-
78-
#### How-to: Releasing a new version
79-
80-
1. Merge the ``master`` branch back into ``develop`` (or another temporary branch)
81-
2. Make sure all master branch versions are prepared for a new release<br/>e.g. if the broken release was ``1.0.0`` the version should now be at ``1.0.1-SNAPSHOT`` - the ``SNAPSHOT`` is important for the workflow!
82-
3. Mark the broken release as broken e.g. inside the Changelog, GitHub Release page, etc.<br/>
83-
You can use something like this:
84-
```
85-
> [!WARNING]
86-
> This release is broken as my cat accidentally clicked the abort button during the process
87-
```
88-
4. Merge the changes back into the ``master`` branch to trigger a new release
20+
Project specific development instructions can be found in [DEVELOPING.md](./DEVELOPING.md)
21+
22+
23+
## On AI use / LLM generated content
24+
25+
_Our reason for the strict policy is due to [unqualified people using the technology](https://en.wikipedia.org/wiki/AI_slop)._
26+
27+
<sup>This policy was inspired by the AI policies of `curl`, `MESA`, `matplotlib` and `Ghostty`.</sup>
28+
29+
### Issues and security reports
30+
31+
If you asked an AI tool to find problems in the project, you must make sure to reveal this fact in your issue.
32+
33+
You must also double-check the findings carefully before reporting them to us to validate that the issue is indeed existing and working exactly as the AI says. AI-based tools frequently generate inaccurate or fabricated results.
34+
35+
Further: It is rarely a good idea to copy and paste an AI generated report to the project. Those are typically too wordy and rarely to the point - in addition to the common fabricated details.<br/>
36+
If you actually find a problem with an AI and you have verified it yourself to be true: Write the issue/report yourself and explain the problem as you have learned it. This makes sure the AI-generated inaccuracies and invented issues are filtered out early before they waste more people's time.
37+
38+
As we take security reports seriously, we investigate each report with priority. This work is both time and energy consuming and pulls us away from doing other meaningful work. Fake and otherwise made up security problems effectively prevent us from doing real project work and make us waste time and resources.
39+
40+
We will ban and report users who submit made up fake reports.
41+
42+
### Pull requests
43+
44+
When contributing content to the project, you give us permission to use it as-is and you must make sure you are allowed to distribute it to us. By submitting a change to us, you agree that the changes can and should be adopted and get redistributed under the project's license. Authors should be explicitly aware that the burden is on them to ensure no unlicensed code is submitted to the project.
45+
46+
This is independent if AI is used or not.
47+
48+
When contributing a pull request you should of course always make sure that the proposal is good quality and a best effort that follows our guidelines. A basic rule of thumb is that if someone can spot that the contribution was made with the help of AI, you have more work to do.
49+
50+
We can accept code written with the help of AI into the project, but the code must still follow coding standards, be written clearly and adhere to all the normal requirements we have.
51+
52+
### Further notices
53+
54+
* External AI tooling (e.g. bots, agents) directly interacting with the project - without a human - are not allowed and will be banned and reported.
55+
* For commit messages the same guidelines as described above for issues apply - fully generated messages are not allowed.
56+
* AI assisted/generated commits can NOT use the `Co-authored-by` tag as this is reserved for humans - use `Assisted-by`/`Generated-by` instead.

‎DEVELOPING.md‎

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
### Software Requirements
2+
You should have the following things installed:
3+
* Git
4+
* Java 25 - should be as unmodified as possible (Recommended: [Eclipse Adoptium](https://adoptium.net/temurin/releases/))
5+
* Maven (Note that the [Maven Wrapper](https://maven.apache.org/tools/wrapper/) is shipped with the repo)
6+
7+
### Recommended setup
8+
* Install `IntelliJ`
9+
* Recommended setup actions
10+
* Disable not needed plugins
11+
* Disable [telemetry](https://www.jetbrains.com/help/idea/settings-usage-statistics.html)
12+
* Configure the available memory
13+
* Import the project
14+
* You will get prompted to install the required plugins
15+
* Ensure that everything is encoded in `UTF-8`
16+
* Ensure that the JDK/Java-Version is correct
17+
18+
#### [SpringBoot-Developer-Tools](https://docs.spring.io/spring-boot/docs/current/reference/html/using.html#using.devtools)
19+
... should automatically be enabled.<br/>
20+
If you are changing a file and build the project, parts of the app get restarted.<br/>
21+
Bigger changes may require a complete restart.
22+
* [Vaadin automatically reloads the UI on each restart](https://vaadin.com/docs/latest/flow/configuration/live-reload/spring-boot).<br/>
23+
You can control this behavior with the ``vaadin.devmode.liveReload.enabled`` property (default: ``true``).
24+
25+
26+
## Releasing
27+
28+
Before releasing:
29+
* Consider doing a `test-deployment` before actually releasing.
30+
* Check the [changelog](CHANGELOG.md)
31+
32+
If the `develop` is ready for release, create a pull request to the `master`-Branch and merge the changes
33+
34+
When the release is finished do the following:
35+
* Merge the auto-generated PR (with the incremented version number) back into the `develop`
36+
* Ensure that [Vaadin Directory](https://vaadin.com/directory/) syncs the update and maybe update the component / version there
37+
38+
### Release failures
39+
40+
There are 2 modes of release failure:
41+
1. The remote server was e.g. down and non of the artifacts got published
42+
2. There was a build failure during release and only parts of the artifacts got released
43+
44+
In case 1 we can re-release the existing version,<br/>in case 2 we have to release a new version when we can't get the artifacts deleted (as is the case with Maven Central)
45+
46+
#### How-to: Re-Releasing an existing version
47+
48+
1. Delete the release on GitHub
49+
2. Delete the release Git tag from the repo (locally and remote!)
50+
3. Delete the ``master``-Branch and re-create it from the ``develop`` branch (or reset it to the state before the release-workflow commits have been done)
51+
* This requires __temporarily__ removing the branch protection
52+
* Once this was done a new release is triggered immediately!
53+
54+
#### How-to: Releasing a new version
55+
56+
1. Merge the ``master`` branch back into ``develop`` (or another temporary branch)
57+
2. Make sure all master branch versions are prepared for a new release<br/>e.g. if the broken release was ``1.0.0`` the version should now be at ``1.0.1-SNAPSHOT`` - the ``SNAPSHOT`` is important for the workflow!
58+
3. Mark the broken release as broken e.g. inside the Changelog, GitHub Release page, etc.<br/>
59+
You can use something like this:
60+
```
61+
> [!WARNING]
62+
> This release is broken as my cat accidentally clicked the abort button during the process
63+
```
64+
4. Merge the changes back into the ``master`` branch to trigger a new release

0 commit comments

Comments
 (0)