diff --git a/README.md b/README.md index ac13b1b..f0affbd 100644 --- a/README.md +++ b/README.md @@ -83,40 +83,3 @@ | Stats endpoint returns non-2xx | `SendgridException` whose message includes status + body | | Stats response cannot be parsed | `SendgridException` with the parse error as cause | | Null/blank required argument | `IllegalArgumentException` | - -### Building - -```bash -mvn clean install -``` - -### Running tests - -```bash -mvn test -``` - -The project ships with a JUnit 5 test suite covering the public -facade, both services, the model classes, and the exception types. -Mockito is used to stub the underlying `SendGrid` client so tests -run fully offline. - -### Project layout - -``` -src/main/java/io/ljunggren/sendgrid/api/ - SendgridApi.java -- public facade - exception/SendgridException -- checked exception - model/ -- Jackson-bound DTOs (Statistics, Stat, Metrics) - service/ -- EmailService, UsageService, BaseService, Aggregation -src/test/java/ -- JUnit 5 + Mockito tests -``` - -### Notes - -- `Statistics.date` is exposed as `java.time.LocalDate`. The - service registers the `JavaTimeModule` so deserialization works - out of the box. -- The package-private constructors on `SendgridApi`, `EmailService`, - and `UsageService` exist purely to enable mocking in tests; the - public API surface still takes only an API key. diff --git a/lombok.config b/lombok.config new file mode 100644 index 0000000..a23edb4 --- /dev/null +++ b/lombok.config @@ -0,0 +1,2 @@ +config.stopBubbling = true +lombok.addLombokGeneratedAnnotation = true \ No newline at end of file diff --git a/pom.xml b/pom.xml index ab1dfb7..31806ab 100644 --- a/pom.xml +++ b/pom.xml @@ -101,4 +101,22 @@ + + + nexus + https://nexus.ljunggren.io/repository/maven-releases/ + + + nexus + https://nexus.ljunggren.io/repository/maven-snapshots/ + + + + + https://gitbucket.ljunggren.io/git/aljunggren/sendgrid-api.git + scm:git:https://gitbucket.ljunggren.io/git/aljunggren/sendgrid-api.git + scm:git:https://gitbucket.ljunggren.io/git/aljunggren/sendgrid-api.git + HEAD + +