Slackbot
10/26/2022, 9:44 PMChris Lee
10/26/2022, 9:54 PMEric Kolotyluk
10/26/2022, 9:58 PMjacksonVersion = "2.12.7"
. . .
implementation "com.fasterxml.jackson.module:jackson-module-scala_2.13:${jacksonVersion}"
We do not define the bom anywhere as a dependency, so its a transitive dependency from somewhereChris Lee
10/26/2022, 9:59 PMEric Kolotyluk
10/26/2022, 10:01 PMChris Lee
10/26/2022, 10:06 PMimplementation(platform("com.fasterxml.jackson:jackson-bom:$jacksonVersion"))
implementation("com.fasterxml.jackson.module:jackson-module-scala_2.13")Eric Kolotyluk
10/26/2022, 10:06 PMChris Lee
10/26/2022, 10:08 PMChris Lee
10/26/2022, 10:08 PMimplementation("com.fasterxml.jackson.module:jackson-module-scala")Chris Lee
10/26/2022, 10:08 PMEric Kolotyluk
10/26/2022, 10:08 PMChris Lee
10/26/2022, 10:09 PMEric Kolotyluk
10/26/2022, 10:09 PMChris Lee
10/26/2022, 10:09 PMChris Lee
10/26/2022, 10:16 PMEric Kolotyluk
10/26/2022, 10:22 PM// Jackson Json Serialization
implementation(platform("com.fasterxml.jackson:jackson-bom:${jacksonVersion}"))
implementation "com.fasterxml.jackson.datatype:jackson-datatype-jdk8:${jacksonVersion}"
implementation "com.fasterxml.jackson.module:jackson-module-parameter-names:${jacksonVersion}"
implementation "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:${jacksonVersion}"
implementation "com.fasterxml.jackson.module:jackson-module-scala_2.13:${jacksonVersion}"
but I am still getting the same errors...
Do you want another scan?
Yes, the Jackson family is a bunch of unruly hillbillies...Chris Lee
10/26/2022, 10:23 PMimplementation(platform("com.fasterxml.jackson:jackson-bom:${jacksonVersion}"))
implementation "com.fasterxml.jackson.datatype:jackson-datatype-jdk8"
implementation "com.fasterxml.jackson.module:jackson-module-parameter-names"
implementation "com.fasterxml.jackson.datatype:jackson-datatype-jsr310"
implementation "com.fasterxml.jackson.module:jackson-module-scala_2.13"Eric Kolotyluk
10/26/2022, 10:24 PMChris Lee
10/26/2022, 10:24 PMEric Kolotyluk
10/26/2022, 10:26 PM% ./gradlew compileJava
> Task :compileJava FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileJava'.
> Could not resolve all files for configuration ':compileClasspath'.
> Could not find com.fasterxml.jackson:jackson-bom:2.13.4.1.
Searched in the following locations:
- <https://repo.maven.apache.org/maven2/com/fasterxml/jackson/jackson-bom/2.13.4.1/jackson-bom-2.13.4.1.pom>
- <https://plugins.gradle.org/m2/com/fasterxml/jackson/jackson-bom/2.13.4.1/jackson-bom-2.13.4.1.pom>
- <https://oss.sonatype.org/content/repositories/snapshots/com/fasterxml/jackson/jackson-bom/2.13.4.1/jackson-bom-2.13.4.1.pom>
Required by:
project :
> Could not find com.fasterxml.jackson.datatype:jackson-datatype-jdk8:.
Required by:
project :
> Could not find com.fasterxml.jackson.module:jackson-module-parameter-names:.
Required by:
project :
> Could not find com.fasterxml.jackson.datatype:jackson-datatype-jsr310:.
Required by:
project :
> Could not find com.fasterxml.jackson:jackson-bom:2.13.4.1.
Searched in the following locations:
- <https://repo.maven.apache.org/maven2/com/fasterxml/jackson/jackson-bom/2.13.4.1/jackson-bom-2.13.4.1.pom>
- <https://plugins.gradle.org/m2/com/fasterxml/jackson/jackson-bom/2.13.4.1/jackson-bom-2.13.4.1.pom>
- <https://oss.sonatype.org/content/repositories/snapshots/com/fasterxml/jackson/jackson-bom/2.13.4.1/jackson-bom-2.13.4.1.pom>
Required by:
project : > org.apache.spark:spark-core_2.13:3.3.1 > com.fasterxml.jackson.core:jackson-databind:2.13.4.1
> Could not find com.fasterxml.jackson:jackson-bom:2.13.4.1.
Searched in the following locations:
- <https://repo.maven.apache.org/maven2/com/fasterxml/jackson/jackson-bom/2.13.4.1/jackson-bom-2.13.4.1.pom>
- <https://plugins.gradle.org/m2/com/fasterxml/jackson/jackson-bom/2.13.4.1/jackson-bom-2.13.4.1.pom>
- <https://oss.sonatype.org/content/repositories/snapshots/com/fasterxml/jackson/jackson-bom/2.13.4.1/jackson-bom-2.13.4.1.pom>
Required by:
project : > com.fasterxml.jackson.module:jackson-module-scala_2.13:2.13.4 > com.fasterxml.jackson.core:jackson-core:2.13.4
project : > com.fasterxml.jackson.module:jackson-module-scala_2.13:2.13.4 > com.fasterxml.jackson.core:jackson-annotations:2.13.4Chris Lee
10/26/2022, 10:27 PMEric Kolotyluk
10/26/2022, 10:27 PMChris Lee
10/26/2022, 10:33 PM// the 'datatype' modules have been replaced
//implementation "com.fasterxml.jackson.datatype:jackson-datatype-jdk8"
//implementation "com.fasterxml.jackson.datatype:jackson-datatype-jsr310"
implementation "com.fasterxml.jackson.module:jackson-datatype-jdk8"
implementation "com.fasterxml.jackson.module:jackson-datatype-jsr310"Chris Lee
10/26/2022, 10:33 PMChris Lee
10/26/2022, 10:33 PMChris Lee
10/26/2022, 10:38 PMimplementation "com.fasterxml.jackson.datatypejackson-datatype-jdk8"
implementation "com.fasterxml.jackson.datatype:jackson-datatype-jsr310"Eric Kolotyluk
10/26/2022, 10:38 PMChris Lee
10/26/2022, 10:39 PMEric Kolotyluk
10/26/2022, 10:40 PMChris Lee
10/26/2022, 10:41 PMcom.fasterxml.jackson.datatype:jackson-datatype-jdk8: (note the trailing : that prevents using the BOM version).Eric Kolotyluk
10/26/2022, 10:42 PM: ?Chris Lee
10/26/2022, 10:42 PMEric Kolotyluk
10/26/2022, 10:42 PMChris Lee
10/26/2022, 10:43 PMChris Lee
10/26/2022, 10:43 PMChris Lee
10/26/2022, 10:43 PMOR, preferably, import Jackson BOM that will specify consistent version set.
Eric Kolotyluk
10/26/2022, 10:47 PMChris Lee
10/26/2022, 10:48 PMrepositories {
mavenCentral()
}
dependencies {
val jacksonVersion = "2.12.7"
implementation(platform("com.fasterxml.jackson:jackson-bom:$jacksonVersion"))
implementation("com.fasterxml.jackson.module:jackson-module-parameter-names")
implementation("com.fasterxml.jackson.module:jackson-module-scala_2.13")
implementation("com.fasterxml.jackson.datatype:jackson-datatype-jdk8")
implementation("com.fasterxml.jackson.datatype:jackson-datatype-jsr310")Chris Lee
10/26/2022, 10:48 PMChris Lee
10/26/2022, 10:49 PMval everything else should go straight across to groovy)Chris Lee
10/26/2022, 10:53 PMChris Lee
10/26/2022, 10:54 PMEric Kolotyluk
10/26/2022, 10:54 PM// Jackson Json Serialization
implementation platform("com.fasterxml.jackson:jackson-bom:2.12.7")
implementation "com.fasterxml.jackson.datatype:jackson-datatype-jdk8"
implementation "com.fasterxml.jackson.datatype:jackson-datatype-jsr310"
implementation "com.fasterxml.jackson.module:jackson-module-parameter-names"
implementation "com.fasterxml.jackson.module:jackson-module-scala_2.13"
still fails (Groovy)Chris Lee
10/26/2022, 10:55 PMChris Lee
10/26/2022, 10:55 PMEric Kolotyluk
10/26/2022, 10:56 PM% ./gradlew compileJava
> Task :compileJava FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileJava'.
> Could not resolve all files for configuration ':compileClasspath'.
> Could not find com.fasterxml.jackson:jackson-bom:2.13.4.1.
Searched in the following locations:
- <https://repo.maven.apache.org/maven2/com/fasterxml/jackson/jackson-bom/2.13.4.1/jackson-bom-2.13.4.1.pom>
- <https://plugins.gradle.org/m2/com/fasterxml/jackson/jackson-bom/2.13.4.1/jackson-bom-2.13.4.1.pom>
- <https://oss.sonatype.org/content/repositories/snapshots/com/fasterxml/jackson/jackson-bom/2.13.4.1/jackson-bom-2.13.4.1.pom>
Required by:
project :
> Could not find com.fasterxml.jackson.datatype:jackson-datatype-jdk8:.
Required by:
project :
> Could not find com.fasterxml.jackson.datatype:jackson-datatype-jsr310:.
Required by:
project :
> Could not find com.fasterxml.jackson.module:jackson-module-parameter-names:.
Required by:
project :
> Could not find com.fasterxml.jackson:jackson-bom:2.13.4.1.
Searched in the following locations:
- <https://repo.maven.apache.org/maven2/com/fasterxml/jackson/jackson-bom/2.13.4.1/jackson-bom-2.13.4.1.pom>
- <https://plugins.gradle.org/m2/com/fasterxml/jackson/jackson-bom/2.13.4.1/jackson-bom-2.13.4.1.pom>
- <https://oss.sonatype.org/content/repositories/snapshots/com/fasterxml/jackson/jackson-bom/2.13.4.1/jackson-bom-2.13.4.1.pom>
Required by:
project : > org.apache.spark:spark-core_2.13:3.3.1 > com.fasterxml.jackson.core:jackson-databind:2.13.4.1
> Could not find com.fasterxml.jackson:jackson-bom:2.13.4.1.
Searched in the following locations:
- <https://repo.maven.apache.org/maven2/com/fasterxml/jackson/jackson-bom/2.13.4.1/jackson-bom-2.13.4.1.pom>
- <https://plugins.gradle.org/m2/com/fasterxml/jackson/jackson-bom/2.13.4.1/jackson-bom-2.13.4.1.pom>
- <https://oss.sonatype.org/content/repositories/snapshots/com/fasterxml/jackson/jackson-bom/2.13.4.1/jackson-bom-2.13.4.1.pom>
Required by:
project : > com.fasterxml.jackson.module:jackson-module-scala_2.13:2.13.4 > com.fasterxml.jackson.core:jackson-core:2.13.4
project : > com.fasterxml.jackson.module:jackson-module-scala_2.13:2.13.4 > com.fasterxml.jackson.core:jackson-annotations:2.13.4Chris Lee
10/26/2022, 10:56 PMEric Kolotyluk
10/26/2022, 10:57 PMChris Lee
10/26/2022, 10:59 PMChris Lee
10/26/2022, 10:59 PMplugins {
`java-library`
}
repositories {
mavenCentral()
}
dependencies {
// Jackson Json Serialization
implementation(platform("com.fasterxml.jackson:jackson-bom:2.12.7"))
implementation("com.fasterxml.jackson.datatype:jackson-datatype-jdk8")
implementation("com.fasterxml.jackson.datatype:jackson-datatype-jsr310")
implementation("com.fasterxml.jackson.module:jackson-module-parameter-names")
implementation("com.fasterxml.jackson.module:jackson-module-scala_2.13")
}Eric Kolotyluk
10/26/2022, 11:00 PMplugins {
id 'groovy'
id 'java'
}
group 'com.forgerock.autoid'
version '1.0-SNAPSHOT'
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(11))
}
}
ext {
immutablesVersion = "2.8.8"
findBugsJsrVersion = "3.0.2"
groovyVersion = "3.0.3"
spockVersion = "2.0-M3-groovy-3.0"
jacksonVersion = "2.12.7"
slf4jVersion = "1.7.30"
log4j2Version = "2.17.1"
sparkCoreVersion = "3.3.1"
elasticVersion = "7.12.1"
commonsLangVersion = "3.11"
jerseyClientVersion = "2.33"
apacheHttpVersion = "4.5.13"
}
repositories {
mavenCentral()
gradlePluginPortal()
// Spock snapshots are available from the Sonatype OSS snapshot repository
maven { url "<https://oss.sonatype.org/content/repositories/snapshots/>" }
}
dependencies {
// Immutables
annotationProcessor "org.immutables:value:${immutablesVersion}"
annotationProcessor "org.immutables:builder:${immutablesVersion}"
compileOnly "org.immutables:value:${immutablesVersion}"
compileOnly "org.immutables:builder:${immutablesVersion}"
// @Nullable annotations in immutables
implementation "com.google.code.findbugs:jsr305:${findBugsJsrVersion}"
// Jackson Json Serialization
//implementation group: 'com.fasterxml.jackson', name: 'jackson-bom', version: '2.12.7', ext: 'pom'
implementation platform("com.fasterxml.jackson:jackson-bom:2.12.7")
// implementation group: 'com.fasterxml.jackson.datatype', name: 'jackson-datatype-jdk8'
// implementation group: 'com.fasterxml.jackson.datatype', name: 'jackson-datatype-jsr310'
implementation "com.fasterxml.jackson.datatype:jackson-datatype-jdk8"
implementation "com.fasterxml.jackson.datatype:jackson-datatype-jsr310"
implementation "com.fasterxml.jackson.module:jackson-module-parameter-names"
implementation "com.fasterxml.jackson.module:jackson-module-scala_2.13"
// SLF4j
// implementation "org.slf4j:slf4j-api:${slf4jVersion}"
// implementation "org.apache.logging.log4j:log4j-slf4j18-impl:${log4j2Version}"
// Spark
compileOnly "org.apache.spark:spark-core_2.13:${sparkCoreVersion}"
compileOnly "org.apache.spark:spark-sql_2.13:${sparkCoreVersion}"
// ElasticSearch
implementation "org.elasticsearch.client:elasticsearch-rest-high-level-client:${elasticVersion}"
//Apache commons lang
implementation "org.apache.commons:commons-lang3:${commonsLangVersion}"
implementation "org.apache.httpcomponents:httpclient:${apacheHttpVersion}"
//Jersey client
implementation "org.glassfish.jersey.core:jersey-client:${jerseyClientVersion}"
implementation "org.glassfish.jersey.inject:jersey-hk2:${jerseyClientVersion}"
implementation "org.glassfish.jersey.media:jersey-media-json-processing:${jerseyClientVersion}"
implementation "org.glassfish.jersey.media:jersey-media-json-binding:${jerseyClientVersion}"
// Mandatory dependencies for using Spock
testImplementation "org.codehaus.groovy:groovy-all:${groovyVersion}"
testImplementation platform("org.spockframework:spock-bom:${spockVersion}")
testImplementation "org.spockframework:spock-core"
// Spark in tests
testImplementation "org.apache.spark:spark-core_2.13:${sparkCoreVersion}"
testImplementation "org.apache.spark:spark-sql_2.13:${sparkCoreVersion}"
}
test {
useJUnitPlatform()
}Chris Lee
10/26/2022, 11:10 PMChris Lee
10/26/2022, 11:13 PMcompileOnly("org.apache.spark:spark-core_2.13:${sparkCoreVersion}")Eric Kolotyluk
10/26/2022, 11:13 PMEric Kolotyluk
10/26/2022, 11:13 PMEric Kolotyluk
10/26/2022, 11:14 PMEric Kolotyluk
10/26/2022, 11:16 PMChris Lee
10/26/2022, 11:17 PMChris Lee
10/26/2022, 11:28 PMEric Kolotyluk
10/26/2022, 11:28 PMEric Kolotyluk
10/26/2022, 11:29 PMEric Kolotyluk
10/26/2022, 11:29 PMEric Kolotyluk
10/26/2022, 11:29 PMChris Lee
10/26/2022, 11:30 PMChris Lee
10/26/2022, 11:46 PMconstraints {
implementation("com.fasterxml.jackson:jackson-bom") {
version {
strictly("2.13.4")
}
}Eric Kolotyluk
10/26/2022, 11:49 PMbuild.gradle?
Is that Kotlin or Groovy?Chris Lee
10/26/2022, 11:49 PMEric Kolotyluk
10/26/2022, 11:50 PMEric Kolotyluk
10/27/2022, 12:00 AMChris Lee
10/27/2022, 12:00 AM