Skip to content

Commit 350de99

Browse files
Complete upgrade to 0.19.0-SNAPSHOT (#534)
- Set version to 0.19.0-SNAPSHOT in custom-checks folder - Use 0.18.0 for testing - Adapt OhInfXmlValidationCheckTest to 0.18.0 Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
1 parent db0f250 commit 350de99

File tree

5 files changed

+17
-5
lines changed

5 files changed

+17
-5
lines changed

custom-checks/checkstyle/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>org.openhab.tools.sat.custom-checks</groupId>
99
<artifactId>pom</artifactId>
10-
<version>0.18.0-SNAPSHOT</version>
10+
<version>0.19.0-SNAPSHOT</version>
1111
</parent>
1212

1313
<artifactId>checkstyle</artifactId>

custom-checks/checkstyle/src/test/java/org/openhab/tools/analysis/checkstyle/test/OhInfXmlValidationCheckTest.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
import java.util.List;
2424
import java.util.Locale;
2525

26+
import org.junit.jupiter.api.AfterAll;
2627
import org.junit.jupiter.api.BeforeAll;
2728
import org.junit.jupiter.api.BeforeEach;
2829
import org.junit.jupiter.api.Test;
@@ -57,13 +58,23 @@ public class OhInfXmlValidationCheckTest extends AbstractStaticCheckTest {
5758

5859
private static final DefaultConfiguration CONFIGURATION = createModuleConfig(OhInfXmlValidationCheck.class);
5960

61+
private static Locale initialLocale;
62+
6063
@BeforeAll
6164
public static void createConfiguration() {
65+
initialLocale = Locale.getDefault();
6266
CONFIGURATION.addProperty("thingSchema", THING_SCHEMA_URL);
6367
CONFIGURATION.addProperty("addonSchema", ADDON_SCHEMA_URL);
6468
CONFIGURATION.addProperty("configSchema", CONFIG_SCHEMA_URL);
6569
}
6670

71+
@AfterAll
72+
@SuppressWarnings("PMD.SetDefaultLocale")
73+
public static void tearDownClass() {
74+
// Set the default locale to its initial value.
75+
Locale.setDefault(initialLocale);
76+
}
77+
6778
@Override
6879
protected String getPackageLocation() {
6980
return "checkstyle/ohInfXmlValidationCheckTest";
@@ -72,6 +83,7 @@ protected String getPackageLocation() {
7283
private boolean isResourceAvailable;
7384

7485
@BeforeEach
86+
@SuppressWarnings("PMD.SetDefaultLocale")
7587
public void checkConnection() {
7688
Locale.setDefault(new Locale("en", "US"));
7789
try {

custom-checks/findbugs/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>org.openhab.tools.sat.custom-checks</groupId>
99
<artifactId>pom</artifactId>
10-
<version>0.18.0-SNAPSHOT</version>
10+
<version>0.19.0-SNAPSHOT</version>
1111
</parent>
1212

1313
<artifactId>findbugs</artifactId>

custom-checks/pmd/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>org.openhab.tools.sat.custom-checks</groupId>
99
<artifactId>pom</artifactId>
10-
<version>0.18.0-SNAPSHOT</version>
10+
<version>0.19.0-SNAPSHOT</version>
1111
</parent>
1212

1313
<artifactId>pmd</artifactId>

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<modelVersion>4.0.0</modelVersion>
66
<groupId>org.openhab.tools.sat</groupId>
77
<artifactId>pom</artifactId>
8-
<version>0.18.0-SNAPSHOT</version>
8+
<version>0.19.0-SNAPSHOT</version>
99
<packaging>pom</packaging>
1010

1111
<name>Static Code Analysis Tool Parent POM</name>
@@ -74,7 +74,7 @@
7474
<maven.plugin.compiler.version>3.14.1</maven.plugin.compiler.version>
7575
<mojo.executor.version>2.4.1</mojo.executor.version>
7676
<org.jsoup.version>1.19.1</org.jsoup.version>
77-
<sat.version>0.17.0</sat.version>
77+
<sat.version>0.18.0</sat.version>
7878
<jdt-annotations.version>2.3.100</jdt-annotations.version>
7979
<flexmark.version>0.64.8</flexmark.version>
8080
<maven.surefire.plugin.version>3.5.4</maven.surefire.plugin.version>

0 commit comments

Comments
 (0)