From 035e7a44417139586095cec4884477b92e7f80d8 Mon Sep 17 00:00:00 2001 From: Zsofia Borbely Date: Wed, 17 Dec 2025 13:35:07 +0100 Subject: [PATCH] TS-44962 Fix conversion error --- CHANGELOG.md | 1 + .../src/main/java/com/teamscale/maven/tia/TiaMojoBase.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index abc6d9ad8..4dae967ea 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ We use [semantic versioning](http://semver.org/): # Next version - _maven-plugin_: Added maven properties for `runImpacted` and `runAllTests` configuration parameters +- _maven-plugin_: The warning "Both baselineRevision and baselineCommit are set but only one of them is needed" was displayed incorrectly # 36.2.0 - _agent_: improved logging when multiple agents are attached diff --git a/teamscale-maven-plugin/src/main/java/com/teamscale/maven/tia/TiaMojoBase.java b/teamscale-maven-plugin/src/main/java/com/teamscale/maven/tia/TiaMojoBase.java index 3b60b17df..280c4f995 100644 --- a/teamscale-maven-plugin/src/main/java/com/teamscale/maven/tia/TiaMojoBase.java +++ b/teamscale-maven-plugin/src/main/java/com/teamscale/maven/tia/TiaMojoBase.java @@ -160,7 +160,7 @@ public abstract class TiaMojoBase extends TeamscaleMojoBase { public void execute() throws MojoFailureException, MojoExecutionException { super.execute(); - if (!StringUtils.isEmpty(baselineCommit) && StringUtils.isEmpty(baselineRevision)) { + if (!StringUtils.isEmpty(baselineCommit) && !StringUtils.isEmpty(baselineRevision)) { getLog().warn("Both baselineRevision and baselineCommit are set but only one of them is needed. " + "The revision will be preferred in this case. If that's not intended, please do not set the baselineRevision manually."); }