Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import java.nio.file.FileSystem;
import java.nio.file.Files;
import java.nio.file.Path;
import java.time.Instant;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
Expand Down Expand Up @@ -482,6 +483,7 @@ public void execute() throws MojoExecutionException, MojoFailureException {
}

addReleaseInfo(platformJson);
addBuildTimestamp(platformJson);
validateCategories(platformJson, referencedCategories);

// Write the JSON to the output file
Expand Down Expand Up @@ -532,6 +534,10 @@ public void execute() throws MojoExecutionException, MojoFailureException {
}
}

private void addBuildTimestamp(ExtensionCatalog.Mutable platformJson) {
platformJson.getMetadata().put("build-timestamp", Instant.now().toString());
}

private void addReleaseInfo(ExtensionCatalog.Mutable platformJson) throws MojoExecutionException {
if (platformRelease == null) {
if (generateReleaseInfo) {
Expand Down
Loading