Skip to content

Commit c0ff99e

Browse files
committed
Added JUnits and pom optimizations.
1 parent 4d29240 commit c0ff99e

File tree

8 files changed

+1051
-184
lines changed

8 files changed

+1051
-184
lines changed

.gitignore

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# Maven
2+
target/
3+
pom.xml.tag
4+
pom.xml.releaseBackup
5+
pom.xml.versionsBackup
6+
pom.xml.next
7+
release.properties
8+
dependency-reduced-pom.xml
9+
buildNumber.properties
10+
.mvn/timing.properties
11+
.mvn/wrapper/maven-wrapper.jar
12+
13+
# Eclipse
14+
.classpath
15+
.project
16+
.settings/
17+
.factorypath
18+
bin/
19+
.metadata/
20+
*.launch
21+
.apt_generated
22+
.classpath
23+
.factorypath
24+
.project
25+
.settings
26+
.springBeans
27+
.sts4-cache
28+
29+
# IntelliJ IDEA
30+
.idea/
31+
*.iws
32+
*.iml
33+
*.ipr
34+
out/
35+
36+
# VS Code
37+
.vscode/
38+
*.code-workspace
39+
40+
# Mac OS
41+
.DS_Store
42+
43+
# Windows
44+
Thumbs.db
45+
ehthumbs.db
46+
Desktop.ini
47+
48+
# Logs
49+
*.log
50+
logs/

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ This API client provides a type-safe Java interface for WooCommerce REST API v3,
4545
4646
## 📦 Version Information
4747

48-
- **Current Version**: `0.1.7-alpha-20250609`
48+
- **Current Version**: `0.1.8-alpha-20250610`
4949
- **Supported WooCommerce API Version**: `v3`
5050
- **Java Compatibility**: Java 8+
5151

