Skip to content

Commit 5504616

Browse files
Merge pull request #12 from xdev-software/develop
v1.0.0
2 parents 6d834b5 + 8152170 commit 5504616

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+1521
-1551
lines changed

.github/dependabot.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ updates:
2121
time: "00:00"
2222
open-pull-requests-limit: 10
2323
ignore:
24-
- dependency-name: "org.eclipse.jetty:jetty-maven-plugin"
25-
# Version 11+ requires jakarta.* instead of javax.* (see https://www.eclipse.org/jetty/download.php#what-jetty-version)
26-
versions: ">=11.0.0"
24+
- dependency-name: "org.springframework.boot:*"
25+
# Version 3+ requires Vaadin 24
26+
versions: ">=3.0.0"

.github/workflows/checkBuild.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,5 +59,5 @@ jobs:
5959
uses: actions/upload-artifact@v3
6060
with:
6161
name: demo-files-java-${{ matrix.java }}
62-
path: ${{ env.DEMO_MAVEN_MODULE }}/target/${{ env.DEMO_MAVEN_MODULE }}.war
62+
path: ${{ env.DEMO_MAVEN_MODULE }}/target/${{ env.DEMO_MAVEN_MODULE }}.jar
6363
if-no-files-found: error

.github/workflows/release.yml

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ env:
88
PRIMARY_MAVEN_MODULE: ${{ github.event.repository.name }}
99
DEMO_MAVEN_MODULE: ${{ github.event.repository.name }}-demo
1010

11+
permissions:
12+
contents: write
13+
pull-requests: write
14+
1115
jobs:
1216
check_code: # Validates the code (see develop.yml)
1317
runs-on: ubuntu-latest
@@ -70,8 +74,8 @@ jobs:
7074
id: version
7175
run: |
7276
version=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
73-
echo "::set-output name=release::$version"
74-
echo "::set-output name=releasenumber::${version//[!0-9]/}"
77+
echo "release=$version" >> $GITHUB_OUTPUT
78+
echo "releasenumber=${version//[!0-9]/}" >> $GITHUB_OUTPUT
7579
working-directory: ${{ env.PRIMARY_MAVEN_MODULE }}
7680

