From 066e99482fa08a0fee7b04c318c75efff725c64f Mon Sep 17 00:00:00 2001 From: Soumendra Daas Date: Fri, 27 Oct 2023 10:02:54 +0530 Subject: [PATCH] - Upgrading to Java 17 - Minor Update to Doc - Trying to fix fiddly github actions --- .github/workflows/maven.yml | 12 +++++++----- .travis.yml | 5 ----- README.md | 12 ++++++++++-- pom.xml | 2 +- 4 files changed, 18 insertions(+), 13 deletions(-) delete mode 100644 .travis.yml diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index d056272..3c6f824 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -1,3 +1,5 @@ +# See https://github.com/actions/starter-workflows/blob/main/ci/maven.yml +# and https://github.com/actions/setup-java name: Java CI with Maven on: push: @@ -8,12 +10,12 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - name: Set up JDK 11 - uses: actions/setup-java@v2 + - uses: actions/checkout@v3 + - name: Set up JDK 17 + uses: actions/setup-java@v3 with: - java-version: '11' - distribution: 'adopt' + java-version: '17' + distribution: 'corretto' cache: maven - name: Build with Maven run: mvn -B package --file pom.xml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index dabd039..0000000 --- a/.travis.yml +++ /dev/null @@ -1,5 +0,0 @@ -language: java -jdk: - - openjdk8 -script: - - mvn test -B \ No newline at end of file diff --git a/README.md b/README.md index 0b2e1b1..9c42fc0 100644 --- a/README.md +++ b/README.md @@ -111,17 +111,25 @@ master branch. See [maven.yml](.github/workflows/maven.yml) ### Release process +See the process to [prepare](https://maven.apache.org/maven-release/maven-release-plugin/usage/prepare-release.html) +and [perform](https://maven.apache.org/maven-release/maven-release-plugin/usage/perform-release.html) the +release, but the steps are ... + * Make sure that all files are committed * `mvn test` * `mvn release:prepare -DdryRun=true` + * You will be prompted for the release version to use * `mvn release:clean` * `mvn release:prepare` * `mvn release:perform` * Assuming that we are releasing `A.B.C` * At this point the pom.xml should have been updated to the `next-version-SNAPSHOT` version - * There should a github tag called `vA.B.C` -* We still need to create a Release (and release notes) manually from this tag. + * Run `git tag`. There should a github tag called `vA.B.C` +* We still need to create a Release (and release notes) manually from this tag. + * Go to `https://github.com/Sdaas/hello-karate/tags` + * Select the latest tag and `Release` it + ### References * [Karate DSL ](https://github.com/karatelabs/karate) diff --git a/pom.xml b/pom.xml index 9aafa94..6e0b830 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ Getting started with Karate - 11 + 17 5.9.3 1.4.1