Skip to content

Commit d583915

Browse files
committed
learning how to use "api" and "implementation" deps the hard way
1 parent 68ca2d9 commit d583915

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

build.gradle.kts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,12 @@ repositories {
3535
}
3636

3737
dependencies {
38-
api("com.fasterxml.jackson.core:jackson-annotations:2.14.2")
38+
// The API needs databind because JacksonObjectMapper.java
39+
// exposes a com.fasterxml.jackson.databind.ObjectMapper
40+
// on its public APi.
41+
api("com.fasterxml.jackson.core:jackson-databind:2.14.2")
42+
43+
implementation("com.fasterxml.jackson.core:jackson-annotations:2.14.2")
3944
// Java 8 date/time type java.time.OffsetDateTime not supported by default,
4045
// so we need to add com.fasterxml.jackson.datatype:jackson-datatype-jsr310
4146
implementation("com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.14.2")

0 commit comments

Comments
 (0)