@@ -77,7 +77,7 @@ Then add the locally built artifact to your project:
7777
<dependency>
7878
<groupId>wtx.woocommerce</groupId>
7979
<artifactId>woocommerce-api-client</artifactId>
80-
<version>0.1.7-alpha-20250609</version>
80+
<version>0.1.8-alpha-20250610</version>
8181
</dependency>
8282
```
8383

pom.xml

Lines changed: 205 additions & 110 deletions
Original file line numberDiff line numberDiff line change
@@ -1,110 +1,205 @@
1-
<project xmlns="http://maven.apache.org/POM/4.0.0"
2-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4-
<modelVersion>4.0.0</modelVersion>
5-
6-
<groupId>wtx.woocommerce</groupId>
7-
<artifactId>woocommerce-api-client</artifactId>
8-
<version>0.1.7-alpha-20250609</version>
9-
<packaging>jar</packaging>
10-
11-
<name>WooCommerce REST API Client</name>
12-
<description>The WooCommerce REST API Client for Java provides easy access to the features of the e-commerce platform's API.</description>
13-
<url>https://github.com/wtx-labs/woocommerce-api-client-java</url>
14-
15-
<properties>
16-
<java.version>17</java.version>
17-
<maven.compiler.source>17</maven.compiler.source>
18-
<maven.compiler.target>17</maven.compiler.target>
19-
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
20-
</properties>
21-
22-
<dependencies>
23-
24-
<dependency>
25-
<groupId>javax.annotation</groupId>
26-
<artifactId>javax.annotation-api</artifactId>
27-
<version>1.3.2</version>
28-
</dependency>
29-
30-
<dependency>
31-
<groupId>com.squareup.okhttp3</groupId>
32-
<artifactId>okhttp</artifactId>
33-
<version>4.12.0</version>
34-
</dependency>
35-
36-
<dependency>
37-
<groupId>com.squareup.okhttp3</groupId>
38-
<artifactId>logging-interceptor</artifactId>
39-
<version>4.12.0</version>
40-
</dependency>
41-
42-
<dependency>
43-
<groupId>com.google.code.gson</groupId>
44-
<artifactId>gson</artifactId>
45-
<version>2.11.0</version>
46-
</dependency>
47-
48-
<dependency>
49-
<groupId>com.squareup.okio</groupId>
50-
<artifactId>okio</artifactId>
51-
<version>3.9.1</version>
52-
</dependency>
53-
54-
<dependency>
55-
<groupId>io.gsonfire</groupId>
56-
<artifactId>gson-fire</artifactId>
57-
<version>1.9.0</version>
58-
</dependency>
59-
60-
<dependency>
61-
<groupId>com.google.code.findbugs</groupId>
62-
<artifactId>jsr305</artifactId>
63-
<version>3.0.2</version>
64-
</dependency>
65-
66-
</dependencies>
67-
68-
<build>
69-
<plugins>
70-
71-
<plugin>
72-
<groupId>org.apache.maven.plugins</groupId>
73-
<artifactId>maven-compiler-plugin</artifactId>
74-
<version>3.11.0</version>
75-
<configuration>
76-
<source>${maven.compiler.source}</source>
77-
<target>${maven.compiler.target}</target>
78-
</configuration>
79-
</plugin>
80-
81-
<plugin>
82-
<groupId>org.apache.maven.plugins</groupId>
83-
<artifactId>maven-assembly-plugin</artifactId>
84-
<version>3.3.0</version>
85-
<configuration>
86-
<descriptorRefs>
87-
<descriptorRef>jar-with-dependencies</descriptorRef>
88-
</descriptorRefs>
89-
<archive>
90-
<manifest>
91-
<mainClass>wtx.woocommerce.WooCommerceApiClientUsageDemo</mainClass>
92-
</manifest>
93-
</archive>
94-
<appendAssemblyId>false</appendAssemblyId>
95-
</configuration>
96-
<executions>
97-
<execution>
98-
<id>assemble-jar-with-dependencies</id>
99-
<phase>package</phase>
100-
<goals>
101-
<goal>single</goal>
102-
</goals>
103-
</execution>
104-
</executions>
105-
</plugin>
106-
107-
</plugins>
108-
</build>
109-
110-
</project>
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<modelVersion>4.0.0</modelVersion>
6+
7+
<groupId>wtx.woocommerce</groupId>
8+
<artifactId>woocommerce-api-client</artifactId>
9+
<version>0.1.8-alpha-20250610</version>
10+
<packaging>jar</packaging>
11+
12+
<name>WooCommerce REST API Client</name>
13+
<description>The WooCommerce REST API Client for Java provides easy access to the features of the e-commerce platform's API.</description>
14+
<url>https://github.com/wtx-labs/woocommerce-api-client-java</url>
15+
16+
<properties>
17+
<java.version>8</java.version>
18+
<maven.compiler.source>8</maven.compiler.source>
19+
<maven.compiler.target>8</maven.compiler.target>
20+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
21+
<okhttp.version>4.12.0</okhttp.version>
22+
<gson.version>2.11.0</gson.version>
23+
<okio.version>3.9.1</okio.version>
24+
<gsonfire.version>1.9.0</gsonfire.version>
25+
<jsr305.version>3.0.2</jsr305.version>
26+
<javax.annotation.version>1.3.2</javax.annotation.version>
27+
</properties>
28+
29+
<dependencies>
30+
31+
<dependency>
32+
<groupId>javax.annotation</groupId>
33+
<artifactId>javax.annotation-api</artifactId>
34+
<version>${javax.annotation.version}</version>
35+
</dependency>
36+
37+
<dependency>
38+
<groupId>com.squareup.okhttp3</groupId>
39+
<artifactId>okhttp</artifactId>
40+
<version>${okhttp.version}</version>
41+
</dependency>
42+
43+
<dependency>
44+
<groupId>com.squareup.okhttp3</groupId>
45+
<artifactId>logging-interceptor</artifactId>
46+
<version>${okhttp.version}</version>
47+
</dependency>
48+
49+
<dependency>
50+
<groupId>com.google.code.gson</groupId>
51+
<artifactId>gson</artifactId>
52+
<version>${gson.version}</version>
53+
</dependency>
54+
55+
<dependency>
56+
<groupId>com.squareup.okio</groupId>
57+
<artifactId>okio</artifactId>
58+
<version>${okio.version}</version>
59+
</dependency>
60+
61+
<dependency>
62+
<groupId>io.gsonfire</groupId>
63+
<artifactId>gson-fire</artifactId>
64+
<version>${gsonfire.version}</version>
65+
</dependency>
66+
67+
<dependency>
68+
<groupId>com.google.code.findbugs</groupId>
69+
<artifactId>jsr305</artifactId>
70+
<version>${jsr305.version}</version>
71+
</dependency>
72+
73+
<!-- Test dependencies -->
74+
<dependency>
75+
<groupId>org.junit.jupiter</groupId>
76+
<artifactId>junit-jupiter</artifactId>
77+
<version>5.8.2</version>
78+
<scope>test</scope>
79+
</dependency>
80+
<dependency>
81+
<groupId>org.mockito</groupId>
82+
<artifactId>mockito-core</artifactId>
83+
<version>4.11.0</version>
84+
<scope>test</scope>
85+
</dependency>
86+
<dependency>
87+
<groupId>org.mockito</groupId>
88+
<artifactId>mockito-junit-jupiter</artifactId>
89+
<version>4.11.0</version>
90+
<scope>test</scope>
91+
</dependency>
92+
<dependency>
93+
<groupId>com.squareup.okhttp3</groupId>
94+
<artifactId>mockwebserver</artifactId>
95+
<version>4.9.3</version>
96+
<scope>test</scope>
97+
</dependency>
98+
99+
</dependencies>
100+
101+
<build>
102+
<plugins>
103+
104+
<plugin>
105+
<groupId>org.apache.maven.plugins</groupId>
106+
<artifactId>maven-compiler-plugin</artifactId>
107+
<version>3.11.0</version>
108+
<configuration>
109+
<source>${maven.compiler.source}</source>
110+
<target>${maven.compiler.target}</target>
111+
</configuration>
112+
</plugin>
113+
114+
<plugin>
115+
<groupId>org.apache.maven.plugins</groupId>
116+
<artifactId>maven-assembly-plugin</artifactId>
117+
<version>3.3.0</version>
118+
<configuration>
119+
<descriptorRefs>
120+
<descriptorRef>jar-with-dependencies</descriptorRef>
121+
</descriptorRefs>
122+
<archive>
123+
<manifest>
124+
<mainClass>wtx.woocommerce.WooCommerceApiClientUsageDemo</mainClass>
125+
</manifest>
126+
</archive>
127+
<appendAssemblyId>false</appendAssemblyId>
128+
</configuration>
129+
<executions>
130+
<execution>
131+
<id>assemble-jar-with-dependencies</id>
132+
<phase>package</phase>
133+
<goals>
134+
<goal>single</goal>
135+
</goals>
136+
</execution>
137+
</executions>
138+
</plugin>
139+
140+
<plugin>
141+
<groupId>org.apache.maven.plugins</groupId>
142+
<artifactId>maven-source-plugin</artifactId>
143+
<version>3.3.0</version>
144+
<executions>
145+
<execution>
146+
<id>attach-sources</id>
147+
<goals>
148+
<goal>jar-no-fork</goal>
149+
</goals>
150+
</execution>
151+
</executions>
152+
</plugin>
153+
154+
<plugin>
155+
<groupId>org.apache.maven.plugins</groupId>
156+
<artifactId>maven-javadoc-plugin</artifactId>
157+
<version>3.6.3</version>
158+
<executions>
159+
<execution>
160+
<id>attach-javadocs</id>
161+
<goals>
162+
<goal>jar</goal>
163+
</goals>
164+
</execution>
165+
</executions>
166+
</plugin>
167+
168+
</plugins>
169+
</build>
170+
171+
<reporting>
172+
<plugins>
173+
<plugin>
174+
<groupId>org.apache.maven.plugins</groupId>
175+
<artifactId>maven-javadoc-plugin</artifactId>
176+
<version>3.6.3</version>
177+
</plugin>
178+
</plugins>
179+
</reporting>
180+
181+
<scm>
182+
<connection>scm:git:git://github.com/wtx-labs/woocommerce-api-client-java.git</connection>
183+
<developerConnection>scm:git:ssh://github.com/wtx-labs/woocommerce-api-client-java.git</developerConnection>
184+
<url>https://github.com/wtx-labs/woocommerce-api-client-java</url>
185+
</scm>
186+
187+
<issueManagement>
188+
<system>GitHub</system>
189+
<url>https://github.com/wtx-labs/woocommerce-api-client-java/issues</url>
190+
</issueManagement>
191+
192+
<ciManagement>
193+
<system>GitHub Actions</system>
194+
<url>https://github.com/wtx-labs/woocommerce-api-client-java/actions</url>
195+
</ciManagement>
196+
197+
<developers>
198+
<developer>
199+
<name>WTX Labs Team</name>
200+
<organization>WTX Labs</organization>
201+
<organizationUrl>https://github.com/wtx-labs</organizationUrl>
202+
</developer>
203+
</developers>
204+
205+
</project>

0 commit comments

Comments
 (0)