Documentation ¶
Index ¶
Constants ¶
View Source
const ( Gradle = "gradle" Maven = "maven" )
Build options
View Source
const (
XMLHeader = `<?xml version="1.0"?>` + "\n"
)
XMLHeader is the first line to be written in an XML file
Variables ¶
View Source
var PackageName string
Package name to use for the project, default is org.acme
Functions ¶
func GetGroupId ¶
Get the group ID (base package name) associated with the Liferay workspace
func IsSupportedJavaVersion ¶
Checks if the Java version is supported by Liferay
Types ¶
type GitHubAsset ¶
type GitHubAsset struct {
BrowserDownloadURL string `json:"browser_download_url"`
}
type GitHubRelease ¶
type GitHubRelease struct { TagName string `json:"tag_name"` Assets []GitHubAsset `json:"assets"` }
type Metadata ¶
type Metadata struct { Product string BundleUrl string TomcatVersion string TargetPlatform string DockerImage string GroupId string ArtifactId string Name string }
Metadata represents the basic informations associated with a Liferay project
func NewMetadata ¶
Returns metadata for a given project and the chosen Liferay version
type Pom ¶
type Pom struct { XMLName xml.Name `xml:"project"` Xmlns string `xml:"xmlns,attr"` Xsi string `xml:"xmlns:xsi,attr"` SchemaLocation string `xml:"xmlns:schemaLocation,attr"` ModelVersion string `xml:"modelVersion"` Parent struct { GroupId string `xml:"groupId"` ArtifactId string `xml:"artifactId"` Version string `xml:"version"` RelativePath string `xml:"relativePath"` } `xml:"parent"` GroupId string `xml:"groupId"` ArtifactId string `xml:"artifactId"` Name string `xml:"name"` Packaging string `xml:"packaging"` Modules struct { Module []string `xml:"module"` } `xml:"modules"` }
Pom represents the common structure of a Maven pom file
type WorkspacePom ¶
type WorkspacePom struct { XMLName xml.Name `xml:"project"` Xmlns string `xml:"xmlns,attr"` Xsi string `xml:"xmlns:xsi,attr"` SchemaLocation string `xml:"xmlns:schemaLocation,attr"` ModelVersion string `xml:"modelVersion"` Parent struct { GroupId string `xml:"groupId"` ArtifactId string `xml:"artifactId"` Version string `xml:"version"` RelativePath string `xml:"relativePath"` } `xml:"parent"` ArtifactId string `xml:"artifactId"` Name string `xml:"name"` Packaging string `xml:"packaging"` Modules struct { Module []string `xml:"module"` } `xml:"modules"` Properties struct { LiferayBomVersion string `xml:"liferay.bom.version"` LiferayDockerImage string `xml:"liferay.docker.image"` LiferayWorkspaceBundleURL string `xml:"liferay.workspace.bundle.url"` LiferayRepositoryURL string `xml:"liferay.repository.url"` ProjectBuildSourceEncoding string `xml:"project.build.sourceEncoding"` } `xml:"properties"` }
WorkspacePom represents the common structure of a parent Maven pom file in a Liferay Workspace
Click to show internal directories.
Click to hide internal directories.