Skip to content

Commit

Permalink
Adding note to Java 11 HTTP client blog post
Browse files Browse the repository at this point in the history
[deploy site] 8a9f488
  • Loading branch information
selenium-ci committed Apr 11, 2024
1 parent 93d07a4 commit c6eeb76
Show file tree
Hide file tree
Showing 22 changed files with 303 additions and 273 deletions.
5 changes: 4 additions & 1 deletion blog/2022/_print/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,10 @@
supported to Java 11. However, it is a sizeable effort. Aligning it with major releases and accompanied
announcements is crucial to ensure the user experience is intact.</p><p>The Selenium server runs great on Java 11+ already, so while we plan to make that the minimum
version in a future release, for now we plan to introduce optional components that can take advantage
of modern Java releases.</p><p>So as a first step towards this move, the Java 11+ HTTP client from Selenium 4.5.0 and above.</p><h3 id=using-java-11-http-client-in-selenium>Using Java 11+ HTTP Client in Selenium</h3><h4 id=prerequisites>Prerequisites:</h4><ul><li>Project configured to use Java 11+</li><li>Using Selenium 4.5.0 as a minumum version, find the latest in the <a href=/downloads>downloads</a> page.</li></ul><h4 id=integrating-the-java-11-client>Integrating the Java 11+ client</h4><p>Java 11+ HTTP client sits in its own artifact. It can be imported into projects that use Java 11+.</p><h5 id=add-the-artifact-the-pom>Add the artifact the POM</h5><p>Add the follow dependencies to your pom.xml</p><pre tabindex=0><code>&lt;dependency&gt;
of modern Java releases.</p><p>So as a first step towards this move, the Java 11+ HTTP client from Selenium 4.5.0 and above.</p><div class="alert alert-warning" role=alert><h4 class=alert-heading>Attention!</h4>If you are using Selenium 4.14 or higher, the
Java 11 HTTP client is used by default. You do not
need to make any changes to your setup. Feel free
to skip the following section.</div><h3 id=using-java-11-http-client-in-selenium>Using Java 11+ HTTP Client in Selenium</h3><h4 id=prerequisites>Prerequisites:</h4><ul><li>Project configured to use Java 11+</li><li>Using Selenium 4.5.0 as a minumum version, find the latest in the <a href=/downloads>downloads</a> page.</li></ul><h4 id=integrating-the-java-11-client>Integrating the Java 11+ client</h4><p>Java 11+ HTTP client sits in its own artifact. It can be imported into projects that use Java 11+.</p><h5 id=add-the-artifact-the-pom>Add the artifact the POM</h5><p>Add the follow dependencies to your pom.xml</p><pre tabindex=0><code>&lt;dependency&gt;
&lt;groupId&gt;org.seleniumhq.selenium&lt;/groupId&gt;
&lt;artifactId&gt;selenium-java&lt;/artifactId&gt;
&lt;version&gt;4.5.0&lt;/version&gt;
Expand Down
9 changes: 6 additions & 3 deletions blog/2022/using-java11-httpclient/index.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!doctype html><html lang=en class=no-js><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1,shrink-to-fit=no"><meta name=robots content="index, follow"><link rel="shortcut icon" href=/favicons/favicon.ico><link rel=apple-touch-icon href=/favicons/apple-touch-icon-180x180.png sizes=180x180><link rel=icon type=image/png href=/favicons/favicon-16x16.png sizes=16x16><link rel=icon type=image/png href=/favicons/favicon-32x32.png sizes=32x32><link rel=icon type=image/png href=/favicons/android-36x36.png sizes=36x36><link rel=icon type=image/png href=/favicons/android-48x48.png sizes=48x48><link rel=icon type=image/png href=/favicons/android-72x72.png sizes=72x72><link rel=icon type=image/png href=/favicons/android-96x96.png sizes=96x96><link rel=icon type=image/png href=/favicons/android-144x144.png sizes=144x144><link rel=icon type=image/png href=/favicons/android-192x192.png sizes=192x192><title>Using Java 11+ HTTP Client in Selenium 4.5.0 and beyond | Selenium</title><meta name=description content="We’re happy to share that starting from Selenium 4.5.0, a Java 11+ HttpClient is supported
"><meta property="og:title" content="Using Java 11+ HTTP Client in Selenium 4.5.0 and beyond"><meta property="og:description" content="We’re happy to share that starting from Selenium 4.5.0, a Java 11+ HttpClient is supported
"><meta property="og:type" content="article"><meta property="og:url" content="https://www.selenium.dev/blog/2022/using-java11-httpclient/"><meta property="og:image" content="https://www.selenium.dev/images/selenium_4_logo.png"><meta property="article:section" content="blog"><meta property="article:published_time" content="2022-09-16T00:00:00+00:00"><meta property="article:modified_time" content="2023-03-10T14:17:07+00:00"><meta property="og:site_name" content="Selenium"><meta itemprop=name content="Using Java 11+ HTTP Client in Selenium 4.5.0 and beyond"><meta itemprop=description content="We’re happy to share that starting from Selenium 4.5.0, a Java 11+ HttpClient is supported
"><meta itemprop=datePublished content="2022-09-16T00:00:00+00:00"><meta itemprop=dateModified content="2023-03-10T14:17:07+00:00"><meta itemprop=wordCount content="545"><meta itemprop=image content="https://www.selenium.dev/images/selenium_4_logo.png"><meta itemprop=keywords content="selenium,"><meta name=twitter:card content="summary_large_image"><meta name=twitter:image content="https://www.selenium.dev/images/selenium_4_logo.png"><meta name=twitter:title content="Using Java 11+ HTTP Client in Selenium 4.5.0 and beyond"><meta name=twitter:description content="We’re happy to share that starting from Selenium 4.5.0, a Java 11+ HttpClient is supported
"><meta property="og:type" content="article"><meta property="og:url" content="https://www.selenium.dev/blog/2022/using-java11-httpclient/"><meta property="og:image" content="https://www.selenium.dev/images/selenium_4_logo.png"><meta property="article:section" content="blog"><meta property="article:published_time" content="2022-09-16T00:00:00+00:00"><meta property="article:modified_time" content="2024-04-11T14:37:31+00:00"><meta property="og:site_name" content="Selenium"><meta itemprop=name content="Using Java 11+ HTTP Client in Selenium 4.5.0 and beyond"><meta itemprop=description content="We’re happy to share that starting from Selenium 4.5.0, a Java 11+ HttpClient is supported
"><meta itemprop=datePublished content="2022-09-16T00:00:00+00:00"><meta itemprop=dateModified content="2024-04-11T14:37:31+00:00"><meta itemprop=wordCount content="581"><meta itemprop=image content="https://www.selenium.dev/images/selenium_4_logo.png"><meta itemprop=keywords content="selenium,"><meta name=twitter:card content="summary_large_image"><meta name=twitter:image content="https://www.selenium.dev/images/selenium_4_logo.png"><meta name=twitter:title content="Using Java 11+ HTTP Client in Selenium 4.5.0 and beyond"><meta name=twitter:description content="We’re happy to share that starting from Selenium 4.5.0, a Java 11+ HttpClient is supported
"><link rel=preload href=/scss/main.min.5ee32a4cbbb2149f5c4128e570022cdb94717cefb6690e61a5a67bbc336034bb.css as=style><link href=/scss/main.min.5ee32a4cbbb2149f5c4128e570022cdb94717cefb6690e61a5a67bbc336034bb.css rel=stylesheet integrity><script src=https://code.jquery.com/jquery-3.6.3.min.js integrity="sha512-STof4xm1wgkfm7heWqFJVn58Hm3EtS31XFaagaa8VMReCXAkQnJZ+jEy8PCC/iT18dFy95WcExNHFTqLyp72eQ==" crossorigin=anonymous></script>
<link rel=stylesheet href=/css/prism.css><link rel=stylesheet href=https://cdn.jsdelivr.net/npm/@docsearch/[email protected] integrity="sha512-TW5eKlwwg7OfQUVBqxjp94/uqtjJJbhkRE3++XGEQjAL1n3y//QVqS3acPkwqkzInaFRtj+w05uyxDbfDXiI1A==" crossorigin=anonymous><script defer data-domain=selenium.dev src=https://plausible.io/js/plausible.js></script></head><body class="td-page td-blog"><header><nav class="js-navbar-scroll navbar navbar-expand-lg navbar-light bg-white flex-row td-navbar"><a class=navbar-brand href=/><span class=navbar-logo><svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 139.38 34"><defs><style>.cls-1{fill:#43b02a}</style></defs><title>Selenium logo green</title><path class="cls-1" d="M46.2 26.37a18.85 18.85.0 01-2.57-.2 25 25 0 01-2.74-.53v-1.39a25.31 25.31.0 002.71.53 18 18 0 002.5.2 5.51 5.51.0 003.29-.84 2.79 2.79.0 001.14-2.39 2.85 2.85.0 00-1.24-2.49A6 6 0 0048 18.55q-.78-.29-1.67-.55A15.93 15.93.0 0144 17.13a5.92 5.92.0 01-1.58-1.05 3.6 3.6.0 01-.9-1.34A5 5 0 0141.23 13a4.46 4.46.0 01.41-1.93 4.31 4.31.0 011.17-1.5 5.26 5.26.0 011.82-1A8 8 0 0147 8.28a20.51 20.51.0 014.41.57v1.42a20 20 0 00-2.23-.44 15.2 15.2.0 00-2-.15 4.86 4.86.0 00-3.08.9A2.9 2.9.0 0042.88 13a3.25 3.25.0 00.21 1.21 2.61 2.61.0 00.7 1 4.83 4.83.0 001.27.79 14.31 14.31.0 002 .68q1.11.33 2.06.71a6.21 6.21.0 011.65.94 4.09 4.09.0 011.1 1.38 4.54 4.54.0 01.4 2 4.15 4.15.0 01-1.56 3.48A7.16 7.16.0 0146.2 26.37z"/><path class="cls-1" d="M60.62 26.32a5.46 5.46.0 01-4.28-1.62A6.9 6.9.0 0154.88 20a7.8 7.8.0 011.43-5 5 5 0 014.14-1.75 4.24 4.24.0 013.47 1.43A6.48 6.48.0 0165.1 18.8q0 .54.0.92a3.22 3.22.0 01-.09.64H56.44a5.39 5.39.0 001.17 3.5A4.18 4.18.0 0060.8 25a10.52 10.52.0 001.82-.17 11.77 11.77.0 001.93-.52l.12 1.27a10.68 10.68.0 01-2 .55A11.47 11.47.0 0160.62 26.32zM60.4 14.43q-3.68.0-3.94 4.74h7.15a6.49 6.49.0 00-.78-3.63A2.76 2.76.0 0060.4 14.43z"/><path class="cls-1" d="M68.64 7h1.58V26.11H68.64z"/><path class="cls-1" d="M79.56 26.32a5.46 5.46.0 01-4.28-1.62A6.9 6.9.0 0173.83 20a7.8 7.8.0 011.43-5 5 5 0 014.14-1.75 4.24 4.24.0 013.47 1.43A6.48 6.48.0 0184 18.8q0 .54.0.92a3.22 3.22.0 01-.09.64H75.38a5.4 5.4.0 001.17 3.5A4.18 4.18.0 0079.75 25a10.52 10.52.0 001.82-.17 11.8 11.8.0 001.93-.52l.12 1.27a10.68 10.68.0 01-2 .55A11.47 11.47.0 0179.56 26.32zm-.21-11.89q-3.68.0-3.94 4.74h7.15a6.49 6.49.0 00-.78-3.63A2.76 2.76.0 0079.35 14.43z"/><path class="cls-1" d="M87.51 13.37h1.32l.12 1.49h.12q.94-.45 1.72-.78t1.43-.54a8.42 8.42.0 011.2-.31 6.54 6.54.0 011.1-.09A3.3 3.3.0 0197 14a3.63 3.63.0 01.83 2.63v9.51H96.24v-9a3 3 0 00-.55-2 2.18 2.18.0 00-1.69-.6 7.25 7.25.0 00-2.24.41 20.1 20.1.0 00-2.67 1.12v10H87.51z"/><path class="cls-1" d="M102.75 10.52a.93.93.0 01-1.06-1 1.06 1.06.0 012.12.0.93.93.0 01-1.06 1zm-.8 2.85h1.58V26.11h-1.58z"/><path class="cls-1" d="M110.81 26.34q-3.14.0-3.14-3.47v-9.5h1.58v9a3.16 3.16.0 00.48 2 1.92 1.92.0 001.59.6 6.83 6.83.0 002.48-.48q1.25-.48 2.59-1.14V13.37H118V26.11h-1.32l-.12-1.58h-.09l-1.73.81q-.74.34-1.38.57a7.9 7.9.0 01-1.23.33A7.34 7.34.0 01110.81 26.34z"/><path class="cls-1" d="M122.18 13.37h1.3l.14 1.49h.09a19.53 19.53.0 012.58-1.31 5.51 5.51.0 012-.41 2.83 2.83.0 013 1.77h.12q.8-.5 1.45-.83a12.61 12.61.0 011.2-.54 6.17 6.17.0 011-.31 5.18 5.18.0 011-.09 3.3 3.3.0 012.45.84 3.63 3.63.0 01.83 2.63v9.51h-1.56v-9a2.9 2.9.0 00-.55-2 2.21 2.21.0 00-1.69-.59 5.14 5.14.0 00-1.78.38A14.45 14.45.0 00131.6 16v10.1H130v-9a2.9 2.9.0 00-.55-2 2.21 2.21.0 00-1.69-.59 5.24 5.24.0 00-1.86.4A14 14 0 00123.76 16V26.11h-1.58z"/><path class="cls-1" d="M21.45 21.51a2.49 2.49.0 00-2.55 2.21.08.08.0 00.08.1h4.95a.08.08.0 00.08-.09 2.41 2.41.0 00-2.56-2.22z"/><path class="cls-1" d="M32.06 4.91 21.56 16.7a.32.32.0 01-.47.0l-5.36-5.53a.32.32.0 010-.4L17.5 8.5a.32.32.0 01.52.0l3 3.32a.32.32.0 00.49.0L29.87.36A.23.23.0 0029.69.0H.25A.25.25.0 000 .25v33.5A.25.25.0 00.25 34h32a.25.25.0 00.25-.25V5.06A.23.23.0 0032.06 4.91zm-23 25.36a8.08 8.08.0 01-5.74-2 .31.31.0 010-.41l1.25-1.75A.31.31.0 015 26a6.15 6.15.0 004.2 1.64c1.64.0 2.44-.76 2.44-1.56.0-2.48-8.08-.78-8.08-6.06.0-2.33 2-4.27 5.32-4.27a7.88 7.88.0 015.25 1.76.31.31.0 010 .43L12.9 19.65a.31.31.0 01-.45.05 6.08 6.08.0 00-3.84-1.32c-1.28.0-2 .57-2 1.41.0 2.23 8.06.74 8.06 6C14.67 28.33 12.84 30.27 9.05 30.27zM26.68 25.4a.27.27.0 01-.28.28H19a.09.09.0 00-.08.1 2.81 2.81.0 003 2.32 4.62 4.62.0 002.56-.84.27.27.0 01.4.06l.9 1.31a.28.28.0 01-.06.37 6.67 6.67.0 01-4.1 1.28 5.28 5.28.0 01-5.57-5.48 5.31 5.31.0 015.4-5.46c3.11.0 5.22 2.33 5.22 5.74z"/></svg></span></a><button class=navbar-toggler type=button data-bs-toggle=collapse data-bs-target=#main_navbar aria-controls=main_navbar aria-expanded=false aria-label="Toggle navigation">
<span class=navbar-toggler-icon></span></button><div class="collapse navbar-collapse justify-content-end" id=main_navbar><ul class="navbar-nav mr-4 mb-2 mb-lg-0 ps-4 ps-lg-2"><li class="nav-item dropdown"><a class="nav-link dropdown-toggle" href=# id=navbarDropdown role=button data-bs-toggle=dropdown aria-haspopup=true aria-expanded=false>About</a><div class=dropdown-menu aria-labelledby=navbarDropdown><a class=dropdown-item href=/about>About Selenium</a>
Expand All @@ -22,7 +22,10 @@
supported to Java 11. However, it is a sizeable effort. Aligning it with major releases and accompanied
announcements is crucial to ensure the user experience is intact.</p><p>The Selenium server runs great on Java 11+ already, so while we plan to make that the minimum
version in a future release, for now we plan to introduce optional components that can take advantage
of modern Java releases.</p><p>So as a first step towards this move, the Java 11+ HTTP client from Selenium 4.5.0 and above.</p><h3 id=using-java-11-http-client-in-selenium>Using Java 11+ HTTP Client in Selenium</h3><h4 id=prerequisites>Prerequisites:</h4><ul><li>Project configured to use Java 11+</li><li>Using Selenium 4.5.0 as a minumum version, find the latest in the <a href=/downloads>downloads</a> page.</li></ul><h4 id=integrating-the-java-11-client>Integrating the Java 11+ client</h4><p>Java 11+ HTTP client sits in its own artifact. It can be imported into projects that use Java 11+.</p><h5 id=add-the-artifact-the-pom>Add the artifact the POM</h5><p>Add the follow dependencies to your pom.xml</p><pre tabindex=0><code>&lt;dependency&gt;
of modern Java releases.</p><p>So as a first step towards this move, the Java 11+ HTTP client from Selenium 4.5.0 and above.</p><div class="alert alert-warning" role=alert><h4 class=alert-heading>Attention!</h4>If you are using Selenium 4.14 or higher, the
Java 11 HTTP client is used by default. You do not
need to make any changes to your setup. Feel free
to skip the following section.</div><h3 id=using-java-11-http-client-in-selenium>Using Java 11+ HTTP Client in Selenium</h3><h4 id=prerequisites>Prerequisites:</h4><ul><li>Project configured to use Java 11+</li><li>Using Selenium 4.5.0 as a minumum version, find the latest in the <a href=/downloads>downloads</a> page.</li></ul><h4 id=integrating-the-java-11-client>Integrating the Java 11+ client</h4><p>Java 11+ HTTP client sits in its own artifact. It can be imported into projects that use Java 11+.</p><h5 id=add-the-artifact-the-pom>Add the artifact the POM</h5><p>Add the follow dependencies to your pom.xml</p><pre tabindex=0><code>&lt;dependency&gt;
&lt;groupId&gt;org.seleniumhq.selenium&lt;/groupId&gt;
&lt;artifactId&gt;selenium-java&lt;/artifactId&gt;
&lt;version&gt;4.5.0&lt;/version&gt;
Expand Down
5 changes: 4 additions & 1 deletion blog/_print/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,10 @@
supported to Java 11. However, it is a sizeable effort. Aligning it with major releases and accompanied
announcements is crucial to ensure the user experience is intact.</p><p>The Selenium server runs great on Java 11+ already, so while we plan to make that the minimum
version in a future release, for now we plan to introduce optional components that can take advantage
of modern Java releases.</p><p>So as a first step towards this move, the Java 11+ HTTP client from Selenium 4.5.0 and above.</p><h3 id=using-java-11-http-client-in-selenium>Using Java 11+ HTTP Client in Selenium</h3><h4 id=prerequisites>Prerequisites:</h4><ul><li>Project configured to use Java 11+</li><li>Using Selenium 4.5.0 as a minumum version, find the latest in the <a href=/downloads>downloads</a> page.</li></ul><h4 id=integrating-the-java-11-client>Integrating the Java 11+ client</h4><p>Java 11+ HTTP client sits in its own artifact. It can be imported into projects that use Java 11+.</p><h5 id=add-the-artifact-the-pom>Add the artifact the POM</h5><p>Add the follow dependencies to your pom.xml</p><pre tabindex=0><code>&lt;dependency&gt;
of modern Java releases.</p><p>So as a first step towards this move, the Java 11+ HTTP client from Selenium 4.5.0 and above.</p><div class="alert alert-warning" role=alert><h4 class=alert-heading>Attention!</h4>If you are using Selenium 4.14 or higher, the
Java 11 HTTP client is used by default. You do not
need to make any changes to your setup. Feel free
to skip the following section.</div><h3 id=using-java-11-http-client-in-selenium>Using Java 11+ HTTP Client in Selenium</h3><h4 id=prerequisites>Prerequisites:</h4><ul><li>Project configured to use Java 11+</li><li>Using Selenium 4.5.0 as a minumum version, find the latest in the <a href=/downloads>downloads</a> page.</li></ul><h4 id=integrating-the-java-11-client>Integrating the Java 11+ client</h4><p>Java 11+ HTTP client sits in its own artifact. It can be imported into projects that use Java 11+.</p><h5 id=add-the-artifact-the-pom>Add the artifact the POM</h5><p>Add the follow dependencies to your pom.xml</p><pre tabindex=0><code>&lt;dependency&gt;
&lt;groupId&gt;org.seleniumhq.selenium&lt;/groupId&gt;
&lt;artifactId&gt;selenium-java&lt;/artifactId&gt;
&lt;version&gt;4.5.0&lt;/version&gt;
Expand Down
7 changes: 7 additions & 0 deletions categories/releases/index.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6829,6 +6829,13 @@ announcements is crucial to ensure the user experience is intact.&lt;/p>
version in a future release, for now we plan to introduce optional components that can take advantage
of modern Java releases.&lt;/p>
&lt;p>So as a first step towards this move, the Java 11+ HTTP client from Selenium 4.5.0 and above.&lt;/p>
&lt;div class="alert alert-warning" role="alert">
&lt;h4 class="alert-heading">Attention!&lt;/h4>
If you are using Selenium 4.14 or higher, the
Java 11 HTTP client is used by default. You do not
need to make any changes to your setup. Feel free
to skip the following section.
&lt;/div>
&lt;h3 id="using-java-11-http-client-in-selenium">Using Java 11+ HTTP Client in Selenium&lt;/h3>
&lt;h4 id="prerequisites">Prerequisites:&lt;/h4>
&lt;ul>
Expand Down
Loading

0 comments on commit c6eeb76

Please sign in to comment.