ppkarwasz commented on code in PR #422:
URL: 
https://github.com/apache/commons-release-plugin/pull/422#discussion_r3110648148


##########
src/main/java/org/apache/commons/release/plugin/slsa/v1_2/Builder.java:
##########
@@ -0,0 +1,125 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.commons.release.plugin.slsa.v1_2;
+
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import java.util.Objects;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Entity that executed the build and is trusted to have correctly performed 
the operation and populated the provenance.
+ *
+ * @see <a href="https://slsa.dev/spec/v1.2";>SLSA v1.2 Specification</a>
+ */
+public class Builder {
+
+    /** Identifier URI of the builder. */
+    @JsonProperty("id")
+    private String id = "https://commons.apache.org/builds/0.1.0";;
+
+    /** Orchestrator dependencies that may affect provenance generation. */
+    @JsonProperty("builderDependencies")
+    private List<ResourceDescriptor> builderDependencies = new ArrayList<>();
+
+    /** Map of build platform component names to their versions. */
+    @JsonProperty("version")
+    private Map<String, String> version = new HashMap<>();
+
+    /** Creates a new Builder instance. */
+    public Builder() {
+    }
+
+    /**
+     * Gets the identifier of the builder.
+     *
+     * @return the builder identifier URI
+     */
+    public String getId() {
+        return id;
+    }
+
+    /**
+     * Sets the identifier of the builder.
+     *
+     * @param id the builder identifier URI
+     */
+    public void setId(String id) {

Review Comment:
   Fixed order in 
https://github.com/apache/commons-release-plugin/commit/717bc2cf93585834136cc4b29e3ea52053e8a656



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to