You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/test/resources/com/fasterxml/jackson/integtest/gradle/build.gradle.kts
+34-6
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,6 @@ plugins {
3
3
}
4
4
5
5
val modulesWithoutGradleMetadata =listOf(
6
-
"com.fasterxml.jackson.module:jackson-module-afterburner", // TODO remove after next release - fixed in https://github.com/FasterXML/jackson-modules-base/pull/198
7
6
"com.fasterxml.jackson.jr:jackson-jr-all", // TODO is there a reason not to add this?
8
7
9
8
"com.fasterxml.jackson:jackson-bom", // does not need it
if (allModulesWithoutBomDependency.isNotEmpty()) {
50
-
val message ="Missing dependency to 'jackson-bom'. Gradle Metadata publishing is most likely broken:\n - ${allModulesWithoutBomDependency.joinToString("\n - ")}"
49
+
message +="Missing dependency to 'jackson-bom'. Gradle Metadata publishing is most likely broken:\n - ${allModulesWithoutBomDependency.joinToString("\n - ")}\n"
50
+
}
51
+
52
+
// fetch again in a separate context using only the POM metadata
53
+
repositories.all {
54
+
(thisasMavenArtifactRepository).metadataSources {
55
+
mavenPom()
56
+
ignoreGradleMetadataRedirection()
57
+
}
58
+
}
59
+
val pomAllModules = configurations.detachedConfiguration(*allJacksonModule.map { dependencies.create(it) }.toTypedArray())
60
+
val pomAllModulesResolved = resolveJacksonModules(pomAllModules)
0 commit comments