From 56971359b873210bf0fa11f73fcd6774e97b73ec Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 22 Apr 2026 18:20:40 +0000 Subject: [PATCH 01/20] chore(release): bump to 3.2.3-SNAPSHOT [skip ci] --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index b978e2d..1606ee3 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ org.utplsql utplsql-java-api - 3.2.2 + 3.2.3-SNAPSHOT utPLSQL Java API Java API for running Unit Tests with utPLSQL v3+. From 780141ca48ac6dd831c156b178fbfa8a898719e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jacek=20G=C4=99bal?= Date: Thu, 23 Apr 2026 11:22:37 +0300 Subject: [PATCH 02/20] Add back HTML coverage resources. The HTML coverage resources were missing since version 3.1.9 of the utplsql-java-api. They are now again included in the JAR so that the utplsql-maven-plugin and utPLSQL-cli can use it. --- pom.xml | 46 +++++++++++++++++++ .../java/org/utplsql/api/ResourceUtil.java | 10 +++- .../java/org/utplsql/api/TestRunnerIT.java | 4 -- .../CoverageHTMLReporterAssetTest.java | 2 - 4 files changed, 54 insertions(+), 8 deletions(-) diff --git a/pom.xml b/pom.xml index 1606ee3..7451ff2 100644 --- a/pom.xml +++ b/pom.xml @@ -19,6 +19,9 @@ utplsql https://sonarcloud.io + + 1.0.1 + ${project.build.directory}/coverage-html-download @@ -117,6 +120,49 @@ + + com.googlecode.maven-download-plugin + download-maven-plugin + 1.8.1 + + + download-coverage-html-assets + generate-resources + + wget + + + https://github.com/utPLSQL/utPLSQL-coverage-html/archive/refs/tags/${coverage.html.version}.zip + ${coverage.html.download.dir} + coverage-html.zip + true + + + + + + org.apache.maven.plugins + maven-resources-plugin + 3.3.1 + + + copy-coverage-html-assets + process-resources + + copy-resources + + + ${project.build.outputDirectory}/CoverageHTMLReporter + + + ${coverage.html.download.dir}/utPLSQL-coverage-html-${coverage.html.version}/assets + false + + + + + + org.apache.maven.plugins maven-compiler-plugin diff --git a/src/main/java/org/utplsql/api/ResourceUtil.java b/src/main/java/org/utplsql/api/ResourceUtil.java index d4ac0b3..b580cce 100644 --- a/src/main/java/org/utplsql/api/ResourceUtil.java +++ b/src/main/java/org/utplsql/api/ResourceUtil.java @@ -3,6 +3,7 @@ import java.io.IOException; import java.net.URI; import java.net.URISyntaxException; +import java.net.URL; import java.nio.file.*; import java.nio.file.attribute.BasicFileAttributes; import java.util.Collections; @@ -27,7 +28,12 @@ public static void copyResources(Path resourceAsPath, Path targetDirectory) { try { String resourceName = "/" + resourceAsPath; Files.createDirectories(targetDirectory); - URI uri = ResourceUtil.class.getResource(resourceName).toURI(); + URL resourceUrl = ResourceUtil.class.getResource(resourceName); + if (resourceUrl == null) { + throw new IOException("Coverage HTML assets not found in classpath: " + resourceName + + ". The JAR was built without bundled coverage HTML reporter assets."); + } + URI uri = resourceUrl.toURI(); Path myPath; if (uri.getScheme().equalsIgnoreCase("jar")) { try (FileSystem fileSystem = FileSystems.newFileSystem(uri, Collections.emptyMap())) { @@ -44,7 +50,7 @@ public static void copyResources(Path resourceAsPath, Path targetDirectory) { } private static void copyRecursive(Path from, Path targetDirectory) throws IOException { - Files.walkFileTree(from, new SimpleFileVisitor() { + Files.walkFileTree(from, new SimpleFileVisitor<>() { @Override public FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs) throws IOException { diff --git a/src/test/java/org/utplsql/api/TestRunnerIT.java b/src/test/java/org/utplsql/api/TestRunnerIT.java index 4ceb184..0246c26 100644 --- a/src/test/java/org/utplsql/api/TestRunnerIT.java +++ b/src/test/java/org/utplsql/api/TestRunnerIT.java @@ -1,6 +1,5 @@ package org.utplsql.api; -import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.function.Executable; import org.utplsql.api.compatibility.CompatibilityProxy; @@ -65,7 +64,6 @@ void runWithManyReporters() throws SQLException { /** * This can only be tested on frameworks >= 3.0.3 */ - @Disabled @Test void failOnErrors() throws SQLException, InvalidVersionException { Connection conn = getConnection(); @@ -82,8 +80,6 @@ void failOnErrors() throws SQLException, InvalidVersionException { @Test void runWithRandomExecutionOrder() throws SQLException { - CompatibilityProxy proxy = new CompatibilityProxy(getConnection()); - new TestRunner() .randomTestOrder(true) .randomTestOrderSeed(123) diff --git a/src/test/java/org/utplsql/api/reporter/CoverageHTMLReporterAssetTest.java b/src/test/java/org/utplsql/api/reporter/CoverageHTMLReporterAssetTest.java index b94cc32..b6e5297 100644 --- a/src/test/java/org/utplsql/api/reporter/CoverageHTMLReporterAssetTest.java +++ b/src/test/java/org/utplsql/api/reporter/CoverageHTMLReporterAssetTest.java @@ -1,6 +1,5 @@ package org.utplsql.api.reporter; -import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Tag; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.io.TempDir; @@ -25,7 +24,6 @@ private void testFileExists(Path filePath) { assertTrue(f.exists(), () -> "File " + f + " does not exist"); } - @Disabled("No idea why this ever worked") @Test void writeReporterAssetsTo() throws RuntimeException { From 87a3ac1073c4e40851beed889b4d98a3c30b93a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jacek=20G=C4=99bal?= Date: Thu, 23 Apr 2026 11:53:15 +0300 Subject: [PATCH 03/20] Extending examples to include a taest taht is failing and a test that is raising exception. This allows for comprehensive API testing. --- .../sql/simple/scripts/tests/APP.TEST_PKG_TEST_ME.pkb | 11 +++++++++++ .../sql/simple/scripts/tests/APP.TEST_PKG_TEST_ME.pks | 5 +++++ 2 files changed, 16 insertions(+) diff --git a/scripts/sql/simple/scripts/tests/APP.TEST_PKG_TEST_ME.pkb b/scripts/sql/simple/scripts/tests/APP.TEST_PKG_TEST_ME.pkb index 115bc15..e3623d5 100644 --- a/scripts/sql/simple/scripts/tests/APP.TEST_PKG_TEST_ME.pkb +++ b/scripts/sql/simple/scripts/tests/APP.TEST_PKG_TEST_ME.pkb @@ -122,5 +122,16 @@ CREATE OR REPLACE PACKAGE BODY TEST_PKG_TEST_ME AS UT.EXPECT(VEXPECTED).TO_(EQUAL(VACTUAL)); END; + + PROCEDURE TEST_THAT_FAILS IS + BEGIN + UT.FAIL('Tis test is meant to fail to demonstrate failure'); + END; + + PROCEDURE TEST_THAT_RAISES_EXCEPTION IS + l_num number; + BEGIN + l_num := 1/0; + END; END; / diff --git a/scripts/sql/simple/scripts/tests/APP.TEST_PKG_TEST_ME.pks b/scripts/sql/simple/scripts/tests/APP.TEST_PKG_TEST_ME.pks index 8a2b852..757cd5c 100644 --- a/scripts/sql/simple/scripts/tests/APP.TEST_PKG_TEST_ME.pks +++ b/scripts/sql/simple/scripts/tests/APP.TEST_PKG_TEST_ME.pks @@ -84,5 +84,10 @@ CREATE OR REPLACE PACKAGE TEST_PKG_TEST_ME AS -- %tags(cursor) PROCEDURE TEST_PR_TEST_ME_CURSOR; + -- %test( This is a failing test) + PROCEDURE TEST_THAT_FAILS; + + -- %test( This is a test that raises an exception) + PROCEDURE TEST_THAT_RAISES_EXCEPTION; END; / From ad1735e9902363cd72f1e713fc2c8bd1e0557f67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jacek=20G=C4=99bal?= Date: Thu, 23 Apr 2026 12:37:07 +0300 Subject: [PATCH 04/20] Reverting a check in code to see if assets are inclusion in JAR. They are to be included. --- src/main/java/org/utplsql/api/ResourceUtil.java | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/main/java/org/utplsql/api/ResourceUtil.java b/src/main/java/org/utplsql/api/ResourceUtil.java index b580cce..d4ac0b3 100644 --- a/src/main/java/org/utplsql/api/ResourceUtil.java +++ b/src/main/java/org/utplsql/api/ResourceUtil.java @@ -3,7 +3,6 @@ import java.io.IOException; import java.net.URI; import java.net.URISyntaxException; -import java.net.URL; import java.nio.file.*; import java.nio.file.attribute.BasicFileAttributes; import java.util.Collections; @@ -28,12 +27,7 @@ public static void copyResources(Path resourceAsPath, Path targetDirectory) { try { String resourceName = "/" + resourceAsPath; Files.createDirectories(targetDirectory); - URL resourceUrl = ResourceUtil.class.getResource(resourceName); - if (resourceUrl == null) { - throw new IOException("Coverage HTML assets not found in classpath: " + resourceName - + ". The JAR was built without bundled coverage HTML reporter assets."); - } - URI uri = resourceUrl.toURI(); + URI uri = ResourceUtil.class.getResource(resourceName).toURI(); Path myPath; if (uri.getScheme().equalsIgnoreCase("jar")) { try (FileSystem fileSystem = FileSystems.newFileSystem(uri, Collections.emptyMap())) { @@ -50,7 +44,7 @@ public static void copyResources(Path resourceAsPath, Path targetDirectory) { } private static void copyRecursive(Path from, Path targetDirectory) throws IOException { - Files.walkFileTree(from, new SimpleFileVisitor<>() { + Files.walkFileTree(from, new SimpleFileVisitor() { @Override public FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs) throws IOException { From c13a4d610c55d36bc7a11ea2bb56eb94e2ec8e5f Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 23 Apr 2026 09:44:10 +0000 Subject: [PATCH 05/20] chore(release): release 3.2.3 [skip ci] --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 7451ff2..def0fa1 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ org.utplsql utplsql-java-api - 3.2.3-SNAPSHOT + 3.2.3 utPLSQL Java API Java API for running Unit Tests with utPLSQL v3+. From 42a727157d82127a3b0161cfbcaa4a197303c9bd Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 23 Apr 2026 09:44:12 +0000 Subject: [PATCH 06/20] chore(release): bump to 3.2.4-SNAPSHOT [skip ci] --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index def0fa1..c9e5c44 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ org.utplsql utplsql-java-api - 3.2.3 + 3.2.4-SNAPSHOT utPLSQL Java API Java API for running Unit Tests with utPLSQL v3+. From 727937e6922149453b4500233b2739f991f3de86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jacek=20G=C4=99bal?= Date: Thu, 23 Apr 2026 13:35:12 +0300 Subject: [PATCH 07/20] Add triggering of a snapshot build for utPLSQL-cli --- .github/workflows/build.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 339e804..a393164 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -76,6 +76,18 @@ jobs: MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }} MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }} + - name: Get project version + id: project_version + run: echo "version=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_OUTPUT + + - name: Trigger utPLSQL-cli snapshot build + uses: peter-evans/repository-dispatch@v3 + with: + token: ${{ secrets.API_TOKEN_GITHUB }} + repository: utPLSQL/utPLSQL-cli + event-type: utPLSQL-java-api-build + client-payload: '{"api_version": "${{ steps.project_version.outputs.version }}"}' + - name: Publish unit test results uses: EnricoMi/publish-unit-test-result-action@v2 if: always() From cccb04d89131ce29065a674134a95f149f63c05f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jacek=20G=C4=99bal?= Date: Thu, 23 Apr 2026 16:13:44 +0300 Subject: [PATCH 08/20] Update token for Trigger utPLSQL-cli snapshot build --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a393164..4aa4259 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -83,7 +83,7 @@ jobs: - name: Trigger utPLSQL-cli snapshot build uses: peter-evans/repository-dispatch@v3 with: - token: ${{ secrets.API_TOKEN_GITHUB }} + token: ${{ secrets.CLI_REPO_TOKEN }} repository: utPLSQL/utPLSQL-cli event-type: utPLSQL-java-api-build client-payload: '{"api_version": "${{ steps.project_version.outputs.version }}"}' From cc8c9d15894598a6998e65e3e820296b6cc524c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jacek=20G=C4=99bal?= Date: Thu, 23 Apr 2026 17:06:39 +0300 Subject: [PATCH 09/20] Update compiler release to Java 17 Update of readme --- README.md | 6 +++--- pom.xml | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 3f11520..20f9568 100644 --- a/README.md +++ b/README.md @@ -17,13 +17,13 @@ This is a Maven Library project, you can add on your Java project as a dependenc org.utplsql utplsql-java-api - 3.1.16 + 3.2.3 ``` ## Compatibility -The latest Java-API is always compatible with all database frameworks of the same major version. -For example API-3.0.4 is compatible with database framework 3.0.0-3.1.* but not with database framework 2.x. +The latest Java-API is always compatible with database frameworks of the same minor version. +For example API-3.2.3 is compatible with database framework 3.2 but not with database framework 3.0 or 3.3 It is although recommended to always use the latest release of the API to build your tools for utPLSQL. diff --git a/pom.xml b/pom.xml index c9e5c44..4a44373 100644 --- a/pom.xml +++ b/pom.xml @@ -12,8 +12,8 @@ UTF-8 - 11 - 11 + 17 + 5.12.2 23.7.0.25.01 From b12b7117209121970401dece734ed06ed6c1c86c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jacek=20G=C4=99bal?= Date: Thu, 23 Apr 2026 17:34:11 +0300 Subject: [PATCH 10/20] Update dispatch of builds --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4aa4259..5c9edec 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,7 +1,7 @@ name: Build & test on: push: - branches-ignore: [ main ] + branches: [ develop ] pull_request: branches: [ develop ] workflow_dispatch: From 60d1d348d56c1a61c14b296c858d2e27ea0ae06b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jacek=20G=C4=99bal?= Date: Mon, 27 Apr 2026 12:43:45 +0300 Subject: [PATCH 11/20] Update build process --- .github/workflows/build.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5c9edec..3c0752a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -70,6 +70,7 @@ jobs: SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - name: Maven deploy snapshot + if: github.event_name != 'pull_request' run: mvn deploy -DskipTests env: MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }} @@ -77,10 +78,12 @@ jobs: MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }} - name: Get project version + if: github.event_name != 'pull_request' id: project_version run: echo "version=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_OUTPUT - name: Trigger utPLSQL-cli snapshot build + if: github.event_name != 'pull_request' uses: peter-evans/repository-dispatch@v3 with: token: ${{ secrets.CLI_REPO_TOKEN }} From 3a5c71c02a0c8ace2b1861aa57fbd6f15acd1288 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jacek=20G=C4=99bal?= Date: Mon, 27 Apr 2026 12:58:41 +0300 Subject: [PATCH 12/20] Update readme --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 20f9568..d3d5797 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +[![latest-release](https://img.shields.io/github/release/utPLSQL/utPLSQL-java-api.svg)](https://github.com/utPLSQL/utPLSQL-java-api/releases) +[![license](https://img.shields.io/github/license/utPLSQL/utPLSQL-java-api.svg)](https://www.apache.org/licenses/LICENSE-2.0) [![Build status](https://github.com/utPLSQL/utPLSQL-java-api/actions/workflows/build.yml/badge.svg)](https://github.com/utPLSQL/utPLSQL-java-api/actions/workflows/build.yml) # utPLSQL-java-api From ad19ef61c52dcd58d7223a1c297f2453fa4d3e23 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 27 Apr 2026 10:12:57 +0000 Subject: [PATCH 13/20] chore(release): release 3.2.4 [skip ci] --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 4a44373..ed72c84 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ org.utplsql utplsql-java-api - 3.2.4-SNAPSHOT + 3.2.4 utPLSQL Java API Java API for running Unit Tests with utPLSQL v3+. From 95ef11147702156abd9a1bdb2cbf62cf470d0515 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 27 Apr 2026 10:12:59 +0000 Subject: [PATCH 14/20] chore(release): bump to 3.2.5-SNAPSHOT [skip ci] --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index ed72c84..fcb57e4 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ org.utplsql utplsql-java-api - 3.2.4 + 3.2.5-SNAPSHOT utPLSQL Java API Java API for running Unit Tests with utPLSQL v3+. From 884389c3449d759dd3c600506b2dfec23b254b3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jacek=20G=C4=99bal?= Date: Mon, 27 Apr 2026 14:24:27 +0300 Subject: [PATCH 15/20] Update build process to trigger build on two repositories. --- .github/workflows/build.yml | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3c0752a..8449e97 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -82,14 +82,17 @@ jobs: id: project_version run: echo "version=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_OUTPUT - - name: Trigger utPLSQL-cli snapshot build + - name: Trigger snapshot builds if: github.event_name != 'pull_request' - uses: peter-evans/repository-dispatch@v3 - with: - token: ${{ secrets.CLI_REPO_TOKEN }} - repository: utPLSQL/utPLSQL-cli - event-type: utPLSQL-java-api-build - client-payload: '{"api_version": "${{ steps.project_version.outputs.version }}"}' + env: + GH_TOKEN: ${{ secrets.CLI_REPO_TOKEN }} + run: | + for repo in utPLSQL/utPLSQL-cli utPLSQL/utPLSQL-maven-plugin; do + gh api repos/$repo/dispatches \ + --method POST \ + --field event_type=utPLSQL-java-api-build \ + --field client_payload='{"api_version":"${{ steps.project_version.outputs.version }}"}' + done - name: Publish unit test results uses: EnricoMi/publish-unit-test-result-action@v2 From 86109e3ca748847141f72883d9e6b51049e06ada Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jacek=20G=C4=99bal?= Date: Mon, 27 Apr 2026 14:33:26 +0300 Subject: [PATCH 16/20] Update build process to trigger build on two repositories. --- .github/workflows/build.yml | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8449e97..7b3f71b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -82,17 +82,23 @@ jobs: id: project_version run: echo "version=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_OUTPUT - - name: Trigger snapshot builds + - name: Trigger utPLSQL-cli snapshot build if: github.event_name != 'pull_request' - env: - GH_TOKEN: ${{ secrets.CLI_REPO_TOKEN }} - run: | - for repo in utPLSQL/utPLSQL-cli utPLSQL/utPLSQL-maven-plugin; do - gh api repos/$repo/dispatches \ - --method POST \ - --field event_type=utPLSQL-java-api-build \ - --field client_payload='{"api_version":"${{ steps.project_version.outputs.version }}"}' - done + uses: peter-evans/repository-dispatch@v3 + with: + token: ${{ secrets.CLI_REPO_TOKEN }} + repository: utPLSQL/utPLSQL-cli + event-type: utPLSQL-java-api-build + client-payload: '{"api_version": "${{ steps.project_version.outputs.version }}"}' + + - name: Trigger utPLSQL-maven-plugin snapshot build + if: github.event_name != 'pull_request' + uses: peter-evans/repository-dispatch@v3 + with: + token: ${{ secrets.CLI_REPO_TOKEN }} + repository: utPLSQL/utPLSQL-maven-plugin + event-type: utPLSQL-java-api-build + client-payload: '{"api_version": "${{ steps.project_version.outputs.version }}"}' - name: Publish unit test results uses: EnricoMi/publish-unit-test-result-action@v2 From 5b34ffe84d3cb159269d72da57734d5a7e261ba7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jacek=20G=C4=99bal?= Date: Mon, 27 Apr 2026 19:43:19 +0300 Subject: [PATCH 17/20] Update badges in README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index d3d5797..3e83c92 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ [![latest-release](https://img.shields.io/github/release/utPLSQL/utPLSQL-java-api.svg)](https://github.com/utPLSQL/utPLSQL-java-api/releases) [![license](https://img.shields.io/github/license/utPLSQL/utPLSQL-java-api.svg)](https://www.apache.org/licenses/LICENSE-2.0) [![Build status](https://github.com/utPLSQL/utPLSQL-java-api/actions/workflows/build.yml/badge.svg)](https://github.com/utPLSQL/utPLSQL-java-api/actions/workflows/build.yml) +[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=utPLSQL_utPLSQL-java-api&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=utPLSQL_utPLSQL-java-api) # utPLSQL-java-api This is a collection of classes, that makes it easy to access the [utPLSQL v3](https://github.com/utPLSQL/utPLSQL/) database objects using Java. From 800715f107dd358fe0098f7b5ddff443b4eca882 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jacek=20G=C4=99bal?= Date: Mon, 27 Apr 2026 20:31:26 +0300 Subject: [PATCH 18/20] Update release process --- .github/workflows/release.yml | 33 ++++++++++++++++++++------------- 1 file changed, 20 insertions(+), 13 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0a72eb9..19ea48f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,8 +7,13 @@ on: description: 'Release version (e.g. 3.2.3)' required: true next_snapshot: - description: 'Next snapshot version (e.g. 3.2.4) without the "-SNAPSHOT" word' - required: true + description: 'Next development version (default: auto-increment patch,e.g. 3.2.4) without the "-SNAPSHOT" word' + required: false + +permissions: + contents: write + id-token: write + attestations: write defaults: run: @@ -75,8 +80,7 @@ jobs: ${{ runner.os }}-maven- - name: Set release version - run: | - mvn versions:set -DnewVersion=${{ inputs.release_version }} -DgenerateBackupPoms=false + run: mvn versions:set -DnewVersion=${{ inputs.release_version }} -DgenerateBackupPoms=false - name: Build and test release run: mvn clean verify -Prelease @@ -93,18 +97,21 @@ jobs: - name: Commit and tag release version run: | - git add -u - git commit -m "chore(release): release ${{ inputs.release_version }} [skip ci]" + git add pom.xml + git commit -m "Release ${{ inputs.release_version }} [skip ci]" git tag -a "v${{ inputs.release_version }}" -m "Release ${{ inputs.release_version }}" - - name: Set next snapshot version - run: | - mvn versions:set -DnewVersion=${{ inputs.next_snapshot }}-SNAPSHOT -DgenerateBackupPoms=false - - - name: Commit next snapshot version + - name: Calculate and set next development version run: | - git add -u - git commit -m "chore(release): bump to ${{ inputs.next_snapshot }}-SNAPSHOT [skip ci]" + if [[ -n "${{ inputs.next_snapshot }}" ]]; then + NEXT="${{ inputs.next_snapshot }}-SNAPSHOT" + else + IFS='.' read -r major minor patch <<< "${{ inputs.release_version }}" + NEXT="${major}.${minor}.$((patch + 1))-SNAPSHOT" + fi + mvn -B versions:set -DnewVersion="$NEXT" -DgenerateBackupPoms=false + git add pom.xml + git commit -m "Prepare next development version $NEXT [skip ci]" - name: Push commits and tag run: | From 4dd8e06aa6df61aebbe6d5773d5a9b664e650741 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jacek=20G=C4=99bal?= Date: Tue, 28 Apr 2026 20:43:49 +0300 Subject: [PATCH 19/20] Update release process --- pom.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index fcb57e4..e54d0fa 100644 --- a/pom.xml +++ b/pom.xml @@ -285,11 +285,12 @@ org.sonatype.central central-publishing-maven-plugin - 0.7.0 + 0.10.0 true central true + published From 5335ab55a1e081d3b7175ca3c68d1062c79a385c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jacek=20G=C4=99bal?= Date: Mon, 8 Jun 2026 13:14:36 +0300 Subject: [PATCH 20/20] Remove references to coveralls reporter for versions after 3.1. No need for changes in versions prior to 3.1 fro now. Cleanup of api is needed to do it. --- src/test/java/org/utplsql/api/ReporterInspectorIT.java | 1 - src/test/java/org/utplsql/api/TestRunnerIT.java | 1 - 2 files changed, 2 deletions(-) diff --git a/src/test/java/org/utplsql/api/ReporterInspectorIT.java b/src/test/java/org/utplsql/api/ReporterInspectorIT.java index 4f3f13d..96dc885 100644 --- a/src/test/java/org/utplsql/api/ReporterInspectorIT.java +++ b/src/test/java/org/utplsql/api/ReporterInspectorIT.java @@ -32,7 +32,6 @@ void testGetReporterInfo() throws SQLException, InvalidVersionException { assertEquals(infos.get(CoreReporters.UT_COVERAGE_HTML_REPORTER.name()).getType(), ReporterInfo.Type.SQL_WITH_JAVA); assertEquals(infos.get(CoreReporters.UT_COVERAGE_SONAR_REPORTER.name()).getType(), ReporterInfo.Type.SQL); - assertEquals(infos.get(CoreReporters.UT_COVERALLS_REPORTER.name()).getType(), ReporterInfo.Type.SQL); assertEquals(infos.get(CoreReporters.UT_DOCUMENTATION_REPORTER.name()).getType(), ReporterInfo.Type.SQL_WITH_JAVA); assertEquals(infos.get(CoreReporters.UT_SONAR_TEST_REPORTER.name()).getType(), ReporterInfo.Type.SQL); assertEquals(infos.get(CoreReporters.UT_TEAMCITY_REPORTER.name()).getType(), ReporterInfo.Type.SQL); diff --git a/src/test/java/org/utplsql/api/TestRunnerIT.java b/src/test/java/org/utplsql/api/TestRunnerIT.java index 0246c26..00b5c13 100644 --- a/src/test/java/org/utplsql/api/TestRunnerIT.java +++ b/src/test/java/org/utplsql/api/TestRunnerIT.java @@ -53,7 +53,6 @@ void runWithManyReporters() throws SQLException { .addReporter(CoreReporters.UT_DOCUMENTATION_REPORTER.name()) .addReporter(CoreReporters.UT_COVERAGE_HTML_REPORTER.name()) .addReporter(CoreReporters.UT_COVERAGE_SONAR_REPORTER.name()) - .addReporter(CoreReporters.UT_COVERALLS_REPORTER.name()) .addReporter(CoreReporters.UT_SONAR_TEST_REPORTER.name()) .addReporter(CoreReporters.UT_TEAMCITY_REPORTER.name()) .addReporter(CoreReporters.UT_JUNIT_REPORTER.name())