Skip to content

Commit

Permalink
Changed scope of pact-gen dependency to "test"
Browse files Browse the repository at this point in the history
  • Loading branch information
Felipe444 committed Feb 4, 2019
1 parent f3b0630 commit 6b4b8fc
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import org.springframework.context.annotation.Configuration;
import org.springframework.http.converter.HttpMessageConverter;
import org.springframework.http.converter.json.MappingJackson2HttpMessageConverter;
import sun.reflect.generics.scope.DummyScope;

import javax.net.ssl.SSLContext;
import javax.net.ssl.SSLSocketFactory;
Expand All @@ -39,6 +40,12 @@ public ObjectMapper objectMapper() {
return new ObjectMapper();
}

@Bean
public DummyScope dummyScope(@Value("${hltech.contracts.judge-d.baseUrl}") String port) {
LOGGER.info("test " + port);
return DummyScope.make();
}

@Bean
public JudgeDPublisher judgeDEnvironmentPublisher(Feign feign, @Value("${hltech.contracts.judge-d.baseUrl}") String baseUrl) {
return feign.newInstance(new Target.HardCodedTarget<>(JudgeDPublisher.class, baseUrl));
Expand Down

0 comments on commit 6b4b8fc

Please sign in to comment.