jfrog / xray-client-java

Xray Java Client
Apache License 2.0
10 stars 16 forks source link

Cannot access org.jfrog.build.client.PreemptiveHttpClientBuilder #51

Open navenduraisamy opened 12 months ago

navenduraisamy commented 12 months ago

I did download the repository locally and gradle clean install. It successfully ran and i could find the binaries in local maven repository. But when I try to use the library I get err as Cannot access org.jfrog.build.client.PreemptiveHttpClientBuilder

private Xray createXrayClient(String xrayUrl) {
        return (Xray) new XrayClientBuilder()
                .setUrl(xrayUrl)
                .setUserName(trim(username.getText()))
                .setPassword(String.valueOf(password.getPassword()))
                .setAccessToken(String.valueOf(accessToken.getPassword()))
                .setUserAgent(USER_AGENT)
                .setInsecureTls(serverConfig.isInsecureTls())
                .setSslContext(serverConfig.getSslContext())
                .setProxyConfiguration(serverConfig.getProxyConfForTargetUrl(xrayUrl))
                .setLog(Logger.getInstance())
                .build();
    }