Skip to content

Commit

Permalink
Use Helidon Connector from Helidon (#4569)
Browse files Browse the repository at this point in the history
* Use Helidon Connector from Helidon

Signed-off-by: jansupol <[email protected]>
  • Loading branch information
jansupol committed Sep 23, 2020
1 parent 4f171c2 commit fd9dbbd
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 827 deletions.
18 changes: 14 additions & 4 deletions connectors/helidon-connector/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@

<dependencies>
<dependency>
<groupId>io.helidon.webclient</groupId>
<artifactId>helidon-webclient</artifactId>
<!-- Dear user, please use more stable version -->
<version>2.0.0-M3</version>
<groupId>io.helidon.jersey</groupId>
<artifactId>helidon-jersey-connector</artifactId>
<!-- Use 2.0.3 when available -->
<version>2.0.2</version>
<scope>provided</scope>
</dependency>
<dependency>
Expand Down Expand Up @@ -81,6 +81,16 @@
<detectJavaApiLink>false</detectJavaApiLink>
</configuration>
</plugin>
<plugin>
<!-- See https://github.com/oracle/helidon/issues/2371 -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<excludes>
<exclude>**/*Test.java</exclude>
</excludes>
</configuration>
</plugin>
</plugins>
</build>
</project>

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,12 @@
* @since 2.31
*/
@Beta
public class HelidonConnectorProvider implements ConnectorProvider {
public class HelidonConnectorProvider extends io.helidon.jersey.connector.HelidonConnectorProvider {
@Override
public Connector getConnector(Client client, Configuration runtimeConfig) {
if (JdkVersion.getJdkVersion().getMajor() < 11) {
throw new ProcessingException(LocalizationMessages.NOT_SUPPORTED());
}
return new HelidonConnector(client, runtimeConfig);
return super.getConnector(client, runtimeConfig);
}
}
Loading

0 comments on commit fd9dbbd

Please sign in to comment.