From 122b5db7668347f7fdfd1cdab7741b0b11c8ac51 Mon Sep 17 00:00:00 2001 From: LSING46 Date: Tue, 26 Nov 2024 12:00:29 +0530 Subject: [PATCH 1/4] added action file --- .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 0000000..fadd2d6 --- /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: [ "action_build" ] + pull_request: + branches: [ "main" ] + +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 2092346ea0cd1c4192dcc3ee5354ae8d1130d43d Mon Sep 17 00:00:00 2001 From: LSING46 Date: Tue, 26 Nov 2024 12:09:20 +0530 Subject: [PATCH 2/4] updated maven.yml for child pom --- .github/workflows/maven.yml | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index fadd2d6..913e29d 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -1,12 +1,4 @@ -# 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 +name: Java CI with Maven (User Service) on: push: @@ -20,16 +12,25 @@ jobs: runs-on: ubuntu-latest steps: + # Step 1: Checkout the repository - uses: actions/checkout@v4 + + # Step 2: Set up JDK 17 - 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 + # Step 3: Debug - List directory contents + - name: List directory contents + run: ls -R + + # Step 4: Build the Maven project in the user-service directory + - name: Build user-service with Maven + run: mvn -B package --file user-service/pom.xml + + # Optional: Update dependency graph for Dependabot - name: Update dependency graph uses: advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6 From 27ff03de57b0493cfd1fb3d6d07c4f0e44033a90 Mon Sep 17 00:00:00 2001 From: LSING46 Date: Sat, 7 Dec 2024 17:37:26 +0530 Subject: [PATCH 3/4] project yml is updated --- .github/workflows/maven.yml | 2 +- .idea/codeStyles/Project.xml | 7 ++ .idea/codeStyles/codeStyleConfig.xml | 5 ++ .idea/compiler.xml | 5 +- .../src/main/resources/application-local.yml | 40 +++++++++ .../src/main/resources/application.yml | 37 +++++---- .../ConfigClientServiceApplication.java | 4 +- .../configserver/ConfigServerApplication.java | 2 + .../src/main/resources/application-local.yml | 58 +++++++++++++ .../src/main/resources/application.yml | 26 +++--- .../src/main/resources/application-local.yml | 40 +++++++++ .../src/main/resources/application.yml | 11 ++- .../src/main/resources/application-local.yml | 82 +++++++++++++++++++ gateway/src/main/resources/application.yml | 32 ++++---- .../src/main/resources/application-local.yml | 40 +++++++++ .../src/main/resources/application.yml | 36 ++++---- pom.xml | 56 +++++++++++++ .../src/main/resources/application-local.yml | 40 +++++++++ .../src/main/resources/application.yml | 8 +- user-service/pom.xml | 2 +- .../poc/user/UserServiceApplication.java | 2 + .../src/main/resources/application-dev.yml | 44 ++++++++++ .../src/main/resources/application-local.yml | 53 ++++++++++++ .../src/main/resources/application.yml | 36 ++++---- 24 files changed, 580 insertions(+), 88 deletions(-) create mode 100644 .idea/codeStyles/Project.xml create mode 100644 .idea/codeStyles/codeStyleConfig.xml create mode 100644 bag-service/src/main/resources/application-local.yml create mode 100644 config-server/src/main/resources/application-local.yml create mode 100644 eureka-server/src/main/resources/application-local.yml create mode 100644 gateway/src/main/resources/application-local.yml create mode 100644 order-service/src/main/resources/application-local.yml create mode 100644 pom.xml create mode 100644 product-service/src/main/resources/application-local.yml create mode 100644 user-service/src/main/resources/application-dev.yml create mode 100644 user-service/src/main/resources/application-local.yml diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 913e29d..f528ae0 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -1,4 +1,4 @@ -name: Java CI with Maven (User Service) +name: Java CI with Maven on: push: diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml new file mode 100644 index 0000000..919ce1f --- /dev/null +++ b/.idea/codeStyles/Project.xml @@ -0,0 +1,7 @@ + + + + + + \ No newline at end of file diff --git a/.idea/codeStyles/codeStyleConfig.xml b/.idea/codeStyles/codeStyleConfig.xml new file mode 100644 index 0000000..a55e7a1 --- /dev/null +++ b/.idea/codeStyles/codeStyleConfig.xml @@ -0,0 +1,5 @@ + + + + \ No newline at end of file diff --git a/.idea/compiler.xml b/.idea/compiler.xml index ca08c49..e1d5c98 100644 --- a/.idea/compiler.xml +++ b/.idea/compiler.xml @@ -17,14 +17,11 @@ - - - +