Skip to content

Commit

Permalink
JDK 11 (#81)
Browse files Browse the repository at this point in the history
  • Loading branch information
KMariusz authored Oct 10, 2023
1 parent 9394375 commit f274a2c
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 26 deletions.
7 changes: 1 addition & 6 deletions mrchecker-framework-modules/mrchecker-core-module/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
<!-- Cucumber version -->
<cucumber.version>7.14.0</cucumber.version>
<gherkin.cucumber.version>27.0.0</gherkin.cucumber.version>
<cucumber-reporting.version>5.7.6</cucumber-reporting.version>
<cucumber-reporting.version>5.7.7</cucumber-reporting.version>

<!--GSON-->
<gson.version>2.10.1</gson.version>
Expand Down Expand Up @@ -156,11 +156,6 @@
<artifactId>cucumber-java</artifactId>
<version>${cucumber.version}</version>
</dependency>
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-java8</artifactId>
<version>${cucumber.version}</version>
</dependency>
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-core</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public void beforeTestExecution(ExtensionContext context) {
//AfterTestExecutionCallback
@Override
public void afterTestExecution(ExtensionContext inputContext) {
ExtensionContext context = inputContext == null ? extensionContext.get() : inputContext;
var context = inputContext == null ? extensionContext.get() : inputContext;
setExtensionContext(context);
stopwatch.set(System.currentTimeMillis() - stopwatch.get()); // end timing
logTestInfo("FINISHED");
Expand Down
6 changes: 3 additions & 3 deletions mrchecker-framework-modules/mrchecker-database-module/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@
<project.build.sourceEncoding>UTF8</project.build.sourceEncoding>

<jpa.version>2.2</jpa.version>
<hibernate-core.version>6.1.7.Final</hibernate-core.version>
<mysql-connector-j.version>8.0.32</mysql-connector-j.version>
<byte-buddy.version>1.14.0</byte-buddy.version>
<hibernate-core.version>6.3.1.Final</hibernate-core.version>
<mysql-connector-j.version>8.1.0</mysql-connector-j.version>
<byte-buddy.version>1.14.8</byte-buddy.version>
</properties>

<dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
<project.build.sourceEncoding>UTF8</project.build.sourceEncoding>

<!-- Lib/package version settings -->
<io.appium.java.client.version>8.3.0</io.appium.java.client.version>
<io.appium.java.client.version>8.5.1</io.appium.java.client.version>
</properties>

<dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
<project.build.sourceEncoding>UTF8</project.build.sourceEncoding>

<!-- Selenium settings -->
<selenium.version>4.12.1</selenium.version>
<selenium.version>4.14.0</selenium.version>

<webdrivermanager.version>5.5.3</webdrivermanager.version>
<google-api-client.version>2.2.0</google-api-client.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@
import org.openqa.selenium.firefox.FirefoxProfile;
import org.openqa.selenium.ie.InternetExplorerDriver;
import org.openqa.selenium.ie.InternetExplorerOptions;
import org.openqa.selenium.remote.*;
import org.openqa.selenium.remote.AbstractDriverOptions;
import org.openqa.selenium.remote.Browser;
import org.openqa.selenium.remote.DesiredCapabilities;
import org.openqa.selenium.remote.RemoteWebDriver;
import org.openqa.selenium.support.ui.WebDriverWait;

import java.net.MalformedURLException;
Expand Down Expand Up @@ -330,7 +333,7 @@ private static INewWebDriver getRemoteDriver(MutableCapabilities options) {
}

private static void setBrowserName(DesiredCapabilities capabilities, MutableCapabilities options) {
BrowserType browserType = BrowserType.get();
var browserType = BrowserType.get();
switch (browserType) {
case CHROME:
capabilities.setCapability(ChromeOptions.CAPABILITY, options);
Expand Down
7 changes: 3 additions & 4 deletions mrchecker-framework-modules/mrchecker-webapi-module/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
<project.build.sourceEncoding>UTF8</project.build.sourceEncoding>

<!-- Lib/package version settings -->
<wiremock.version>2.27.2</wiremock.version>
<wiremock.version>3.2.0</wiremock.version>
<wiremock-body-transformer.version>1.1.6</wiremock-body-transformer.version>
<java-xmlbuilder.version>1.3</java-xmlbuilder.version>

Expand Down Expand Up @@ -124,10 +124,9 @@
</dependency>

<!-- Dependency to start mock API -->
<!-- https://mvnrepository.com/artifact/org.wiremock/wiremock -->
<dependency>
<!-- http://wiremock.org/docs/ -->
<!-- https://github.com/tomakehurst/wiremock/blob/master/src/test/java/ignored/Examples.java#374 -->
<groupId>com.github.tomakehurst</groupId>
<groupId>org.wiremock</groupId>
<artifactId>wiremock</artifactId>
<version>${wiremock.version}</version>
</dependency>
Expand Down
13 changes: 5 additions & 8 deletions mrchecker-framework-modules/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -90,14 +90,14 @@
<jacoco-maven-plugin.version>0.8.10</jacoco-maven-plugin.version>

<!-- Java settings -->
<java.compiler.version>1.8</java.compiler.version>
<java.compiler.version>11</java.compiler.version>

<!-- Tests executors -->
<maven-surefire-plugin.version>3.1.2</maven-surefire-plugin.version>
<surefire.provider.version>1.3.2</surefire.provider.version>

<!-- Test tools -->
<mockito.version>4.11.0</mockito.version>
<mockito.version>5.6.0</mockito.version>
<hamcrest.version>2.2</hamcrest.version>
<junit.version>5.10.0</junit.version>
<junit.platform.version>1.10.0</junit.platform.version>
Expand Down Expand Up @@ -211,7 +211,6 @@
</dependencies>
</dependencyManagement>


<!-- The bellow dependencies will ba automatically included in modules -->
<dependencies>

Expand Down Expand Up @@ -451,8 +450,8 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>8</source>
<target>8</target>
<source>11</source>
<target>11</target>
</configuration>
</plugin>
<plugin>
Expand Down Expand Up @@ -545,7 +544,6 @@
</executions>
</plugin>


<!-- <plugin>
<groupId>com.coderplus.maven.plugins</groupId>
<artifactId>copy-rename-maven-plugin</artifactId>
Expand Down Expand Up @@ -657,7 +655,6 @@

</profile>


<profile>
<id>default</id>
<activation>
Expand All @@ -683,7 +680,7 @@
<version>3.3.9</version>
</requireMavenVersion>
<requireJavaVersion>
<version>1.8</version>
<version>11</version>
</requireJavaVersion>
</rules>
</configuration>
Expand Down

0 comments on commit f274a2c

Please sign in to comment.