Skip to content

Commit 35c7e64

Browse files
committed
minor fix
1 parent 510dcde commit 35c7e64

2 files changed

Lines changed: 333 additions & 2 deletions

File tree

pom.xml

Lines changed: 331 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,331 @@
1+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
2+
<modelVersion>4.0.0</modelVersion>
3+
4+
<groupId>com.cybersource</groupId>
5+
<artifactId>cybersource-rest-client-java</artifactId>
6+
<packaging>jar</packaging>
7+
<name>cybersource-rest-client-java</name>
8+
<version>0.0.79-SNAPSHOT</version>
9+
<url>http://developer.cybersource.com</url>
10+
<description>Cybersource Rest Client SDK</description>
11+
12+
<scm>
13+
<connection>scm:git:https://github.com/CyberSource/cybersource-rest-client-java.git</connection>
14+
<developerConnection>scm:git:https://github.com/CyberSource/cybersource-rest-client-java.git</developerConnection>
15+
<url>https://github.com/CyberSource/cybersource-rest-client-java.git</url>
16+
</scm>
17+
18+
<licenses>
19+
<license>
20+
<name>SDK License Agreement</name>
21+
<url>https://github.com/CyberSource/cybersource-rest-client-java.git</url>
22+
<distribution>https://github.com/CyberSource/cybersource-rest-client-java/tree/master/LICENSE.txt</distribution>
23+
</license>
24+
</licenses>
25+
26+
<developers>
27+
<developer>
28+
<name>CyberSource</name>
29+
<email>CyberSource Developer</email>
30+
<organization>Cybersource</organization>
31+
<organizationUrl>developer@cybersource.com</organizationUrl>
32+
</developer>
33+
</developers>
34+
35+
<build>
36+
<resources>
37+
<resource>
38+
<directory>src/main/resources</directory>
39+
<filtering>true</filtering>
40+
</resource>
41+
</resources>
42+
<plugins>
43+
<plugin>
44+
<groupId>org.apache.maven.plugins</groupId>
45+
<artifactId>maven-enforcer-plugin</artifactId>
46+
<version>3.0.0-M1</version>
47+
<executions>
48+
<execution>
49+
<id>enforce-maven</id>
50+
<goals>
51+
<goal>enforce</goal>
52+
</goals>
53+
<configuration>
54+
<rules>
55+
<requireMavenVersion>
56+
<version>2.2.0</version>
57+
</requireMavenVersion>
58+
</rules>
59+
</configuration>
60+
</execution>
61+
</executions>
62+
</plugin>
63+
<plugin>
64+
<groupId>org.apache.maven.plugins</groupId>
65+
<artifactId>maven-surefire-plugin</artifactId>
66+
<version>2.12</version>
67+
<configuration>
68+
<systemProperties>
69+
<property>
70+
<name>loggerPath</name>
71+
<value>conf/log4j.properties</value>
72+
</property>
73+
</systemProperties>
74+
<argLine>-Xms512m -Xmx1500m</argLine>
75+
<parallel>methods</parallel>
76+
<forkMode>never</forkMode>
77+
</configuration>
78+
</plugin>
79+
<plugin>
80+
<artifactId>maven-dependency-plugin</artifactId>
81+
<executions>
82+
<execution>
83+
<phase>package</phase>
84+
<goals>
85+
<goal>copy-dependencies</goal>
86+
</goals>
87+
<configuration>
88+
<outputDirectory>${project.build.directory}/lib</outputDirectory>
89+
</configuration>
90+
</execution>
91+
</executions>
92+
</plugin>
93+
94+
<!-- attach test jar -->
95+
<plugin>
96+
<groupId>org.apache.maven.plugins</groupId>
97+
<artifactId>maven-jar-plugin</artifactId>
98+
<version>2.2</version>
99+
<executions>
100+
<execution>
101+
<goals>
102+
<goal>jar</goal>
103+
<goal>test-jar</goal>
104+
</goals>
105+
</execution>
106+
</executions>
107+
<configuration>
108+
</configuration>
109+
</plugin>
110+
111+
<plugin>
112+
<groupId>org.codehaus.mojo</groupId>
113+
<artifactId>build-helper-maven-plugin</artifactId>
114+
<version>3.0.0</version>
115+
<executions>
116+
<execution>
117+
<id>add-source</id>
118+
<phase>generate-sources</phase>
119+
<goals>
120+
<goal>add-source</goal>
121+
</goals>
122+
<configuration>
123+
<sources>
124+
<source>src/main/java</source>
125+
</sources>
126+
</configuration>
127+
</execution>
128+
<execution>
129+
<id>add_test_sources</id>
130+
<phase>generate-test-sources</phase>
131+
<goals>
132+
<goal>add-test-source</goal>
133+
</goals>
134+
<configuration>
135+
<sources>
136+
<source>src/test/java</source>
137+
</sources>
138+
</configuration>
139+
</execution>
140+
</executions>
141+
</plugin>
142+
<plugin>
143+
<groupId>org.apache.maven.plugins</groupId>
144+
<artifactId>maven-source-plugin</artifactId>
145+
<version>2.2.1</version>
146+
<executions>
147+
<execution>
148+
<id>attach-sources</id>
149+
<goals>
150+
<goal>jar-no-fork</goal>
151+
</goals>
152+
</execution>
153+
</executions>
154+
</plugin>
155+
<plugin>
156+
<groupId>org.apache.maven.plugins</groupId>
157+
<artifactId>maven-javadoc-plugin</artifactId>
158+
<version>2.10.4</version>
159+
<executions>
160+
<execution>
161+
<id>attach-javadocs</id>
162+
<goals>
163+
<goal>jar</goal>
164+
</goals>
165+
</execution>
166+
</executions>
167+
</plugin>
168+
</plugins>
169+
</build>
170+
171+
<profiles>
172+
<profile>
173+
<id>release</id>
174+
<activation>
175+
<activeByDefault>false</activeByDefault>
176+
</activation>
177+
<build>
178+
<plugins>
179+
<plugin>
180+
<groupId>org.apache.maven.plugins</groupId>
181+
<artifactId>maven-gpg-plugin</artifactId>
182+
<version>1.5</version>
183+
<executions>
184+
<execution>
185+
<id>sign-artifacts</id>
186+
<phase>verify</phase>
187+
<goals>
188+
<goal>sign</goal>
189+
</goals>
190+
</execution>
191+
</executions>
192+
</plugin>
193+
<plugin>
194+
<groupId>org.apache.maven.plugins</groupId>
195+
<artifactId>maven-enforcer-plugin</artifactId>
196+
<version>3.0.0-M1</version>
197+
<executions>
198+
<execution>
199+
<id>enforce-maven</id>
200+
<goals>
201+
<goal>enforce</goal>
202+
</goals>
203+
<configuration>
204+
<rules>
205+
<requireMavenVersion>
206+
<version>2.2.0</version>
207+
</requireMavenVersion>
208+
</rules>
209+
</configuration>
210+
</execution>
211+
</executions>
212+
</plugin>
213+
<plugin>
214+
<groupId>org.sonatype.central</groupId>
215+
<artifactId>central-publishing-maven-plugin</artifactId>
216+
<version>0.7.0</version>
217+
<extensions>true</extensions>
218+
<configuration>
219+
<checksums>required</checksums>
220+
<skipPublishing>false</skipPublishing>
221+
<publishingServerId>sonatype-nexus-staging</publishingServerId>
222+
</configuration>
223+
</plugin>
224+
</plugins>
225+
</build>
226+
</profile>
227+
228+
</profiles>
229+
230+
<dependencies>
231+
<dependency>
232+
<groupId>io.swagger</groupId>
233+
<artifactId>swagger-annotations</artifactId>
234+
<version>${swagger-core-version}</version>
235+
</dependency>
236+
<dependency>
237+
<groupId>com.squareup.okhttp3</groupId>
238+
<artifactId>okhttp</artifactId>
239+
<version>${okhttp-version}</version>
240+
</dependency>
241+
242+
<dependency>
243+
<groupId>com.squareup.okhttp3</groupId>
244+
<artifactId>logging-interceptor</artifactId>
245+
<version>${okhttp-version}</version>
246+
</dependency>
247+
248+
<dependency>
249+
<groupId>com.google.code.gson</groupId>
250+
<artifactId>gson</artifactId>
251+
<version>${gson-version}</version>
252+
</dependency>
253+
<dependency>
254+
<groupId>io.gsonfire</groupId>
255+
<artifactId>gson-fire</artifactId>
256+
<version>${gson-fire-version}</version>
257+
</dependency>
258+
<dependency>
259+
<groupId>joda-time</groupId>
260+
<artifactId>joda-time</artifactId>
261+
<version>${jodatime-version}</version>
262+
</dependency>
263+
<dependency>
264+
<groupId>org.apache.logging.log4j</groupId>
265+
<artifactId>log4j</artifactId>
266+
<version>${log4j.version}</version>
267+
<type>pom</type>
268+
</dependency>
269+
270+
<dependency>
271+
<groupId>org.apache.logging.log4j</groupId>
272+
<artifactId>log4j-api</artifactId>
273+
<version>${log4j.version}</version>
274+
</dependency>
275+
276+
<dependency>
277+
<groupId>org.apache.logging.log4j</groupId>
278+
<artifactId>log4j-core</artifactId>
279+
<version>${log4j.version}</version>
280+
</dependency>
281+
282+
<dependency>
283+
<groupId>org.apache.logging.log4j</groupId>
284+
<artifactId>log4j-1.2-api</artifactId>
285+
<version>${log4j.version}</version>
286+
</dependency>
287+
288+
<!-- https://mvnrepository.com/artifact/commons-io/commons-io -->
289+
<dependency>
290+
<groupId>commons-io</groupId>
291+
<artifactId>commons-io</artifactId>
292+
<version>2.15.1</version>
293+
</dependency>
294+
295+
<!-- test dependencies -->
296+
<dependency>
297+
<groupId>junit</groupId>
298+
<artifactId>junit</artifactId>
299+
<version>${junit-version}</version>
300+
<scope>test</scope>
301+
</dependency>
302+
303+
<!-- Auth Sdk Dependency -->
304+
<dependency>
305+
<groupId>com.cybersource</groupId>
306+
<artifactId>AuthenticationSdk</artifactId>
307+
<version>0.0.36</version>
308+
</dependency>
309+
310+
<dependency>
311+
<groupId>org.bouncycastle</groupId>
312+
<artifactId>bcpg-jdk18on</artifactId>
313+
<version>1.81</version>
314+
</dependency>
315+
</dependencies>
316+
317+
<properties>
318+
<java.version>1.8</java.version>
319+
<maven.compiler.source>${java.version}</maven.compiler.source>
320+
<maven.compiler.target>${java.version}</maven.compiler.target>
321+
<gson-fire-version>1.9.0</gson-fire-version>
322+
<swagger-core-version>1.5.18</swagger-core-version>
323+
<okhttp-version>4.12.0</okhttp-version>
324+
<gson-version>2.12.1</gson-version>
325+
<jodatime-version>2.12.5</jodatime-version>
326+
<maven-plugin-version>1.0.0</maven-plugin-version>
327+
<junit-version>4.13.2</junit-version>
328+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
329+
<log4j.version>2.22.0</log4j.version>
330+
</properties>
331+
</project>

src/main/java/Invokers/ApiClient.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1452,8 +1452,8 @@ public void callAuthenticationHeader(String method, String path, RequestBody req
14521452
if (versionInfo != null && !versionInfo.isEmpty()) {
14531453
requestHeaderMap.put("v-c-client-id", "cybs-rest-sdk-java-" + versionInfo);
14541454
} else {
1455-
requestHeaderMap.put("v-c-client-id", "cybs-rest-sdk-java-VERSIONUNKNOWN");
1456-
}
1455+
requestHeaderMap.put("v-c-client-id", "cybs-rest-sdk-java-VERSIONUNKNOWN");
1456+
}
14571457

14581458
} catch (ConfigException | IOException e) {
14591459
logger.error(e.getMessage());

0 commit comments

Comments
 (0)