Skip to content

Commit 47c5cc5

Browse files
authored
Migrate to Java 11 (#88) +semver: breaking
* Migrate to Java 11 +semver: breaking * Update Java version in pipelines * Update to Selenium 4.18.1 * Update plugin and dependencies versions to latest available by the moment
1 parent 0caad73 commit 47c5cc5

File tree

3 files changed

+35
-16
lines changed

3 files changed

+35
-16
lines changed

.github/workflows/release-maven-central.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Step 2 - Set up Maven Central Repository
1919
uses: actions/setup-java@v3
2020
with:
21-
java-version: "8"
21+
java-version: "11"
2222
distribution: "adopt"
2323
server-id: ossrh
2424
server-username: MVN_CENTRAL_USERNAME

azure-pipelines.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
mavenPomFile: 'pom.xml'
2626
mavenOptions: '-Xmx3072m'
2727
javaHomeOption: 'JDKVersion'
28-
jdkVersionOption: '1.8'
28+
jdkVersionOption: '11'
2929
jdkArchitectureOption: 'x64'
3030
publishJUnitResults: true
3131
testResultsFiles: '**/surefire-reports/TEST-*.xml'
@@ -95,7 +95,7 @@ jobs:
9595
mavenPomFile: 'pom.xml'
9696
mavenOptions: '-Xmx3072m'
9797
javaHomeOption: 'JDKVersion'
98-
jdkVersionOption: '1.8'
98+
jdkVersionOption: '11'
9999
jdkArchitectureOption: 'x64'
100100
publishJUnitResults: true
101101
testResultsFiles: '**/surefire-reports/TEST-*.xml'

pom.xml

Lines changed: 32 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
<properties>
1717
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
1818
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
19-
<revision>3.0.0-SNAPSHOT</revision>
20-
<log4j.version>2.22.1</log4j.version>
19+
<revision>4.0.0-SNAPSHOT</revision>
20+
<log4j.version>2.23.0</log4j.version>
2121
</properties>
2222

2323
<distributionManagement>
@@ -104,13 +104,24 @@
104104
<dependency>
105105
<groupId>org.testng</groupId>
106106
<artifactId>testng</artifactId>
107-
<version>7.5.1</version>
107+
<version>7.9.0</version>
108108
<scope>test</scope>
109109
</dependency>
110110
<dependency>
111111
<groupId>com.google.inject</groupId>
112112
<artifactId>guice</artifactId>
113113
<version>6.0.0</version>
114+
<exclusions>
115+
<exclusion>
116+
<groupId>com.google.guava</groupId>
117+
<artifactId>guava</artifactId>
118+
</exclusion>
119+
</exclusions>
120+
</dependency>
121+
<dependency>
122+
<groupId>com.google.guava</groupId>
123+
<artifactId>guava</artifactId>
124+
<version>33.0.0-jre</version>
114125
</dependency>
115126
<dependency>
116127
<groupId>com.fasterxml.jackson.core</groupId>
@@ -120,12 +131,18 @@
120131
<dependency>
121132
<groupId>org.seleniumhq.selenium</groupId>
122133
<artifactId>selenium-java</artifactId>
123-
<version>4.13.0</version>
134+
<version>4.18.1</version>
124135
</dependency>
125136
<dependency>
126137
<groupId>io.appium</groupId>
127138
<artifactId>java-client</artifactId>
128-
<version>8.6.0</version>
139+
<version>9.1.0</version>
140+
<scope>test</scope>
141+
</dependency>
142+
<dependency>
143+
<groupId>org.apache.commons</groupId>
144+
<artifactId>commons-lang3</artifactId>
145+
<version>3.14.0</version>
129146
<scope>test</scope>
130147
</dependency>
131148
</dependencies>
@@ -135,16 +152,16 @@
135152
<plugin>
136153
<groupId>org.apache.maven.plugins</groupId>
137154
<artifactId>maven-compiler-plugin</artifactId>
138-
<version>3.1</version>
155+
<version>3.12.1</version>
139156
<configuration>
140-
<source>1.8</source>
141-
<target>1.8</target>
157+
<source>11</source>
158+
<target>11</target>
142159
</configuration>
143160
</plugin>
144161
<plugin>
145162
<groupId>org.jacoco</groupId>
146163
<artifactId>jacoco-maven-plugin</artifactId>
147-
<version>0.8.4</version>
164+
<version>0.8.11</version>
148165
<executions>
149166
<execution>
150167
<id>pre-unit-test</id>
@@ -172,7 +189,7 @@
172189
<plugin>
173190
<groupId>org.apache.maven.plugins</groupId>
174191
<artifactId>maven-surefire-plugin</artifactId>
175-
<version>2.20</version>
192+
<version>3.2.5</version>
176193
<configuration>
177194
<argLine>${surefireArgLine} -Dfile.encoding=UTF-8</argLine>
178195
<reuseForks>false</reuseForks>
@@ -201,6 +218,7 @@
201218
<plugin>
202219
<groupId>org.apache.maven.plugins</groupId>
203220
<artifactId>maven-source-plugin</artifactId>
221+
<version>3.3.0</version>
204222
<executions>
205223
<execution>
206224
<id>attach-sources</id>
@@ -213,8 +231,9 @@
213231
<plugin>
214232
<groupId>org.apache.maven.plugins</groupId>
215233
<artifactId>maven-javadoc-plugin</artifactId>
234+
<version>3.6.3</version>
216235
<configuration>
217-
<source>8</source>
236+
<source>11</source>
218237
</configuration>
219238
<executions>
220239
<execution>
@@ -228,7 +247,7 @@
228247
<plugin>
229248
<groupId>org.apache.maven.plugins</groupId>
230249
<artifactId>maven-gpg-plugin</artifactId>
231-
<version>1.6</version>
250+
<version>3.1.0</version>
232251
<executions>
233252
<execution>
234253
<id>sign-artifacts</id>
@@ -248,7 +267,7 @@
248267
<plugin>
249268
<groupId>org.sonatype.plugins</groupId>
250269
<artifactId>nexus-staging-maven-plugin</artifactId>
251-
<version>1.6.8</version>
270+
<version>1.6.13</version>
252271
<extensions>true</extensions>
253272
<configuration>
254273
<serverId>ossrh</serverId>

0 commit comments

Comments
 (0)