Class MavenProjectWrapper
- java.lang.Object
-
- org.apache.maven.project.MavenProject
-
- io.freefair.gradle.plugins.maven.plugin.wrappers.MavenProjectWrapper
-
- All Implemented Interfaces:
java.lang.Cloneable
public class MavenProjectWrapper extends MavenProject
MavenProject
implementation backed by agradle project
.
-
-
Field Summary
-
Fields inherited from class org.apache.maven.project.MavenProject
EMPTY_PROJECT_ARTIFACT_ID, EMPTY_PROJECT_GROUP_ID, EMPTY_PROJECT_VERSION
-
-
Constructor Summary
Constructors Constructor Description MavenProjectWrapper(ProjectLayout projectLayout, SourceSetContainer sourceSets, java.io.File pomFile)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.File
getBasedir()
java.util.List<java.lang.String>
getCompileSourceRoots()
java.io.File
getFile()
java.util.List<java.lang.String>
getTestCompileSourceRoots()
-
Methods inherited from class org.apache.maven.project.MavenProject
addAttachedArtifact, addCompileSourceRoot, addContributor, addDeveloper, addLicense, addLifecyclePhase, addMailingList, addProjectReference, addResource, addScriptSourceRoot, addTestCompileSourceRoot, addTestResource, attachArtifact, clone, createArtifacts, equals, getActiveProfiles, getArtifact, getArtifactId, getArtifactMap, getArtifacts, getAttachedArtifacts, getBuild, getBuildExtensions, getBuildPlugins, getCiManagement, getClassRealm, getCollectedProjects, getCompileArtifacts, getCompileClasspathElements, getCompileDependencies, getContextValue, getContributors, getDefaultGoal, getDependencies, getDependencyArtifacts, getDependencyManagement, getDescription, getDevelopers, getDistributionManagement, getDistributionManagementArtifactRepository, getExecutionProject, getExtensionArtifactMap, getExtensionArtifacts, getExtensionDependencyFilter, getFilters, getGoalConfiguration, getGroupId, getId, getInceptionYear, getInjectedProfileIds, getIssueManagement, getLicenses, getMailingLists, getManagedVersionMap, getModel, getModelVersion, getModulePathAdjustment, getModules, getName, getOrganization, getOriginalModel, getPackaging, getParent, getParentArtifact, getParentFile, getPlugin, getPluginArtifactMap, getPluginArtifactRepositories, getPluginArtifacts, getPluginManagement, getPluginRepositories, getPrerequisites, getProjectBuildingRequest, getProjectReferences, getProperties, getReleaseArtifactRepository, getRemoteArtifactRepositories, getRemotePluginRepositories, getRemoteProjectRepositories, getReportArtifactMap, getReportArtifacts, getReportConfiguration, getReporting, getReportPlugins, getRepositories, getResources, getRuntimeArtifacts, getRuntimeClasspathElements, getRuntimeDependencies, getScm, getScriptSourceRoots, getSnapshotArtifactRepository, getSystemArtifacts, getSystemClasspathElements, getSystemDependencies, getTestArtifacts, getTestClasspathElements, getTestDependencies, getTestResources, getUrl, getVersion, hashCode, hasLifecyclePhase, hasParent, isExecutionRoot, replaceWithActiveArtifact, setActiveProfiles, setArtifact, setArtifactFilter, setArtifactId, setArtifacts, setAttachedArtifacts, setBuild, setCiManagement, setClassRealm, setCollectedProjects, setCompileSourceRoots, setContextValue, setContributors, setDependencies, setDependencyArtifacts, setDescription, setDevelopers, setDistributionManagement, setExecutionProject, setExecutionRoot, setExtensionArtifacts, setExtensionDependencyFilter, setFile, setGroupId, setInceptionYear, setInjectedProfileIds, setIssueManagement, setLicenses, setMailingLists, setManagedVersionMap, setModel, setModelVersion, setName, setOrganization, setOriginalModel, setPackaging, setParent, setParentArtifact, setParentFile, setPluginArtifactRepositories, setPluginArtifacts, setPomFile, setProjectBuildingRequest, setReleaseArtifactRepository, setRemoteArtifactRepositories, setReportArtifacts, setReporting, setResolvedArtifacts, setScm, setScriptSourceRoots, setSnapshotArtifactRepository, setTestCompileSourceRoots, setUrl, setVersion, toString, writeModel, writeOriginalModel
-
-
-
-
Constructor Detail
-
MavenProjectWrapper
public MavenProjectWrapper(ProjectLayout projectLayout, SourceSetContainer sourceSets, java.io.File pomFile) throws java.io.IOException, XmlPullParserException
- Throws:
java.io.IOException
XmlPullParserException
-
-
Method Detail
-
getFile
public java.io.File getFile()
- Overrides:
getFile
in classMavenProject
-
getBasedir
public java.io.File getBasedir()
- Overrides:
getBasedir
in classMavenProject
-
getCompileSourceRoots
public java.util.List<java.lang.String> getCompileSourceRoots()
- Overrides:
getCompileSourceRoots
in classMavenProject
-
getTestCompileSourceRoots
public java.util.List<java.lang.String> getTestCompileSourceRoots()
- Overrides:
getTestCompileSourceRoots
in classMavenProject
-
-