7781
- name: Commit and Push
@@ -84,9 +88,7 @@ jobs:
8488
8589
- name: Create Release
8690
id: create_release
87-
uses: actions/create-release@v1
88-
env:
89-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
91+
uses: shogo82148/actions-create-release@v1
9092
with:
9193
tag_name: v${{ steps.version.outputs.release }}
9294
release_name: v${{ steps.version.outputs.release }}
@@ -104,8 +106,6 @@ jobs:
104106
<version>${{ steps.version.outputs.release }}</version>
105107
</dependency>
106108
```
107-
draft: false
108-
prerelease: false
109109
110110
publish_central: # Publish the code to central
111111
runs-on: ubuntu-latest
@@ -170,13 +170,11 @@ jobs:
170170
- name: Get version
171171
id: version
172172
run: |
173-
echo "::set-output name=release::$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)"
173+
echo "release=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_OUTPUT
174174
working-directory: ${{ env.PRIMARY_MAVEN_MODULE }}
175175

176176
- name: Upload Release Asset
177-
uses: actions/upload-release-asset@v1
178-
env:
179-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
177+
uses: shogo82148/actions-upload-release-asset@v1
180178
with:
181179
upload_url: ${{ needs.prepare_release.outputs.upload_url }}
182180
asset_path: ${{ env.PRIMARY_MAVEN_MODULE }}/target/${{ env.PRIMARY_MAVEN_MODULE }}-${{ steps.version.outputs.release }}.zip
@@ -270,7 +268,6 @@ jobs:
270268
- name: pull-request
271269
uses: repo-sync/pull-request@v2
272270
with:
273-
github_token: ${{ secrets.GITHUB_TOKEN }}
274271
destination_branch: "develop"
275272
pr_title: "Sync back"
276273
pr_body: "An automated PR to sync changes back"

.github/workflows/sonar.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: Sonar
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches: [ develop ]
7+
paths-ignore:
8+
- '**.md'
9+
- 'assets/**'
10+
- 'config/**'
11+
pull_request:
12+
types: [opened, synchronize, reopened]
13+
paths-ignore:
14+
- '**.md'
15+
- 'assets/**'
16+
- 'config/**'
17+
18+
env:
19+
SONARCLOUD_ORG: ${{ github.event.organization.login }}
20+
SONARCLOUD_HOST: https://sonarcloud.io
21+
22+
jobs:
23+
sonar:
24+
name: SonarCloud Scan
25+
runs-on: ubuntu-latest
26+
# Dependabot PRs have no access to secrets (SONAR_TOKEN) -> Ignore them
27+
if: ${{ github.event_name != 'pull_request' || !startsWith(github.head_ref, 'dependabot/') }}
28+
steps:
29+
- uses: actions/checkout@v3
30+
with:
31+
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
32+
33+
- name: Set up JDK 11
34+
uses: actions/setup-java@v3
35+
with:
36+
distribution: 'temurin'
37+
java-version: 11
38+
39+
- name: Cache SonarCloud packages
40+
uses: actions/cache@v3
41+
with:
42+
path: ~/.sonar/cache
43+
key: ${{ runner.os }}-sonar
44+
restore-keys: ${{ runner.os }}-sonar
45+
46+
- name: Cache Maven packages
47+
uses: actions/cache@v3
48+
with:
49+
path: ~/.m2
50+
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
51+
restore-keys: ${{ runner.os }}-m2
52+
53+
- name: Build with Maven
54+
run: mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=${{ env.SONARCLOUD_ORG }}_${{ github.event.repository.name }} -Dsonar.organization=${{ env.SONARCLOUD_ORG }} -Dsonar.host.url=${{ env.SONARCLOUD_HOST }}
55+
env:
56+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
57+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

.github/workflows/update-from-template.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
echo "Deleting origin branch that contains the updates - if present"
6161
git push -f origin --delete ${{ env.UPDATE_BRANCH }} || true
6262
63-
echo "::set-output name=abort::1"
63+
echo "abort=1" >> $GITHUB_OUTPUT
6464
exit 0
6565
fi
6666
@@ -76,9 +76,9 @@ jobs:
7676
echo "Getting current branch"
7777
current_branch=$(git branch --show-current)
7878
echo "Current branch is $current_branch"
79-
echo "::set-output name=current_branch::$current_branch"
79+
echo "current_branch=$current_branch" >> $GITHUB_OUTPUT
8080
81-
echo "::set-output name=abort::0"
81+
echo "abort=0" >> $GITHUB_OUTPUT
8282
8383
- name: pull-request
8484
uses: repo-sync/pull-request@v2

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,3 +109,5 @@ ObjectStore/
109109
.idea/codeStyles/*
110110
!.idea/codeStyles/codeStyleConfig.xml
111111
!.idea/codeStyles/Project.xml
112+
113+
.run/*

.idea/codeStyles/Project.xml

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.run/Run Demo.run.xml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<component name="ProjectRunConfigurationManager">
2+
<configuration default="false" name="Run Demo" type="Application" factoryName="Application">
3+
<option name="MAIN_CLASS_NAME" value="software.xdev.vaadin.Application" />
4+
<module name="vaadin-editable-label-demo" />
5+
<option name="WORKING_DIRECTORY" value="$MODULE_DIR$" />
6+
<extension name="coverage">
7+
<pattern>
8+
<option name="PATTERN" value="software.xdev.vaadin.*" />
9+
<option name="ENABLED" value="true" />
10+
</pattern>
11+
</extension>
12+
<method v="2">
13+
<option name="Make" enabled="true" />
14+
</method>
15+
</configuration>
16+
</component>

.run/Start Demo.run.xml

Lines changed: 0 additions & 32 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# 1.0.0
2+
Initial release

0 commit comments

Comments
 (0)