Skip to content

Commit fb82ddd

Browse files
committed
The first release of the client :-).
1 parent 2c579fa commit fb82ddd

File tree

6 files changed

+167
-12
lines changed

6 files changed

+167
-12
lines changed

.editorconfig

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# EditorConfig is awesome: https://EditorConfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
# Unix-style newlines with a newline ending every file
7+
[*]
8+
end_of_line = lf
9+
insert_final_newline = true
10+
charset = utf-8
11+
trim_trailing_whitespace = true
12+
13+
# Java files
14+
[*.java]
15+
indent_style = space
16+
indent_size = 4
17+
18+
# XML files
19+
[*.xml]
20+
indent_style = space
21+
indent_size = 4
22+
23+
# YAML files
24+
[*.{yml,yaml}]
25+
indent_style = space
26+
indent_size = 2
27+
28+
# Markdown files
29+
[*.md]
30+
trim_trailing_whitespace = false
31+
max_line_length = off
32+
33+
# Properties files
34+
[*.properties]
35+
indent_style = space
36+
indent_size = 4

.github/workflows/release.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v3
13+
with:
14+
fetch-depth: 0
15+
16+
- name: Set up JDK 8
17+
uses: actions/setup-java@v3
18+
with:
19+
java-version: '8'
20+
distribution: 'temurin'
21+
22+
- name: Build with Maven
23+
run: mvn -B clean package --file pom.xml
24+
25+
- name: Create Release
26+
id: create_release
27+
uses: actions/create-release@v1
28+
env:
29+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30+
with:
31+
tag_name: ${{ github.ref }}
32+
release_name: Release ${{ github.ref }}
33+
draft: false
34+
prerelease: false
35+
36+
- name: Upload Release Asset
37+
uses: actions/upload-release-asset@v1
38+
env:
39+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40+
with:
41+
upload_url: ${{ steps.create_release.outputs.upload_url }}
42+
asset_path: ./target/woocommerce-api-client-java-0.9.0.jar
43+
asset_name: woocommerce-api-client-java-0.9.0.jar
44+
asset_content_type: application/java-archive

.gitignore

Lines changed: 52 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,28 @@
1+
# Compiled class file
2+
*.class
3+
4+
# Log file
5+
*.log
6+
7+
# BlueJ files
8+
*.ctxt
9+
10+
# Mobile Tools for Java (J2ME)
11+
.mtj.tmp/
12+
13+
# Package Files #
14+
*.jar
15+
*.war
16+
*.nar
17+
*.ear
18+
*.zip
19+
*.tar.gz
20+
*.rar
21+
22+
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
23+
hs_err_pid*
24+
replay_pid*
25+
126
# Maven
227
target/
328
pom.xml.tag
@@ -10,6 +35,33 @@ buildNumber.properties
1035
.mvn/timing.properties
1136
.mvn/wrapper/maven-wrapper.jar
1237

38+
# IntelliJ IDEA
39+
.idea/
40+
*.iws
41+
*.iml
42+
*.ipr
43+
44+
# Eclipse
45+
.classpath
46+
.project
47+
.settings/
48+
49+
# VS Code
50+
.vscode/
51+
52+
# Mac
53+
.DS_Store
54+
55+
# Windows
56+
Thumbs.db
57+
ehthumbs.db
58+
Desktop.ini
59+
60+
# GPG
61+
*.asc
62+
*.gpg
63+
private.key
64+
1365
# Eclipse
1466
.classpath
1567
.project
@@ -26,13 +78,6 @@ bin/
2678
.springBeans
2779
.sts4-cache
2880

29-
# IntelliJ IDEA
30-
.idea/
31-
*.iws
32-
*.iml
33-
*.ipr
34-
out/
35-
3681
# VS Code
3782
.vscode/
3883
*.code-workspace

CHANGELOG.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7+
8+
## [0.9.0] - 2024-06-10
9+
10+
### Added
11+
- Added GitHub Packages publishing workflow
12+
- Added GitHub Actions for automated builds
13+
- Added JUnit tests
14+
- Added pom.xml optimizations
15+
- Added security policy
16+
- Added contributing guidelines
17+
- Added code of conduct
18+
19+
### Changed
20+
- Updated version number in README
21+
- Improved API methods with optional parameters
22+
- Enhanced code organization
23+
- Updated project documentation
24+
- Improved test coverage
25+
- Enhanced logging capabilities
26+
- Updated dependencies to latest versions
27+
28+
### Fixed
29+
- Fixed ISSUE-1: Enforced sending the 'status' parameter as a comma-separated list of values
30+
- Fixed date handling in order processing
31+
- Fixed authentication header generation
32+
- Fixed test response files naming

README.md

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

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

52-
53-
5452
## 🔓 License
5553

5654
**MIT License**
@@ -77,7 +75,7 @@ Then add the locally built artifact to your project:
7775
<dependency>
7876
<groupId>wtx.woocommerce</groupId>
7977
<artifactId>woocommerce-api-client</artifactId>
80-
<version>0.1.8-alpha-20250610</version>
78+
<version>0.9.0</version>
8179
</dependency>
8280
```
8381

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>wtx.woocommerce</groupId>
88
<artifactId>woocommerce-api-client</artifactId>
9-
<version>0.1.8-alpha-20250610</version>
9+
<version>0.9.0</version>
1010
<packaging>jar</packaging>
1111

1212
<name>WooCommerce REST API Client</name>

0 commit comments

Comments
 (0)