public class JavaProject extends Object implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
JavaProject.JavaProjectBuilder |
| Constructor and Description |
|---|
JavaProject(String name,
String groupId,
String artifactId,
String version,
File outputDirectory,
File baseDirectory,
File buildDirectory,
File buildPackageDirectory,
Properties properties,
List<String> compileClassPathElements,
List<Dependency> dependencies,
List<Dependency> dependenciesWithTransitive,
List<Plugin> plugins,
String site,
String description,
String organizationName,
String documentationUrl,
String buildFinalName,
File artifact,
File localRepositoryBaseDirectory,
String packaging,
String issueManagementSystem,
String issueManagementUrl,
String url,
String scmUrl,
String scmTag,
List<Maintainer> maintainers) |
| Modifier and Type | Method and Description |
|---|---|
static JavaProject.JavaProjectBuilder |
builder() |
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
File |
getArtifact()
Generated Artifact File for the project
|
String |
getArtifactId()
Maven artifact ID
|
File |
getBaseDirectory()
Project's base directory
|
File |
getBuildDirectory()
Directory where all build files are located (e.g.
|
String |
getBuildFinalName()
Filename (excluding the extension, and with no path information) that the produced project artifact will be called.
|
File |
getBuildPackageDirectory()
Directory where build packages or artifacts (jar/war/ear) are output.
|
List<String> |
getCompileClassPathElements()
Project Classpath entries.
|
List<Dependency> |
getDependencies()
Direct dependencies for the project.
|
List<Dependency> |
getDependenciesWithTransitive()
All dependencies (including transitive) for the project
|
String |
getDescription()
Project's description.
|
String |
getDocumentationUrl()
URL to the project's documentation.
|
String |
getGroupId()
Maven group ID
|
String |
getIssueManagementSystem()
Name of the issue management system for the project (e.g.
|
String |
getIssueManagementUrl()
URL for the issue management system used by the project.
|
File |
getLocalRepositoryBaseDirectory()
Directory for the project's local repository.
|
List<Maintainer> |
getMaintainers()
List of Maintainers involved with the project.
|
String |
getName()
Project's name.
|
String |
getOrganizationName()
Full name of the project's organization.
|
File |
getOutputDirectory()
Directory where compiled application classes are located (e.g.
|
String |
getPackaging()
Project's packaging type.
|
List<Plugin> |
getPlugins()
List of plugins (e.g.
|
Properties |
getProperties()
Project configuration properties to be used in generators and enrichers
|
String |
getScmTag()
Tag of the project's current code.
|
String |
getScmUrl()
URL for the project's browsable SCM repository.
|
String |
getSite()
URL to the project's homepage.
|
String |
getUrl()
URL for website of the project.
|
String |
getVersion()
Maven version
|
int |
hashCode() |
void |
setArtifact(File artifact)
Generated Artifact File for the project
|
void |
setArtifactId(String artifactId)
Maven artifact ID
|
void |
setBaseDirectory(File baseDirectory)
Project's base directory
|
void |
setBuildDirectory(File buildDirectory)
Directory where all build files are located (e.g.
|
void |
setBuildFinalName(String buildFinalName)
Filename (excluding the extension, and with no path information) that the produced project artifact will be called.
|
void |
setBuildPackageDirectory(File buildPackageDirectory)
Directory where build packages or artifacts (jar/war/ear) are output.
|
void |
setCompileClassPathElements(List<String> compileClassPathElements)
Project Classpath entries.
|
void |
setDependencies(List<Dependency> dependencies)
Direct dependencies for the project.
|
void |
setDependenciesWithTransitive(List<Dependency> dependenciesWithTransitive)
All dependencies (including transitive) for the project
|
void |
setDescription(String description)
Project's description.
|
void |
setDocumentationUrl(String documentationUrl)
URL to the project's documentation.
|
void |
setGroupId(String groupId)
Maven group ID
|
void |
setIssueManagementSystem(String issueManagementSystem)
Name of the issue management system for the project (e.g.
|
void |
setIssueManagementUrl(String issueManagementUrl)
URL for the issue management system used by the project.
|
void |
setLocalRepositoryBaseDirectory(File localRepositoryBaseDirectory)
Directory for the project's local repository.
|
void |
setMaintainers(List<Maintainer> maintainers)
List of Maintainers involved with the project.
|
void |
setName(String name)
Project's name.
|
void |
setOrganizationName(String organizationName)
Full name of the project's organization.
|
void |
setOutputDirectory(File outputDirectory)
Directory where compiled application classes are located (e.g.
|
void |
setPackaging(String packaging)
Project's packaging type.
|
void |
setPlugins(List<Plugin> plugins)
List of plugins (e.g.
|
void |
setProperties(Properties properties)
Project configuration properties to be used in generators and enrichers
|
void |
setScmTag(String scmTag)
Tag of the project's current code.
|
void |
setScmUrl(String scmUrl)
URL for the project's browsable SCM repository.
|
void |
setSite(String site)
URL to the project's homepage.
|
void |
setUrl(String url)
URL for website of the project.
|
void |
setVersion(String version)
Maven version
|
public JavaProject(String name, String groupId, String artifactId, String version, File outputDirectory, File baseDirectory, File buildDirectory, File buildPackageDirectory, Properties properties, List<String> compileClassPathElements, List<Dependency> dependencies, List<Dependency> dependenciesWithTransitive, List<Plugin> plugins, String site, String description, String organizationName, String documentationUrl, String buildFinalName, File artifact, File localRepositoryBaseDirectory, String packaging, String issueManagementSystem, String issueManagementUrl, String url, String scmUrl, String scmTag, List<Maintainer> maintainers)
public static JavaProject.JavaProjectBuilder builder()
public String getName()
public String getGroupId()
public String getArtifactId()
public String getVersion()
public File getOutputDirectory()
public File getBaseDirectory()
public File getBuildDirectory()
public File getBuildPackageDirectory()
target in case of Maven and build/libs in case of Gradle.
This directory is used by generators and other build related tools to locate the files and packages to be included in the Container Image.
Please note that it's different from buildDirectory or outputDirectory which may point to directory used by build tool or generated classes.
public Properties getProperties()
public List<String> getCompileClassPathElements()
public List<Dependency> getDependencies()
public List<Dependency> getDependenciesWithTransitive()
public List<Plugin> getPlugins()
public String getSite()
public String getDescription()
public String getOrganizationName()
public String getDocumentationUrl()
public String getBuildFinalName()
(e.g. The default value for Maven is ${artifactId}-${version}).
public File getArtifact()
public File getLocalRepositoryBaseDirectory()
public String getPackaging()
(e.g. war, jar, ear...)
public String getIssueManagementSystem()
public String getIssueManagementUrl()
public String getUrl()
public String getScmUrl()
public String getScmTag()
public List<Maintainer> getMaintainers()
public void setName(String name)
name - New name for the project.public void setGroupId(String groupId)
groupId - New maven group ID for the project.public void setArtifactId(String artifactId)
artifactId - New maven artifact ID for the project.public void setVersion(String version)
version - New maven version for the project.public void setOutputDirectory(File outputDirectory)
outputDirectory - New output directory for the project.public void setBaseDirectory(File baseDirectory)
baseDirectory - New base directory for the project.public void setBuildDirectory(File buildDirectory)
buildDirectory - New build directory for the project.public void setBuildPackageDirectory(File buildPackageDirectory)
target in case of Maven and build/libs in case of Gradle.
This directory is used by generators and other build related tools to locate the files and packages to be included in the Container Image.
Please note that it's different from buildDirectory or outputDirectory which may point to directory used by build tool or generated classes.
buildPackageDirectory - directory where the project artifacts and packages are outputpublic void setProperties(Properties properties)
properties - New configuration properties for the project.public void setCompileClassPathElements(List<String> compileClassPathElements)
compileClassPathElements - New classpath entries for the project.public void setDependencies(List<Dependency> dependencies)
dependencies - New direct dependencies for the project.public void setDependenciesWithTransitive(List<Dependency> dependenciesWithTransitive)
dependenciesWithTransitive - New dependencies for the project.public void setPlugins(List<Plugin> plugins)
plugins - New plugins for the project.public void setSite(String site)
site - New homepage for the project.public void setDescription(String description)
description - New description for the project.public void setOrganizationName(String organizationName)
organizationName - New organization name for the project.public void setDocumentationUrl(String documentationUrl)
documentationUrl - New documentation URL for the project.public void setBuildFinalName(String buildFinalName)
(e.g. The default value for Maven is ${artifactId}-${version}).
buildFinalName - New filename for the project's produced artifact.public void setArtifact(File artifact)
artifact - New project's generated artifact file.public void setLocalRepositoryBaseDirectory(File localRepositoryBaseDirectory)
localRepositoryBaseDirectory - New directory for the project's local repository.public void setPackaging(String packaging)
(e.g. war, jar, ear...)
packaging - New packaging type for the project.public void setIssueManagementSystem(String issueManagementSystem)
issueManagementSystem - New issue management system for the project.public void setIssueManagementUrl(String issueManagementUrl)
issueManagementUrl - New issue management URL for the project.public void setUrl(String url)
url - URL for website of project.public void setScmUrl(String scmUrl)
scmUrl - New SCM URL for the project.public void setScmTag(String scmTag)
scmTag - New SCM tag for the project.public void setMaintainers(List<Maintainer> maintainers)
maintainers - New maintainers for the project.protected boolean canEqual(Object other)
Copyright © 2021. All rights reserved.