Skip to content

Commit

Permalink
feat: add 7.4 support
Browse files Browse the repository at this point in the history
  • Loading branch information
lgdd committed Apr 28, 2021
1 parent 4cc8a3b commit 6a5f448
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Dockerfile.jvm
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ USER node
WORKDIR /home/node/
RUN curl -sSL https://raw.githubusercontent.com/liferay/liferay-blade-cli/master/cli/installers/local | sh
ENV PATH "$PATH:/home/node/jpm/bin"
RUN blade version && \
blade update
RUN jpm remove blade && \
jpm install https://repository.liferay.com/nexus/content/repositories/liferay-public-snapshots/com/liferay/blade/com.liferay.blade.cli/4.0.8-SNAPSHOT/com.liferay.blade.cli-4.0.8-20210427.171152-5.jar

RUN npm i -g yarn \
&& yarn global add yo
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile.native
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ USER node
WORKDIR /home/node/
RUN curl -sSL https://raw.githubusercontent.com/liferay/liferay-blade-cli/master/cli/installers/local | sh
ENV PATH "$PATH:/home/node/jpm/bin"
RUN blade version && \
blade update
RUN jpm remove blade && \
jpm install https://repository.liferay.com/nexus/content/repositories/liferay-public-snapshots/com/liferay/blade/com.liferay.blade.cli/4.0.8-SNAPSHOT/com.liferay.blade.cli-4.0.8-20210427.171152-5.jar

RUN npm i -g yarn \
&& yarn global add yo
Expand Down
3 changes: 2 additions & 1 deletion src/main/frontend/src/Main.elm
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ tools =

versions : List String
versions =
[ "dxp-7.3-sp1"
[ "portal-7.4-ga1"
, "dxp-7.3-sp1"
, "dxp-7.2-sp4"
, "dxp-7.1-sp5"
, "dxp-7.0-sp15"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ private boolean validateWorkspaceParams(String tool, String version, LiferayWork
var projectArtifactId = workspace.getProjectArtifactId();
var projectVersion = workspace.getProjectVersion();
var liferayVersions = Arrays.asList(
"portal-7.4-ga1",
"dxp-7.3-sp1",
"dxp-7.2-sp4",
"dxp-7.1-sp5",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public static String getThemeArtifactId(String themeName) {
public static String getLiferayVersionNumber(String liferayProductVersion)
throws UnsupportedLiferayVersionException {

for (String version : Arrays.asList("7.0", "7.1", "7.2", "7.3")) {
for (String version : Arrays.asList("7.0", "7.1", "7.2", "7.3", "7.4")) {
if (liferayProductVersion.contains(version)) {
return version;
}
Expand Down

0 comments on commit 6a5f448

Please sign in to comment.