From df1b65164c85cbd62cb3b9fe5c06b36e4b8f9b55 Mon Sep 17 00:00:00 2001 From: GS_Vikal <90176028+vikal190@users.noreply.github.com> Date: Mon, 6 Oct 2025 14:46:19 +0530 Subject: [PATCH 01/13] Create maven-publish.yml--github-action --- .github/workflows/maven-publish.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/maven-publish.yml diff --git a/.github/workflows/maven-publish.yml b/.github/workflows/maven-publish.yml new file mode 100644 index 000000000..7c8583c0c --- /dev/null +++ b/.github/workflows/maven-publish.yml @@ -0,0 +1,29 @@ +# This workflow will build a package using Maven and then publish it to GitHub packages when a release is created +# For more information see: https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#apache-maven-with-a-settings-path + +name: Maven Package + +on: + release: + types: [created] + +jobs: + build: + + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + + steps: + - uses: actions/checkout@v4 + - name: Set up JDK 11 + uses: actions/setup-java@v4 + with: + java-version: '11' + distribution: 'temurin' + server-id: github # Value of the distributionManagement/repository/id field of the pom.xml + settings-path: ${{ github.workspace }} # location for the settings.xml file + + - name: Build with Maven + run: mvn -B package --file pom.xml From 4c0f8d761831e2c3e988d9df87890d197824300e Mon Sep 17 00:00:00 2001 From: GS_Vikal <90176028+vikal190@users.noreply.github.com> Date: Mon, 6 Oct 2025 15:44:35 +0530 Subject: [PATCH 02/13] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index fefd2a53b..d2e3d059f 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -Addressbook Tutorial +Addressbook Tutorial-- ==================== This tutorial teaches you some of the basic concepts in [Vaadin Framework](https://vaadin.com). It is meant to be @@ -65,4 +65,4 @@ To use the built in server adapters of Eclipse, instead of doing "Run As -> Mave - Select the server you want to run on, e.g. Apache Tomcat 8 and click ok - *Do not use the suggested J2EE Preview server* as it is outdated, deprecated and does not support Servlet 3, which is required for this application -*** End of documentation \ No newline at end of file +*** End of documentation From 739efa4e79f372886843972f9958ba5d8bb2ec5c Mon Sep 17 00:00:00 2001 From: GS_Vikal <90176028+vikal190@users.noreply.github.com> Date: Mon, 6 Oct 2025 15:45:39 +0530 Subject: [PATCH 03/13] Create maven.yml --- .github/workflows/maven.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/maven.yml diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml new file mode 100644 index 000000000..c6bb03654 --- /dev/null +++ b/.github/workflows/maven.yml @@ -0,0 +1,35 @@ +# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven + +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. + +name: Java CI with Maven + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Set up JDK 17 + uses: actions/setup-java@v4 + with: + java-version: '17' + distribution: 'temurin' + cache: maven + - name: Build with Maven + run: mvn -B package --file pom.xml + + # Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive + - name: Update dependency graph + uses: advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6 From 4e54c308966cda808f2b9b5e881497ff0cd713c2 Mon Sep 17 00:00:00 2001 From: GS_Vikal <90176028+vikal190@users.noreply.github.com> Date: Mon, 6 Oct 2025 15:49:19 +0530 Subject: [PATCH 04/13] Delete .github/workflows directory --- .github/workflows/maven-publish.yml | 29 ------------------------ .github/workflows/maven.yml | 35 ----------------------------- 2 files changed, 64 deletions(-) delete mode 100644 .github/workflows/maven-publish.yml delete mode 100644 .github/workflows/maven.yml diff --git a/.github/workflows/maven-publish.yml b/.github/workflows/maven-publish.yml deleted file mode 100644 index 7c8583c0c..000000000 --- a/.github/workflows/maven-publish.yml +++ /dev/null @@ -1,29 +0,0 @@ -# This workflow will build a package using Maven and then publish it to GitHub packages when a release is created -# For more information see: https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#apache-maven-with-a-settings-path - -name: Maven Package - -on: - release: - types: [created] - -jobs: - build: - - runs-on: ubuntu-latest - permissions: - contents: read - packages: write - - steps: - - uses: actions/checkout@v4 - - name: Set up JDK 11 - uses: actions/setup-java@v4 - with: - java-version: '11' - distribution: 'temurin' - server-id: github # Value of the distributionManagement/repository/id field of the pom.xml - settings-path: ${{ github.workspace }} # location for the settings.xml file - - - name: Build with Maven - run: mvn -B package --file pom.xml diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml deleted file mode 100644 index c6bb03654..000000000 --- a/.github/workflows/maven.yml +++ /dev/null @@ -1,35 +0,0 @@ -# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time -# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven - -# This workflow uses actions that are not certified by GitHub. -# They are provided by a third-party and are governed by -# separate terms of service, privacy policy, and support -# documentation. - -name: Java CI with Maven - -on: - push: - branches: [ "master" ] - pull_request: - branches: [ "master" ] - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v4 - - name: Set up JDK 17 - uses: actions/setup-java@v4 - with: - java-version: '17' - distribution: 'temurin' - cache: maven - - name: Build with Maven - run: mvn -B package --file pom.xml - - # Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive - - name: Update dependency graph - uses: advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6 From b5130af3c100f05f591dfb1d310bf4797e8550d3 Mon Sep 17 00:00:00 2001 From: GS_Vikal <90176028+vikal190@users.noreply.github.com> Date: Mon, 6 Oct 2025 15:49:39 +0530 Subject: [PATCH 05/13] Create maven.yml --- .github/workflows/maven.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/maven.yml diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml new file mode 100644 index 000000000..c6bb03654 --- /dev/null +++ b/.github/workflows/maven.yml @@ -0,0 +1,35 @@ +# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven + +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. + +name: Java CI with Maven + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Set up JDK 17 + uses: actions/setup-java@v4 + with: + java-version: '17' + distribution: 'temurin' + cache: maven + - name: Build with Maven + run: mvn -B package --file pom.xml + + # Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive + - name: Update dependency graph + uses: advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6 From 23af6a1d9616bb8e6e4422a85f605dcef03f4ce7 Mon Sep 17 00:00:00 2001 From: GS_Vikal <90176028+vikal190@users.noreply.github.com> Date: Mon, 6 Oct 2025 15:57:02 +0530 Subject: [PATCH 06/13] Update maven.yml --- .github/workflows/maven.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index c6bb03654..1fd228400 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -31,5 +31,5 @@ jobs: run: mvn -B package --file pom.xml # Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive - - name: Update dependency graph - uses: advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6 + #name: Update dependency graph + #uses: advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6 From e836b6264b397fc487e9ae774a9ed588623e4b7e Mon Sep 17 00:00:00 2001 From: GS_Vikal <90176028+vikal190@users.noreply.github.com> Date: Mon, 6 Oct 2025 16:08:01 +0530 Subject: [PATCH 07/13] Update maven.yml--Build-artifact --- .github/workflows/maven.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 1fd228400..a556b4bd4 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -33,3 +33,8 @@ jobs: # Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive #name: Update dependency graph #uses: advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6 + -name: Upload a Build Artifact + users: actions/upload-artifact@v4 + with: + name: addressbook-war + path: target/addressbook.war From e2c0e007f8e1f00dc0af0bec66910b7203f6d8bc Mon Sep 17 00:00:00 2001 From: GS_Vikal <90176028+vikal190@users.noreply.github.com> Date: Mon, 6 Oct 2025 16:09:44 +0530 Subject: [PATCH 08/13] Update maven.yml-up --- .github/workflows/maven.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index a556b4bd4..b6a86f0e1 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -34,7 +34,7 @@ jobs: #name: Update dependency graph #uses: advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6 -name: Upload a Build Artifact - users: actions/upload-artifact@v4 + uses: actions/upload-artifact@v4 with: name: addressbook-war path: target/addressbook.war From 25a014f40a12469b1dbd7b83d24c447f692fc3a2 Mon Sep 17 00:00:00 2001 From: GS_Vikal <90176028+vikal190@users.noreply.github.com> Date: Mon, 6 Oct 2025 16:11:50 +0530 Subject: [PATCH 09/13] Update maven.yml-corrected --- .github/workflows/maven.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index b6a86f0e1..31752eb93 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -33,8 +33,10 @@ jobs: # Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive #name: Update dependency graph #uses: advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6 + -name: Upload a Build Artifact uses: actions/upload-artifact@v4 + with: name: addressbook-war path: target/addressbook.war From cc9e55cf6854d3d9f236bb1d74fd2daffff90daf Mon Sep 17 00:00:00 2001 From: GS_Vikal <90176028+vikal190@users.noreply.github.com> Date: Mon, 6 Oct 2025 16:13:46 +0530 Subject: [PATCH 10/13] Update maven.yml-new --- .github/workflows/maven.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 31752eb93..b39398e8e 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -35,8 +35,7 @@ jobs: #uses: advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6 -name: Upload a Build Artifact - uses: actions/upload-artifact@v4 - - with: - name: addressbook-war - path: target/addressbook.war + uses: actions/upload-artifact@v4.6.2 + with: + name: addressbook-war + path: target/addressbook.war From 1b9e8a82152b99aa3eefa5daa2a6de0e2556714c Mon Sep 17 00:00:00 2001 From: GS_Vikal <90176028+vikal190@users.noreply.github.com> Date: Mon, 6 Oct 2025 16:14:54 +0530 Subject: [PATCH 11/13] Update maven.yml-new-change --- .github/workflows/maven.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index b39398e8e..0c612ea7c 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -35,7 +35,7 @@ jobs: #uses: advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6 -name: Upload a Build Artifact - uses: actions/upload-artifact@v4.6.2 + uses: actions/upload-artifact@v4.6.2 with: name: addressbook-war path: target/addressbook.war From 1fdaa012f990e959aa93e7b3e0bea9674b4b6992 Mon Sep 17 00:00:00 2001 From: GS_Vikal <90176028+vikal190@users.noreply.github.com> Date: Mon, 6 Oct 2025 16:17:26 +0530 Subject: [PATCH 12/13] Update maven.yml-final --- .github/workflows/maven.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 0c612ea7c..303a99ae3 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -34,8 +34,8 @@ jobs: #name: Update dependency graph #uses: advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6 - -name: Upload a Build Artifact - uses: actions/upload-artifact@v4.6.2 + - name: Upload a Build Artifact + uses: actions/upload-artifact@v4 with: name: addressbook-war path: target/addressbook.war From feaf96284380746bdcb2bff4228f76e2da161507 Mon Sep 17 00:00:00 2001 From: GS_Vikal <90176028+vikal190@users.noreply.github.com> Date: Mon, 6 Oct 2025 16:18:45 +0530 Subject: [PATCH 13/13] Update maven.yml-gv --- .github/workflows/maven.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 303a99ae3..7324a5cb2 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -16,7 +16,6 @@ on: jobs: build: - runs-on: ubuntu-latest steps: