File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
main/java/org/apache/commons/release/plugin/mojos
test/java/org/apache/commons/release/plugin/mojos Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 3333
3434import javax .inject .Inject ;
3535
36+ import com .fasterxml .jackson .core .JsonGenerator ;
3637import com .fasterxml .jackson .databind .ObjectMapper ;
3738import com .fasterxml .jackson .databind .SerializationFeature ;
3839import org .apache .commons .release .plugin .internal .ArtifactUtils ;
@@ -81,6 +82,7 @@ public class BuildAttestationMojo extends AbstractMojo {
8182 static {
8283 OBJECT_MAPPER .findAndRegisterModules ();
8384 OBJECT_MAPPER .disable (SerializationFeature .WRITE_DATES_AS_TIMESTAMPS );
85+ OBJECT_MAPPER .disable (JsonGenerator .Feature .AUTO_CLOSE_TARGET );
8486 }
8587
8688 /** The SCM connection URL for the current project. */
Original file line number Diff line number Diff line change @@ -103,9 +103,9 @@ void attestationTest() throws Exception {
103103 mojo .execute ();
104104
105105 Artifact attestation = project .getAttachedArtifacts ().stream ()
106- .filter (a -> "intoto.json " .equals (a .getType ()))
106+ .filter (a -> "intoto.jsonl " .equals (a .getType ()))
107107 .findFirst ()
108- .orElseThrow (() -> new AssertionError ("No intoto.json artifact attached to project" ));
108+ .orElseThrow (() -> new AssertionError ("No intoto.jsonl artifact attached to project" ));
109109 String json = new String (Files .readAllBytes (attestation .getFile ().toPath ()), StandardCharsets .UTF_8 );
110110
111111 String resolvedDeps = "predicate.buildDefinition.resolvedDependencies" ;
You can’t perform that action at this time.
0 commit comments