Skip to content

Latest commit

History

History
51 lines (37 loc) · 3.21 KB

File metadata and controls

51 lines (37 loc) · 3.21 KB

Contentstack Management Java SDK – Agent guide

Universal entry point for contributors and AI agents. Detailed conventions live in skills/*/SKILL.md.

What this repo is

FieldDetail
Name:contentstack-management-java
Purpose:Java client library for the Contentstack Content Management API (CMA): create, update, delete, and fetch account content and configuration from JVM applications.
Out of scope (if any):Content Delivery API (CDA) and delivery-only use cases belong in the Delivery SDK, not this package. This SDK is read/write against CMA; do not treat it as the primary way to serve content to end users.

Tech stack (at a glance)

AreaDetails
LanguageJava 8 (source/target in pom.xml); README suggests Java 8+ for consumers.
BuildApache Maven; pom.xml at repo root.
TestsJUnit 5 / Vintage, Mockito, OkHttp MockWebServer; tests under src/test/java/com/contentstack/cms/.
Lint / coverageCompiler: -Xlint:all (see maven-compiler-plugin). Coverage: JaCoCo (jacoco-maven-plugin); HTML report under target/site/jacoco after tests + jacoco:report. No separate Checkstyle/SpotBugs in this pom.xml.
OtherHTTP: Retrofit 3, OkHttp 5, Gson; RxJava 3; Lombok for generated code.

Commands (quick reference)

Command typeCommand
Buildmvn clean compile
Testmvn clean test -DskipTests=false
Lintmvn compile (compiler warnings; see Tech stack)
Coveragemvn clean test -DskipTests=false jacoco:report (open target/site/jacoco/index.html)

Note:maven-surefire-plugin sets skipTests to true by default in this repo, so you must pass -DskipTests=false (or override in your IDE) to run unit tests locally.

CI:.github/workflows/coverage.yml runs mvn clean package and JaCoCo steps on push. Other workflows under .github/workflows/ handle publish, scans, and branch checks.

Where the documentation lives: skills

SkillPathWhat it covers
Dev workflowskills/dev-workflow/SKILL.mdBranches, Maven lifecycle, CI expectations, PR flow.
Contentstack Java CMA SDKskills/contentstack-java-cma-sdk/SKILL.mdPublic API, Contentstack entry point, auth, versioning boundaries.
Java (repo conventions)skills/java/SKILL.mdPackage layout, language conventions, Lombok usage.
Testingskills/testing/SKILL.mdTest layout, naming, skipping policy, credentials.
Code reviewskills/code-review/SKILL.mdPR checklist and severity guidance.
HTTP client stackskills/http-client-stack/SKILL.mdRetrofit, OkHttp, retries, logging—what this repo actually wires.

An index with “when to use” hints is in skills/README.md.

Using Cursor (optional)

If you use Cursor, .cursor/rules/README.md only points to AGENTS.md—same docs as everyone else.