Skip to content

Commit feffbbf

Browse files
committed
tidy build files and update references in docs
1 parent 16157e3 commit feffbbf

File tree

7 files changed

+21
-52
lines changed

7 files changed

+21
-52
lines changed

examples/java/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ repositories {
1111

1212
dependencies {
1313
testImplementation 'org.seleniumhq.selenium:selenium-java:4.12.1'
14-
testImplementation 'org.seleniumhq.selenium:selenium-grid:4.12.1'
15-
testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.9.0'
14+
testImplementation 'org.seleniumhq.selenium:selenium-http-jdk-client:4.12.1'
15+
testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.10.0'
1616
}
1717

1818
test {

examples/java/pom.xml

Lines changed: 9 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,9 @@
99
<version>1.0.0</version>
1010

1111
<properties>
12-
<maven-surefire-plugin.version>3.0.0-M7</maven-surefire-plugin.version>
13-
<java.version>8</java.version>
14-
<maven.compiler.target>${java.version}</maven.compiler.target>
15-
<maven.compiler.source>${java.version}</maven.compiler.source>
16-
<project.encoding>UTF-8</project.encoding>
17-
<project.build.sourceEncoding>${project.encoding}</project.build.sourceEncoding>
18-
<project.reporting.outputEncoding>${project.encoding}</project.reporting.outputEncoding>
12+
<maven.compiler.target>1.8</maven.compiler.target>
13+
<maven.compiler.source>1.8</maven.compiler.source>
14+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1915
</properties>
2016

2117
<repositories>
@@ -36,23 +32,13 @@
3632
</dependency>
3733
<dependency>
3834
<groupId>org.seleniumhq.selenium</groupId>
39-
<artifactId>selenium-grid</artifactId>
35+
<artifactId>selenium-http-jdk-client</artifactId>
4036
<version>4.12.1</version>
4137
</dependency>
42-
<dependency>
43-
<groupId>org.slf4j</groupId>
44-
<artifactId>slf4j-api</artifactId>
45-
<version>2.0.5</version>
46-
</dependency>
47-
<dependency>
48-
<groupId>ch.qos.logback</groupId>
49-
<artifactId>logback-classic</artifactId>
50-
<version>1.4.6</version>
51-
</dependency>
5238
<dependency>
5339
<groupId>org.junit.jupiter</groupId>
5440
<artifactId>junit-jupiter-engine</artifactId>
55-
<version>5.9.2</version>
41+
<version>5.10.0</version>
5642
<scope>test</scope>
5743
</dependency>
5844
</dependencies>
@@ -62,12 +48,11 @@
6248
<plugin>
6349
<groupId>org.apache.maven.plugins</groupId>
6450
<artifactId>maven-surefire-plugin</artifactId>
65-
<version>${maven-surefire-plugin.version}</version>
51+
<version>3.1.2</version>
6652
<configuration>
67-
<includes>
68-
<include>**/*Test.java</include>
69-
<include>**/*Example.java</include>
70-
</includes>
53+
<systemPropertyVariables>
54+
<webdriver.http.factory>jdk-http-client</webdriver.http.factory>
55+
</systemPropertyVariables>
7156
</configuration>
7257
</plugin>
7358
</plugins>

examples/java/src/main/resources/logback.xml

Lines changed: 0 additions & 16 deletions
This file was deleted.

website_and_docs/content/documentation/webdriver/getting_started/install_library.en.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@ View the minimum supported Java version [here](https://github.com/SeleniumHQ/sel
2525
Installation of Selenium libraries for Java is accomplished using a build tool.
2626

2727
### Maven
28-
Specify the dependency in the project's `pom.xml` file:
28+
Specify the dependencies in the project's `pom.xml` file:
2929

30-
{{< gh-codeblock path="examples/java/pom.xml#L32-L36" >}}
30+
{{< gh-codeblock path="examples/java/pom.xml#L28-L38" >}}
3131

3232
### Gradle
3333
Specify the dependency in the project `build.gradle` file as `testImplementation`:
3434

35-
{{< gh-codeblock path="examples/java/build.gradle#L13" >}}
35+
{{< gh-codeblock path="examples/java/build.gradle#L13-L14" >}}
3636

3737
{{% /tab %}}
3838
{{% tab header="Python" %}}

website_and_docs/content/documentation/webdriver/getting_started/install_library.ja.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ View the minimum supported Java version [here](https://github.com/SeleniumHQ/sel
2323
Installation of Selenium libraries for Java is accomplished using a build tool.
2424

2525
### Maven
26-
Specify the dependency in the project's `pom.xml` file:
26+
Specify the dependencies in the project's `pom.xml` file:
2727

28-
{{< gh-codeblock path="examples/java/pom.xml#L32-L36" >}}
28+
{{< gh-codeblock path="examples/java/pom.xml#L28-L38" >}}
2929

3030
### Gradle
3131
Specify the dependency in the project `build.gradle` file as `testImplementation`:
3232

33-
{{< gh-codeblock path="examples/java/build.gradle#L13" >}}
33+
{{< gh-codeblock path="examples/java/build.gradle#L13-L14" >}}
3434

3535
{{% /tab %}}
3636
{{% tab header="Python" %}}

website_and_docs/content/documentation/webdriver/getting_started/install_library.pt-br.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ A instalação da biblioteca Selenium para Java é feita a partir de uma build t
2727
### Maven
2828
Especifique a dependência no `pom.xml` do seu projeto.
2929

30-
{{< gh-codeblock path="examples/java/pom.xml#L32-L36" >}}
30+
{{< gh-codeblock path="examples/java/pom.xml#L28-L38" >}}
3131

3232
### Gradle
3333
Especifique a dependência no `build.gradle` do seu projeto como `testImplementation`:
3434

35-
{{< gh-codeblock path="examples/java/build.gradle#L13" >}}
35+
{{< gh-codeblock path="examples/java/build.gradle#L13-L14" >}}
3636

3737
{{% /tab %}}
3838
{{% tab header="Python" %}}

website_and_docs/content/documentation/webdriver/getting_started/install_library.zh-cn.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ aliases: [
2525
### Maven
2626
具体的依赖位于项目中的 `pom.xml` 文件:
2727

28-
{{< gh-codeblock path="examples/java/pom.xml#L32-L36" >}}
28+
{{< gh-codeblock path="examples/java/pom.xml#L28-L38" >}}
2929

3030
### Gradle
3131
具体的依赖位于项目中的 `build.gradle` 文件中的 `testImplementation`:
3232

33-
{{< gh-codeblock path="examples/java/build.gradle#L13" >}}
33+
{{< gh-codeblock path="examples/java/build.gradle#L13-L14" >}}
3434

3535
{{% /tab %}}
3636
{{% tab header="Python" %}}

0 commit comments

Comments
 (0)