From fa1c19932355ecfa35931fc994d47b7830b0dbab Mon Sep 17 00:00:00 2001 From: itaymelamed Date: Fri, 24 Jun 2022 16:03:34 +0300 Subject: [PATCH 01/21] Update pom.xml Signed-off-by: itaymelamed --- pom.xml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pom.xml b/pom.xml index fa02310f..9f44fa47 100644 --- a/pom.xml +++ b/pom.xml @@ -43,5 +43,12 @@ + + + github + GitHub OWNER Apache Maven Packages + https://maven.pkg.github.com/itaymelamed/simple-java-maven-app + + From 7fd5e7e9f865578fb745797414dc4d9c25811771 Mon Sep 17 00:00:00 2001 From: itaymelamed Date: Fri, 24 Jun 2022 16:07:35 +0300 Subject: [PATCH 02/21] test --- pom.xml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pom.xml b/pom.xml index 9f44fa47..3072f6e2 100644 --- a/pom.xml +++ b/pom.xml @@ -33,6 +33,11 @@ spring-boot-starter-test test + + elector2019 + my-app + 1.0-SNAPSHOT + From d6ba82c5fb269b6e9235a93c2fcf846783b7ed64 Mon Sep 17 00:00:00 2001 From: itaymelamed Date: Fri, 24 Jun 2022 16:07:37 +0300 Subject: [PATCH 03/21] test --- .github/workflows/install.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/install.yaml diff --git a/.github/workflows/install.yaml b/.github/workflows/install.yaml new file mode 100644 index 00000000..ca59bb86 --- /dev/null +++ b/.github/workflows/install.yaml @@ -0,0 +1,18 @@ +name: Publish package to GitHub Packages +on: + push: + branches: + - "master" +jobs: + publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-java@v3 + with: + java-version: '11' + distribution: 'adopt' + - name: Intsall + run: mvn install + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file From de0b9085e4b44d651b665fb32660e991ea178d21 Mon Sep 17 00:00:00 2001 From: itaymelamed Date: Fri, 24 Jun 2022 16:08:41 +0300 Subject: [PATCH 04/21] fixed --- .github/workflows/install.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/install.yaml b/.github/workflows/install.yaml index ca59bb86..9fba89c2 100644 --- a/.github/workflows/install.yaml +++ b/.github/workflows/install.yaml @@ -2,7 +2,7 @@ name: Publish package to GitHub Packages on: push: branches: - - "master" + - "main" jobs: publish: runs-on: ubuntu-latest From 6e61a61f0743a52c8aba863264c0d711c67c855b Mon Sep 17 00:00:00 2001 From: itaymelamed Date: Fri, 24 Jun 2022 16:10:24 +0300 Subject: [PATCH 05/21] test --- pom.xml | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/pom.xml b/pom.xml index 3072f6e2..a54dac86 100644 --- a/pom.xml +++ b/pom.xml @@ -19,20 +19,6 @@ - - org.springframework.boot - spring-boot-starter-thymeleaf - - - org.springframework.boot - spring-boot-starter-web - - - - org.springframework.boot - spring-boot-starter-test - test - elector2019 my-app From 623a2112c8505d60ac0824c048eeab7ac1112ce1 Mon Sep 17 00:00:00 2001 From: itaymelamed Date: Fri, 24 Jun 2022 16:19:16 +0300 Subject: [PATCH 06/21] test --- pom.xml | 7 ------- 1 file changed, 7 deletions(-) diff --git a/pom.xml b/pom.xml index a54dac86..85f6199b 100644 --- a/pom.xml +++ b/pom.xml @@ -34,12 +34,5 @@ - - - github - GitHub OWNER Apache Maven Packages - https://maven.pkg.github.com/itaymelamed/simple-java-maven-app - - From 24d7d39c17d42b611f8e536a360a1a9a64cc7ad6 Mon Sep 17 00:00:00 2001 From: itaymelamed Date: Fri, 24 Jun 2022 16:19:21 +0300 Subject: [PATCH 07/21] test --- .github/workflows/install.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/install.yaml b/.github/workflows/install.yaml index 9fba89c2..cefeb2eb 100644 --- a/.github/workflows/install.yaml +++ b/.github/workflows/install.yaml @@ -7,6 +7,19 @@ jobs: publish: runs-on: ubuntu-latest steps: + - name: Generate settings.xml for Maven Builds + uses: whelk-io/maven-settings-xml-action@v20 + with: + repositories: | + [ + { + "id": "github", + "url": "https://maven.pkg.github.com/itaymelamed/simple-java-maven-app", + "snapshots": { + "enabled": "true" + } + } + ] - uses: actions/checkout@v3 - uses: actions/setup-java@v3 with: From d922ad9f93248b95faf4b7f362729768a53648ee Mon Sep 17 00:00:00 2001 From: itaymelamed Date: Fri, 24 Jun 2022 16:24:37 +0300 Subject: [PATCH 08/21] test --- .github/workflows/install.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/install.yaml b/.github/workflows/install.yaml index cefeb2eb..4568b893 100644 --- a/.github/workflows/install.yaml +++ b/.github/workflows/install.yaml @@ -10,6 +10,8 @@ jobs: - name: Generate settings.xml for Maven Builds uses: whelk-io/maven-settings-xml-action@v20 with: + servers: | + '[{"id": "github", "username": "itaymelamed", "password": "${{ secrets.GITHUB_TOKEN }}"}]' repositories: | [ { @@ -18,6 +20,8 @@ jobs: "snapshots": { "enabled": "true" } + "servers": + } ] - uses: actions/checkout@v3 From 76746b73cb28ddcbf6b7ca09730cf3e89bb04597 Mon Sep 17 00:00:00 2001 From: itaymelamed Date: Fri, 24 Jun 2022 16:26:22 +0300 Subject: [PATCH 09/21] added server --- .github/workflows/install.yaml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/install.yaml b/.github/workflows/install.yaml index 4568b893..67900148 100644 --- a/.github/workflows/install.yaml +++ b/.github/workflows/install.yaml @@ -5,13 +5,19 @@ on: - "main" jobs: publish: - runs-on: ubuntu-latest + runs-on: ubuntu-latest steps: - name: Generate settings.xml for Maven Builds uses: whelk-io/maven-settings-xml-action@v20 with: servers: | - '[{"id": "github", "username": "itaymelamed", "password": "${{ secrets.GITHUB_TOKEN }}"}]' + [ + { + "id": "github", + "username": "itaymelamed", + "password": "${{ secrets.GITHUB_TOKEN }}" + } + ] repositories: | [ { @@ -27,9 +33,9 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-java@v3 with: - java-version: '11' - distribution: 'adopt' + java-version: "11" + distribution: "adopt" - name: Intsall run: mvn install env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 3014e30f825a40ea5e5000077aea86c305eddcc6 Mon Sep 17 00:00:00 2001 From: itaymelamed Date: Fri, 24 Jun 2022 16:27:53 +0300 Subject: [PATCH 10/21] fixed --- .github/workflows/install.yaml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/install.yaml b/.github/workflows/install.yaml index 67900148..9820c635 100644 --- a/.github/workflows/install.yaml +++ b/.github/workflows/install.yaml @@ -26,8 +26,6 @@ jobs: "snapshots": { "enabled": "true" } - "servers": - } ] - uses: actions/checkout@v3 From 613fd072aa231cb4cb3b0b9adddc529260ab84e1 Mon Sep 17 00:00:00 2001 From: itaymelamed Date: Fri, 24 Jun 2022 16:33:11 +0300 Subject: [PATCH 11/21] test --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 85f6199b..fe935201 100644 --- a/pom.xml +++ b/pom.xml @@ -20,7 +20,7 @@ - elector2019 + itaymelamed my-app 1.0-SNAPSHOT From 7434b27ced547be7def1bde761fdc6897d32a1e9 Mon Sep 17 00:00:00 2001 From: itaymelamed Date: Fri, 24 Jun 2022 16:39:16 +0300 Subject: [PATCH 12/21] test --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index fe935201..c5b0b50d 100644 --- a/pom.xml +++ b/pom.xml @@ -8,7 +8,7 @@ 2.1.3.RELEASE - io.buildpacks.example + itaymelamed sample 0.0.1-SNAPSHOT sample From b5d940c9c06533c2e16b6031396c08799ea7a381 Mon Sep 17 00:00:00 2001 From: itaymelamed Date: Fri, 24 Jun 2022 16:39:18 +0300 Subject: [PATCH 13/21] test --- .github/workflows/install.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/install.yaml b/.github/workflows/install.yaml index 9820c635..4048a641 100644 --- a/.github/workflows/install.yaml +++ b/.github/workflows/install.yaml @@ -24,6 +24,8 @@ jobs: "id": "github", "url": "https://maven.pkg.github.com/itaymelamed/simple-java-maven-app", "snapshots": { + } + "releases": { "enabled": "true" } } @@ -34,6 +36,7 @@ jobs: java-version: "11" distribution: "adopt" - name: Intsall - run: mvn install + run: mvn install -s /home/runner/.m2/settings.xml env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + USER_NAME: "itaymelamed" From 5e303c1be1a90367b50fd155d8d2fa026f750c7c Mon Sep 17 00:00:00 2001 From: itaymelamed Date: Fri, 24 Jun 2022 16:39:56 +0300 Subject: [PATCH 14/21] fix --- .github/workflows/install.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/install.yaml b/.github/workflows/install.yaml index 4048a641..0029a301 100644 --- a/.github/workflows/install.yaml +++ b/.github/workflows/install.yaml @@ -24,7 +24,8 @@ jobs: "id": "github", "url": "https://maven.pkg.github.com/itaymelamed/simple-java-maven-app", "snapshots": { - } + "enabled": "true" + }, "releases": { "enabled": "true" } From 45261dc57d4ae396f57fcba3fd3238d5bb141209 Mon Sep 17 00:00:00 2001 From: itaymelamed Date: Fri, 24 Jun 2022 16:43:23 +0300 Subject: [PATCH 15/21] test --- pom.xml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index c5b0b50d..180eec6e 100644 --- a/pom.xml +++ b/pom.xml @@ -34,5 +34,11 @@ - + + + github + GitHub OWNER Apache Maven Packages + https://maven.pkg.github.com/itaymelamed/simple-java-maven-app + + From 39d22d6a429f17b971fa5cc5f5437faebaaa7803 Mon Sep 17 00:00:00 2001 From: itaymelamed Date: Fri, 24 Jun 2022 16:48:29 +0300 Subject: [PATCH 16/21] fixed --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 180eec6e..b820ade1 100644 --- a/pom.xml +++ b/pom.xml @@ -22,7 +22,7 @@ itaymelamed my-app - 1.0-SNAPSHOT + 1.0 From 22f424fb378fdb23b793b1e5f33fab507f9b657f Mon Sep 17 00:00:00 2001 From: itaymelamed Date: Fri, 24 Jun 2022 16:52:48 +0300 Subject: [PATCH 17/21] test --- .github/workflows/install.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/install.yaml b/.github/workflows/install.yaml index 0029a301..73f21c58 100644 --- a/.github/workflows/install.yaml +++ b/.github/workflows/install.yaml @@ -37,7 +37,7 @@ jobs: java-version: "11" distribution: "adopt" - name: Intsall - run: mvn install -s /home/runner/.m2/settings.xml + run: mvn -B package -s /home/runner/.m2/settings.xml --file pox.xml env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} USER_NAME: "itaymelamed" From 0353710abc2984cc284ec266826b72d9c717e843 Mon Sep 17 00:00:00 2001 From: itaymelamed Date: Fri, 24 Jun 2022 16:53:46 +0300 Subject: [PATCH 18/21] tets --- .github/workflows/install.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/install.yaml b/.github/workflows/install.yaml index 73f21c58..2d063f69 100644 --- a/.github/workflows/install.yaml +++ b/.github/workflows/install.yaml @@ -37,7 +37,7 @@ jobs: java-version: "11" distribution: "adopt" - name: Intsall - run: mvn -B package -s /home/runner/.m2/settings.xml --file pox.xml + run: mvn -B package -s /home/runner/.m2/settings.xml --file pom.xml env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} USER_NAME: "itaymelamed" From 66b1b7f2ae032deb3aff6fce74918393aa143485 Mon Sep 17 00:00:00 2001 From: itaymelamed Date: Fri, 24 Jun 2022 16:57:06 +0300 Subject: [PATCH 19/21] added test --- .github/workflows/install.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/install.yaml b/.github/workflows/install.yaml index 2d063f69..625a1b65 100644 --- a/.github/workflows/install.yaml +++ b/.github/workflows/install.yaml @@ -32,6 +32,7 @@ jobs: } ] - uses: actions/checkout@v3 + - run: cat /home/runner/.m2/settings.xml - uses: actions/setup-java@v3 with: java-version: "11" From cd1dcecd90932bdf4c29d618f7d4bf01d333cfb3 Mon Sep 17 00:00:00 2001 From: itaymelamed Date: Fri, 24 Jun 2022 16:58:33 +0300 Subject: [PATCH 20/21] fix --- .github/workflows/install.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/install.yaml b/.github/workflows/install.yaml index 625a1b65..cf6c4d64 100644 --- a/.github/workflows/install.yaml +++ b/.github/workflows/install.yaml @@ -7,6 +7,12 @@ jobs: publish: runs-on: ubuntu-latest steps: + - uses: actions/checkout@v3 + - run: cat /home/runner/.m2/settings.xml + - uses: actions/setup-java@v3 + with: + java-version: "11" + distribution: "adopt" - name: Generate settings.xml for Maven Builds uses: whelk-io/maven-settings-xml-action@v20 with: @@ -31,12 +37,6 @@ jobs: } } ] - - uses: actions/checkout@v3 - - run: cat /home/runner/.m2/settings.xml - - uses: actions/setup-java@v3 - with: - java-version: "11" - distribution: "adopt" - name: Intsall run: mvn -B package -s /home/runner/.m2/settings.xml --file pom.xml env: From 6567594b2079f0209da4338978ace0d6bdd93bdc Mon Sep 17 00:00:00 2001 From: itaymelamed Date: Fri, 24 Jun 2022 16:59:02 +0300 Subject: [PATCH 21/21] test --- .github/workflows/install.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/install.yaml b/.github/workflows/install.yaml index cf6c4d64..00560532 100644 --- a/.github/workflows/install.yaml +++ b/.github/workflows/install.yaml @@ -8,7 +8,6 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - run: cat /home/runner/.m2/settings.xml - uses: actions/setup-java@v3 with: java-version: "11"