@@ -10,40 +10,37 @@ description = "Restate SDK Spring Boot integration"
1010dependencies {
1111 compileOnly(libs.jspecify)
1212
13- api(project(" :sdk-common" )) {
14- // Let spring bring jackson in
15- exclude(group = " com.fasterxml.jackson" )
16- exclude(group = " com.fasterxml.jackson.core" )
17- exclude(group = " com.fasterxml.jackson.datatype" )
18- }
19-
20- api(project(" :client" )) {
21- // Let spring bring jackson in
22- exclude(group = " com.fasterxml.jackson" )
23- exclude(group = " com.fasterxml.jackson.core" )
24- exclude(group = " com.fasterxml.jackson.datatype" )
25- }
26-
27- implementation(project(" :sdk-http-vertx" )) {
28- // Let spring bring jackson in
29- exclude(group = " com.fasterxml.jackson" )
30- exclude(group = " com.fasterxml.jackson.core" )
31- exclude(group = " com.fasterxml.jackson.datatype" )
32- }
33- implementation(project(" :sdk-request-identity" ))
13+ val excludeJackson =
14+ fun ProjectDependency .() {
15+ // Let spring bring jackson in
16+ exclude(group = " com.fasterxml.jackson" )
17+ exclude(group = " com.fasterxml.jackson.core" )
18+ exclude(group = " com.fasterxml.jackson.datatype" )
19+ }
20+
21+ // SDK deps
22+ implementation(project(" :sdk-common" ), excludeJackson)
23+ implementation(project(" :client" ), excludeJackson)
24+ implementation(project(" :sdk-http-vertx" ), excludeJackson)
25+ implementation(project(" :sdk-request-identity" ), excludeJackson)
3426 implementation(libs.vertx.core) {
3527 // Let spring bring jackson in
3628 exclude(group = " com.fasterxml.jackson" )
3729 exclude(group = " com.fasterxml.jackson.core" )
3830 exclude(group = " com.fasterxml.jackson.datatype" )
3931 }
4032
41- implementation(libs.spring.boot.starter)
42-
43- // Spring is going to bring jackson in with this
33+ implementation(libs.spring.boot)
34+ implementation(libs.spring.boot.starter.logging)
35+ // In principle kotlin won't need this, but it's needed by the SDK core anyway, so we just import
36+ // this in.
4437 implementation(libs.spring.boot.starter.json)
4538
39+ testImplementation(libs.spring.boot.starter)
40+ testImplementation(libs.spring.boot.starter.json)
4641 testImplementation(libs.spring.boot.starter.test)
4742}
4843
4944tasks.withType<JavaCompile > { options.compilerArgs.add(" -parameters" ) }
45+
46+ tasks.withType<Javadoc > { isFailOnError = false }
0 commit comments