From 548f71062e989d754b54145b412a16c741a91bbe Mon Sep 17 00:00:00 2001 From: Mohammad Faisal Khatri Date: Tue, 19 Dec 2023 15:23:35 +0530 Subject: [PATCH] Updated plugins and dependencies versions in pom.xml (#128) * updated maven dependencies * updated maven plugin versions in pom.xml * updated pom.xml dependencies and plugin versions * updated seleniumdevtools log version * updated codeql versions * removed browser version from lambdatest cloud browser setup so the tests run on latest browsers --- .github/workflows/codeql-analysis.yml | 4 +- pom.xml | 47 +++++++++++++------ .../drivers/DevToolsManager.java | 2 +- .../mfaisalkhatri/drivers/DriverManager.java | 2 - 4 files changed, 36 insertions(+), 19 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 51e658e..05d1bc4 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -64,7 +64,7 @@ jobs: # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). # If this step fails, then you should remove it and run the build manually (see below) - name: Autobuild - uses: github/codeql-action/autobuild@v1 + uses: github/codeql-action/autobuild@v2 # ℹī¸ Command-line programs to run using the OS shell. # 📚 https://git.io/JvXDl @@ -78,4 +78,4 @@ jobs: # make release - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v1 + uses: github/codeql-action/analyze@v2 diff --git a/pom.xml b/pom.xml index 7aaf1fa..2011bc6 100644 --- a/pom.xml +++ b/pom.xml @@ -13,19 +13,19 @@ UTF-8 - 4.11.0 + 4.16.1 7.8.0 - 5.5.2 - 2.13.0 + 5.6.2 + 2.15.1 2.20.0 2.20.0 - 20230618 - 20230618 - 4.11.0 - 1.18.28 - 2.0.1 - 3.11.0 - 3.1.2 + 20231013 + 4.16.1 + 1.18.30 + 2.0.2 + 3.4.1 + 3.12.0 + 3.2.3 17 UTF-8 test-suite/testng.xml @@ -38,9 +38,9 @@ ${project.basedir}/target/site/jacoco/jacoco.xml 15 - 0.8.10 + 0.8.11 5.14.0.18788 - 3.9.1.2184 + 3.10.0.2594 @@ -99,7 +99,7 @@ org.seleniumhq.selenium - selenium-devtools-v113 + selenium-devtools-v120 ${seleniumdevtools.version} @@ -109,7 +109,6 @@ ${lombok.version} provided - @@ -148,6 +147,26 @@ ${argLine} + + org.apache.maven.plugins + maven-enforcer-plugin + ${maven-enforcer-plugin.version} + + + enforce-maven + + enforce + + + + + 3.2.5 + + + + + + org.sonarsource.scanner.maven sonar-maven-plugin diff --git a/src/main/java/io/github/mfaisalkhatri/drivers/DevToolsManager.java b/src/main/java/io/github/mfaisalkhatri/drivers/DevToolsManager.java index 03844ab..acbde8c 100644 --- a/src/main/java/io/github/mfaisalkhatri/drivers/DevToolsManager.java +++ b/src/main/java/io/github/mfaisalkhatri/drivers/DevToolsManager.java @@ -9,7 +9,7 @@ import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.chrome.ChromeOptions; import org.openqa.selenium.devtools.DevTools; -import org.openqa.selenium.devtools.v113.log.Log; +import org.openqa.selenium.devtools.v120.log.Log; /** * Created By Faisal Khatri on 21-03-2022 diff --git a/src/main/java/io/github/mfaisalkhatri/drivers/DriverManager.java b/src/main/java/io/github/mfaisalkhatri/drivers/DriverManager.java index 4fc75a6..032023f 100644 --- a/src/main/java/io/github/mfaisalkhatri/drivers/DriverManager.java +++ b/src/main/java/io/github/mfaisalkhatri/drivers/DriverManager.java @@ -122,7 +122,6 @@ private static void setupChromeDriver () { private static void setupChromeInLambdaTest () { final var browserOptions = new ChromeOptions (); browserOptions.setPlatformName ("Windows 10"); - browserOptions.setBrowserVersion ("114.0"); browserOptions.setCapability ("LT:Options", ltOptions ()); try { setDriver ( @@ -157,7 +156,6 @@ private static void setupFirefoxDriver () { private static void setupFirefoxInLambdaTest () { final var browserOptions = new FirefoxOptions (); browserOptions.setPlatformName ("Windows 10"); - browserOptions.setBrowserVersion ("114.0"); browserOptions.setCapability ("LT:Options", ltOptions ()); try { setDriver (