Skip to content

Commit cdfbbe1

Browse files
authored
Use Appium 8.6.0 with Selenium 4.13.0 (#36) +semver: feature
- Update maven dependencies to latest versions compatible to Java 8 - Add auto-release of package via GitHub workflow This would be the last version that supports Java 8, as Appium and Selenium drop the support.
1 parent 8668269 commit cdfbbe1

File tree

4 files changed

+86
-7
lines changed

4 files changed

+86
-7
lines changed
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
name: Publish package to Maven Central
2+
on:
3+
pull_request:
4+
branches:
5+
- master
6+
types: [closed]
7+
8+
jobs:
9+
publish:
10+
if: github.event.pull_request.merged == true
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Step 1 - Checkout code
14+
uses: actions/checkout@v3
15+
with:
16+
fetch-depth: 0
17+
18+
- name: Step 2 - Set up Maven Central Repository
19+
uses: actions/setup-java@v3
20+
with:
21+
java-version: "8"
22+
distribution: "adopt"
23+
server-id: ossrh
24+
server-username: MVN_CENTRAL_USERNAME
25+
server-password: MVN_CENTRAL_PASSWORD
26+
gpg-private-key: ${{ secrets.GPG_SECRET_KEY }}
27+
gpg-passphrase: MVN_GPG_PASSPHRASE
28+
29+
- name: Step 3 - Install GitVersion
30+
uses: gittools/actions/gitversion/setup@v0
31+
with:
32+
versionSpec: '5.x'
33+
34+
- name: Step 4 - Determine Version
35+
id: gitversion
36+
uses: gittools/actions/gitversion/execute@v0
37+
with:
38+
useConfigFile: true
39+
40+
- name: Step 5 - Create Release
41+
id: create_release
42+
uses: actions/create-release@latest
43+
env:
44+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
45+
TITLE: ${{ github.event.pull_request.title }}
46+
BODY: ${{ github.event.pull_request.body }}
47+
VERSION: "v${{ steps.gitversion.outputs.semVer }}"
48+
with:
49+
tag_name: ${{ env.VERSION }}
50+
release_name: ${{ env.VERSION }} ${{ env.TITLE }}
51+
body: ${{ env.BODY }}
52+
draft: false
53+
prerelease: false
54+
55+
- name: Step 6 - Publish package
56+
run: |
57+
mvn -Dmaven.test.skip=true -P release -Drevision=${{ steps.gitversion.outputs.semVer }} deploy
58+
env:
59+
MVN_CENTRAL_USERNAME: ${{ secrets.OSSRH_USERNAME }}
60+
MVN_CENTRAL_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
61+
MVN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}

GitVersion.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
mode: Mainline
2+
increment: Inherit
3+
branches: {}
4+
ignore:
5+
sha: []
6+

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
same "printed page" as the copyright notice for easier
187187
identification within third-party archives.
188188

189-
Copyright 2023 Aquality Automation
189+
Copyright 2024 Aquality Automation
190190

191191
Licensed under the Apache License, Version 2.0 (the "License");
192192
you may not use this file except in compliance with the License.

pom.xml

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,20 @@
1313
<description>Library with core functions simplifying work with Appium-controlled applications.</description>
1414
<url>https://github.com/aquality-automation/aquality-appium-mobile-java</url>
1515

16+
<properties>
17+
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
18+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
19+
<revision>4.0.0-SNAPSHOT</revision>
20+
</properties>
21+
1622
<distributionManagement>
1723
<snapshotRepository>
1824
<id>ossrh</id>
19-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
25+
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
2026
</snapshotRepository>
2127
<repository>
2228
<id>ossrh</id>
23-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
29+
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
2430
</repository>
2531
</distributionManagement>
2632

@@ -151,6 +157,12 @@
151157
<goals>
152158
<goal>sign</goal>
153159
</goals>
160+
<configuration>
161+
<gpgArguments>
162+
<arg>--pinentry-mode</arg>
163+
<arg>loopback</arg>
164+
</gpgArguments>
165+
</configuration>
154166
</execution>
155167
</executions>
156168
</plugin>
@@ -161,7 +173,7 @@
161173
<extensions>true</extensions>
162174
<configuration>
163175
<serverId>ossrh</serverId>
164-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
176+
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
165177
<autoReleaseAfterClose>true</autoReleaseAfterClose>
166178
</configuration>
167179
</plugin>
@@ -172,19 +184,19 @@
172184
<dependency>
173185
<groupId>com.github.aquality-automation</groupId>
174186
<artifactId>aquality-selenium-core</artifactId>
175-
<version>3.0.0</version>
187+
<version>3.1.1</version>
176188
</dependency>
177189

178190
<dependency>
179191
<groupId>io.appium</groupId>
180192
<artifactId>java-client</artifactId>
181-
<version>8.3.0</version>
193+
<version>8.6.0</version>
182194
</dependency>
183195

184196
<dependency>
185197
<groupId>org.testng</groupId>
186198
<artifactId>testng</artifactId>
187-
<version>7.5</version>
199+
<version>7.5.1</version>
188200
<scope>test</scope>
189201
</dependency>
190202

0 commit comments

Comments
 (0)