Skip to content

Commit

Permalink
fix: maven bom for dxp
Browse files Browse the repository at this point in the history
  • Loading branch information
lgdd committed Apr 25, 2024
1 parent 5a65ca8 commit 963167a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lfr/pkg/assets/tpl/ws/maven/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,21 @@
<dependencies>
<dependency>
<groupId>com.liferay.portal</groupId>
<artifactId>release.portal.bom</artifactId>
<artifactId>release.{{.Edition}}.bom</artifactId>
<version>${liferay.bom.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>com.liferay.portal</groupId>
<artifactId>release.portal.bom.compile.only</artifactId>
<artifactId>release.{{.Edition}}.bom.compile.only</artifactId>
<version>${liferay.bom.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>com.liferay.portal</groupId>
<artifactId>release.portal.bom.third.party</artifactId>
<artifactId>release.{{.Edition}}.bom.third.party</artifactId>
<version>${liferay.bom.version}</version>
<type>pom</type>
<scope>import</scope>
Expand Down
12 changes: 12 additions & 0 deletions lfr/pkg/project/metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import (

// Metadata represents the basic informations associated with a Liferay project
type Metadata struct {
Edition string
Product string
BundleUrl string
TomcatVersion string
Expand Down Expand Up @@ -160,6 +161,7 @@ func NewMetadata(base, version, edition string) (*Metadata, error) {
latestProductInfo := productInfoList[len(productInfoList)-1]
bar.Clear()
return &Metadata{
Edition: edition,
Product: latestProductInfo.Name,
BundleUrl: latestProductInfo.BundleURL,
TargetPlatform: latestProductInfo.TargetPlatformVersion,
Expand All @@ -175,6 +177,7 @@ func getOfflineMetadata(base, version, edition string) (*Metadata, error) {
switch version {
case "7.4":
return &Metadata{
Edition: edition,
Product: "7.4.13.u102",
BundleUrl: "https://releases-cdn.liferay.com/dxp/7.4.13-u102/liferay-dxp-tomcat-7.4.13.u102-20231109153600206.tar.gz",
TargetPlatform: "7.4.13.u102",
Expand All @@ -185,6 +188,7 @@ func getOfflineMetadata(base, version, edition string) (*Metadata, error) {
}, nil
case "7.3":
return &Metadata{
Edition: edition,
Product: "dxp-7.3-u35",
BundleUrl: "https://releases-cdn.liferay.com/dxp/7.3.10-u35/liferay-dxp-tomcat-7.3.10.u35-20231114110531823.tar.gz",
TargetPlatform: "7.3.10.u35",
Expand All @@ -195,6 +199,7 @@ func getOfflineMetadata(base, version, edition string) (*Metadata, error) {
}, nil
case "7.2":
return &Metadata{
Edition: edition,
Product: "dxp-7.2-sp8",
BundleUrl: "https://api.liferay.com/downloads/portal/7.2.10.8/liferay-dxp-tomcat-7.2.10.8-sp8-slim-20220912234451782.tar.gz",
TargetPlatform: "7.2.10.8",
Expand All @@ -205,6 +210,7 @@ func getOfflineMetadata(base, version, edition string) (*Metadata, error) {
}, nil
case "7.1":
return &Metadata{
Edition: edition,
Product: "dxp-7.1-sp8",
BundleUrl: "https://releases-cdn.liferay.com/dxp/7.1.10.8/liferay-dxp-tomcat-7.1.10.8-sp8-slim-20220926154152962.tar.gz",
TargetPlatform: "7.1.10.8",
Expand All @@ -215,6 +221,7 @@ func getOfflineMetadata(base, version, edition string) (*Metadata, error) {
}, nil
case "7.0":
return &Metadata{
Edition: edition,
Product: "dxp-7.0-sp17",
BundleUrl: "https://releases-cdn.liferay.com/dxp/7.0.10.17/liferay-dxp-digital-enterprise-tomcat-7.0.10.17-sp17-slim-20211014075354439.tar.gz",
TargetPlatform: "7.0.10.17",
Expand All @@ -228,6 +235,7 @@ func getOfflineMetadata(base, version, edition string) (*Metadata, error) {
switch version {
case "7.4":
return &Metadata{
Edition: edition,
Product: "portal-7.4-ga102",
BundleUrl: "https://github.com/liferay/liferay-portal/releases/download/7.4.3.102-ga102/liferay-ce-portal-tomcat-7.4.3.102-ga102-20231109165213885.tar.gz",
TargetPlatform: "7.4.3.102",
Expand All @@ -238,6 +246,7 @@ func getOfflineMetadata(base, version, edition string) (*Metadata, error) {
}, nil
case "7.3":
return &Metadata{
Edition: edition,
Product: "portal-7.3-ga8",
BundleUrl: "https://github.com/liferay/liferay-portal/releases/download/7.3.7-ga8/liferay-ce-portal-tomcat-7.3.7-ga8-20210610183559721.tar.gz",
TargetPlatform: "7.3.7",
Expand All @@ -248,6 +257,7 @@ func getOfflineMetadata(base, version, edition string) (*Metadata, error) {
}, nil
case "7.2":
return &Metadata{
Edition: edition,
Product: "portal-7.2-ga2",
BundleUrl: "https://github.com/liferay/liferay-portal/releases/download/7.2.1-ga2/liferay-ce-portal-tomcat-7.2.1-ga2-20191111141448326.tar.gz",
TargetPlatform: "7.2.1-1",
Expand All @@ -258,6 +268,7 @@ func getOfflineMetadata(base, version, edition string) (*Metadata, error) {
}, nil
case "7.1":
return &Metadata{
Edition: edition,
Product: "portal-7.1-ga4",
BundleUrl: "https://github.com/liferay/liferay-portal/releases/download/7.1.3-ga4/liferay-ce-portal-tomcat-7.1.3-ga4-20190508171117552.tar.gz",
TargetPlatform: "7.1.3-1",
Expand All @@ -268,6 +279,7 @@ func getOfflineMetadata(base, version, edition string) (*Metadata, error) {
}, nil
case "7.0":
return &Metadata{
Edition: edition,
Product: "portal-7.0-ga7",
BundleUrl: "https://releases-cdn.liferay.com/portal/7.0.6-ga7/liferay-ce-portal-tomcat-7.0-ga7-20180507111753223.zip",
TargetPlatform: "7.0.6-2",
Expand Down

0 comments on commit 963167a

Please sign in to comment.