Skip to content

Commit

Permalink
fixup! chore: Update from ubi8-minimal:8.10-896 to ubi8-minimal:8.10-…
Browse files Browse the repository at this point in the history
…1018
  • Loading branch information
vinokurig committed Jul 18, 2024
1 parent e517545 commit be9c7a5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
*/
package org.eclipse.che.api.factory.shared;

import java.util.Map;

/**
* Constants for Factory API.
*
Expand All @@ -29,5 +31,7 @@ public final class Constants {
// url factory parameter names
public static final String URL_PARAMETER_NAME = "url";

public static final Map<String, Object> DEFAULT_DEVFILE = Map.of("schemaVersion", "2.3.0");

private Constants() {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

import static java.util.stream.Collectors.toMap;
import static org.eclipse.che.api.factory.shared.Constants.CURRENT_VERSION;
import static org.eclipse.che.api.factory.shared.Constants.DEFAULT_DEVFILE;
import static org.eclipse.che.dto.server.DtoFactory.newDto;

import java.util.Collections;
Expand Down Expand Up @@ -63,7 +64,7 @@ protected FactoryMetaDto createFactory(
.orElseGet(
() ->
newDto(FactoryDevfileV2Dto.class)
.withDevfile(Map.of("schemaVersion", "2.3.0"))
.withDevfile(DEFAULT_DEVFILE)
.withV(CURRENT_VERSION)
.withSource("repo"))
.acceptVisitor(factoryVisitor);
Expand Down

0 comments on commit be9c7a5

Please sign in to comment.