-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Add java docs (requirement for publishing to Maven Central) - Move `SchemaRegistryContainer` into new `kafka-test` module.
- Loading branch information
1 parent
db885e2
commit 7bce533
Showing
30 changed files
with
560 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
plugins { | ||
`java-library` | ||
} | ||
|
||
val kafkaVersion : String by extra | ||
val spotBugsVersion : String by extra | ||
val jacksonVersion : String by extra | ||
val testcontainersVersion : String by extra | ||
val lombokVersion : String by extra | ||
val confluentVersion : String by extra | ||
|
||
dependencies { | ||
implementation(project(":kafka")) | ||
|
||
compileOnly("org.projectlombok:lombok:$lombokVersion") | ||
annotationProcessor("org.projectlombok:lombok:$lombokVersion") | ||
testCompileOnly("org.projectlombok:lombok:$lombokVersion") | ||
testAnnotationProcessor("org.projectlombok:lombok:$lombokVersion") | ||
|
||
implementation("org.testcontainers:testcontainers:$testcontainersVersion") | ||
implementation("org.testcontainers:kafka:$testcontainersVersion") | ||
testImplementation("org.testcontainers:junit-jupiter:$testcontainersVersion") | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
103 changes: 47 additions & 56 deletions
103
...mpleSchemaDemoPublicUserInfoEnriched.java → ...mpleSchemaDemoPublicUserInfoEnriched.java
Large diffs are not rendered by default.
Oops, something went wrong.
25 changes: 25 additions & 0 deletions
25
kafka-test/src/test/java/simple/schema_demo/_public/user_checkout_value/UserCheckout.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package simple.schema_demo._public.user_checkout_value; | ||
|
||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import com.kjetland.jackson.jsonSchema.annotations.JsonSchemaInject; | ||
import com.kjetland.jackson.jsonSchema.annotations.JsonSchemaString; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
@Data | ||
@AllArgsConstructor | ||
@NoArgsConstructor | ||
@JsonSchemaInject(strings = { | ||
@JsonSchemaString(path = "javaType", value = "simple.schema_demo._public.user_checkout_value.UserCheckout")}) | ||
public class UserCheckout { | ||
@JsonProperty | ||
long id; | ||
@JsonProperty | ||
String name; | ||
@JsonProperty | ||
int price; | ||
@JsonProperty | ||
String systemDate; | ||
} |
16 changes: 16 additions & 0 deletions
16
kafka-test/src/test/java/simple/schema_demo/_public/user_signed_up_value/UserSignedUp.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package simple.schema_demo._public.user_signed_up_value; | ||
|
||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
@Data | ||
@AllArgsConstructor | ||
@NoArgsConstructor | ||
public class UserSignedUp { | ||
String fullName; | ||
String email; | ||
int age; | ||
|
||
} |
41 changes: 41 additions & 0 deletions
41
kafka-test/src/test/resources/schema/simple.schema_demo._public.user_checkout.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{ | ||
"$schema":"http://json-schema.org/draft-07/schema#", | ||
"title":"User Checkout", | ||
"type":"object", | ||
"additionalProperties":false, | ||
"javaType":"simple.schema_demo._public.user_checkout_value.UserCheckout", | ||
"properties":{ | ||
"id":{ | ||
"type":"integer" | ||
}, | ||
"name":{ | ||
"oneOf":[ | ||
{ | ||
"type":"null", | ||
"title":"Not included" | ||
}, | ||
{ | ||
"type":"string" | ||
} | ||
] | ||
}, | ||
"price":{ | ||
"type":"integer" | ||
}, | ||
"systemDate":{ | ||
"oneOf":[ | ||
{ | ||
"type":"null", | ||
"title":"Not included" | ||
}, | ||
{ | ||
"type":"string" | ||
} | ||
] | ||
} | ||
}, | ||
"required":[ | ||
"id", | ||
"price" | ||
] | ||
} |
File renamed without changes.
File renamed without changes.
10 changes: 10 additions & 0 deletions
10
kafka-test/src/test/resources/schema/simple.schema_demo._public.user_signed_up.avsc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"type": "record", | ||
"namespace": "simple.schema_demo._public.user_signed_up_value", | ||
"name": "UserSignedUp", | ||
"fields": [ | ||
{"name": "fullName", "type": "string"}, | ||
{"name": "email", "type": "string"}, | ||
{"name": "age", "type": "int"} | ||
] | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.