From b2e2a4bcd68a39b10e056efa3841472a8283e9ca Mon Sep 17 00:00:00 2001 From: f4lco Date: Fri, 8 Nov 2024 22:27:52 +0100 Subject: [PATCH] Reconfigure Jackson to make JSON output stable --- .../src/main/kotlin/com/libyear/traversal/ReportingVisitor.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libyear-gradle-plugin/src/main/kotlin/com/libyear/traversal/ReportingVisitor.kt b/libyear-gradle-plugin/src/main/kotlin/com/libyear/traversal/ReportingVisitor.kt index 6193a72..ac004e5 100644 --- a/libyear-gradle-plugin/src/main/kotlin/com/libyear/traversal/ReportingVisitor.kt +++ b/libyear-gradle-plugin/src/main/kotlin/com/libyear/traversal/ReportingVisitor.kt @@ -2,7 +2,6 @@ package com.libyear.traversal import com.fasterxml.jackson.databind.MapperFeature import com.fasterxml.jackson.databind.ObjectMapper -import com.fasterxml.jackson.databind.SerializationFeature import com.fasterxml.jackson.module.kotlin.registerKotlinModule import com.libyear.sourcing.VersionOracle import com.libyear.util.formatApproximate @@ -116,7 +115,7 @@ class ReportingVisitor( val version: String ) { - constructor(mvi: ModuleVersionIdentifier): + constructor(mvi: ModuleVersionIdentifier) : this(mvi.group, mvi.name, mvi.version) } }