Skip to content

Commit e7083b6

Browse files
authored
Update Selenium to 4.34.0 (#103) +semver:feature
* Update Selenium to 4.34.0 +semver:feature Sonatype deploy: publish with central-publishing-maven-plugin, use maven versions plugin * fix server id, update sonar task versions
1 parent 5ee1e35 commit e7083b6

File tree

3 files changed

+32
-33
lines changed

3 files changed

+32
-33
lines changed

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
with:
2121
java-version: "11"
2222
distribution: "adopt"
23-
server-id: ossrh
23+
server-id: central
2424
server-username: MVN_CENTRAL_USERNAME
2525
server-password: MVN_CENTRAL_PASSWORD
2626
gpg-private-key: ${{ secrets.GPG_SECRET_KEY }}
@@ -54,7 +54,12 @@ jobs:
5454

5555
- name: Step 6 - Publish package
5656
run: |
57-
mvn -Dmaven.test.skip=true -P release -Drevision=${{ steps.gitversion.outputs.semVer }} deploy
57+
mvn -B --no-transfer-progress \
58+
versions:set \
59+
-DnewVersion=${{ steps.gitversion.outputs.semVer }} \
60+
-DgenerateBackupPoms=false \
61+
-DprocessAllModules
62+
mvn -B --no-transfer-progress -Dmaven.test.skip=true deploy
5863
env:
5964
MVN_CENTRAL_USERNAME: ${{ secrets.OSSRH_USERNAME }}
6065
MVN_CENTRAL_PASSWORD: ${{ secrets.OSSRH_TOKEN }}

azure-pipelines.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
displayName: Analyse code with SonarQube
1010

1111
steps:
12-
- task: SonarCloudPrepare@2
12+
- task: SonarCloudPrepare@3
1313
displayName: 'Prepare SonarCloud analysis'
1414
inputs:
1515
SonarCloud: 'SonarCloud'
@@ -32,13 +32,13 @@ jobs:
3232
effectivePomSkip: false
3333
sonarQubeRunAnalysis: false
3434

35-
- task: SonarCloudAnalyze@2
35+
- task: SonarCloudAnalyze@3
3636
inputs:
3737
jdkversion: 'JAVA_HOME_21_X64'
3838
displayName: 'Run SonarCloud code analysis'
3939
continueOnError: true
4040

41-
- task: SonarCloudPublish@2
41+
- task: SonarCloudPublish@3
4242
displayName: 'Publish SonarCloud quality gate results'
4343
inputs:
4444
pollingTimeoutSec: '300'

pom.xml

Lines changed: 22 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>com.github.aquality-automation</groupId>
88
<artifactId>aquality-selenium-core</artifactId>
9-
<version>${revision}</version>
9+
<version>4.0.0</version>
1010

1111
<packaging>jar</packaging>
1212
<name>Aquality Selenium Core</name>
@@ -16,21 +16,9 @@
1616
<properties>
1717
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
1818
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
19-
<revision>4.0.0-SNAPSHOT</revision>
20-
<log4j.version>2.24.3</log4j.version>
19+
<log4j.version>2.25.1</log4j.version>
2120
</properties>
2221

23-
<distributionManagement>
24-
<snapshotRepository>
25-
<id>ossrh</id>
26-
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
27-
</snapshotRepository>
28-
<repository>
29-
<id>ossrh</id>
30-
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
31-
</repository>
32-
</distributionManagement>
33-
3422
<scm>
3523
<connection>scm:git:[email protected]:aquality-automation/aquality-selenium-core-java.git</connection>
3624
<developerConnection>scm:git:[email protected]:aquality-automation/aquality-selenium-core-java.git</developerConnection>
@@ -131,18 +119,18 @@
131119
<dependency>
132120
<groupId>org.seleniumhq.selenium</groupId>
133121
<artifactId>selenium-java</artifactId>
134-
<version>4.33.0</version>
122+
<version>4.34.0</version>
135123
</dependency>
136124
<dependency>
137125
<groupId>io.appium</groupId>
138126
<artifactId>java-client</artifactId>
139-
<version>9.4.0</version>
127+
<version>9.5.0</version>
140128
<scope>test</scope>
141129
</dependency>
142130
<dependency>
143131
<groupId>org.apache.commons</groupId>
144132
<artifactId>commons-lang3</artifactId>
145-
<version>3.17.0</version>
133+
<version>3.18.0</version>
146134
<scope>test</scope>
147135
</dependency>
148136
</dependencies>
@@ -152,7 +140,7 @@
152140
<plugin>
153141
<groupId>org.apache.maven.plugins</groupId>
154142
<artifactId>maven-compiler-plugin</artifactId>
155-
<version>3.13.0</version>
143+
<version>3.14.0</version>
156144
<configuration>
157145
<source>11</source>
158146
<target>11</target>
@@ -161,7 +149,7 @@
161149
<plugin>
162150
<groupId>org.jacoco</groupId>
163151
<artifactId>jacoco-maven-plugin</artifactId>
164-
<version>0.8.12</version>
152+
<version>0.8.13</version>
165153
<executions>
166154
<execution>
167155
<id>pre-unit-test</id>
@@ -189,7 +177,7 @@
189177
<plugin>
190178
<groupId>org.apache.maven.plugins</groupId>
191179
<artifactId>maven-surefire-plugin</artifactId>
192-
<version>3.5.2</version>
180+
<version>3.5.3</version>
193181
<configuration>
194182
<argLine>${surefireArgLine} -Dfile.encoding=UTF-8</argLine>
195183
<reuseForks>false</reuseForks>
@@ -201,6 +189,7 @@
201189
<plugin>
202190
<groupId>org.apache.maven.plugins</groupId>
203191
<artifactId>maven-assembly-plugin</artifactId>
192+
<version>3.7.1</version>
204193
<executions>
205194
<execution>
206195
<goals>
@@ -231,7 +220,7 @@
231220
<plugin>
232221
<groupId>org.apache.maven.plugins</groupId>
233222
<artifactId>maven-javadoc-plugin</artifactId>
234-
<version>3.11.1</version>
223+
<version>3.11.2</version>
235224
<configuration>
236225
<source>11</source>
237226
</configuration>
@@ -247,7 +236,7 @@
247236
<plugin>
248237
<groupId>org.apache.maven.plugins</groupId>
249238
<artifactId>maven-gpg-plugin</artifactId>
250-
<version>3.2.7</version>
239+
<version>3.2.8</version>
251240
<executions>
252241
<execution>
253242
<id>sign-artifacts</id>
@@ -265,16 +254,21 @@
265254
</executions>
266255
</plugin>
267256
<plugin>
268-
<groupId>org.sonatype.plugins</groupId>
269-
<artifactId>nexus-staging-maven-plugin</artifactId>
270-
<version>1.7.0</version>
257+
<groupId>org.sonatype.central</groupId>
258+
<artifactId>central-publishing-maven-plugin</artifactId>
259+
<version>0.8.0</version>
271260
<extensions>true</extensions>
272261
<configuration>
273-
<serverId>ossrh</serverId>
274-
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
275-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
262+
<publishingServerId>central</publishingServerId>
263+
<autoPublish>true</autoPublish>
264+
<waitUntil>published</waitUntil>
276265
</configuration>
277266
</plugin>
267+
<plugin>
268+
<groupId>org.codehaus.mojo</groupId>
269+
<artifactId>versions-maven-plugin</artifactId>
270+
<version>2.18.0</version>
271+
</plugin>
278272
</plugins>
279273
</build>
280274
</project>

0 commit comments

Comments
 (0)