diff --git a/plugin-modernizer-core/src/test/java/io/jenkins/tools/pluginmodernizer/core/utils/PomModifierTest.java b/plugin-modernizer-core/src/test/java/io/jenkins/tools/pluginmodernizer/core/utils/PomModifierTest.java
index b0c50bcc..c3daea26 100644
--- a/plugin-modernizer-core/src/test/java/io/jenkins/tools/pluginmodernizer/core/utils/PomModifierTest.java
+++ b/plugin-modernizer-core/src/test/java/io/jenkins/tools/pluginmodernizer/core/utils/PomModifierTest.java
@@ -142,4 +142,28 @@ public void testUpdateJenkinsMinimalVersion() throws Exception {
logger.info("Jenkins version found: " + jenkinsVersion);
assertEquals("2.462.2", jenkinsVersion);
}
+
+ /**
+ * Tests the replaceHttpWithHttps method of PomModifier.
+ *
+ * @throws Exception if an error occurs during the test
+ */
+ @Test
+ public void testReplaceHttpWithHttps() throws Exception {
+ PomModifier pomModifier = new PomModifier(OUTPUT_POM_PATH);
+ pomModifier.replaceHttpWithHttps();
+ pomModifier.savePom(OUTPUT_POM_PATH);
+
+ DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();
+ DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();
+ Document doc = dBuilder.parse(new File(OUTPUT_POM_PATH));
+ doc.getDocumentElement().normalize();
+
+ NodeList repositoryUrls = doc.getElementsByTagName("url");
+ for (int i = 0; i < repositoryUrls.getLength(); i++) {
+ Node urlNode = repositoryUrls.item(i);
+ String url = urlNode.getTextContent();
+ assertTrue(url.startsWith("https://"), "URL should start with https://");
+ }
+ }
}
diff --git a/pom.xml b/pom.xml
index aba0a5f7..0a57e91d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -5,7 +5,7 @@
org.jenkins-ci
jenkins
- 1.124
+ 1.125
@@ -61,7 +61,7 @@
7.0.0.202409031743-r
1.326
1.27.1
- 1.15.4
+ 1.15.5
3.9.1
3.1.13
2.3