Class PackageData
java.lang.Object
uk.co.terminological.rjava.plugin.PackageData
Holds all the options for the maven plugin
- Author:
- terminological
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDate()
boolean
<debugMode>true</debugMode>
<defaultLogLevel>WARN</defaultLogLevel>
getDoi()
File[]
For example<rJavaOpts><rJavaOpt>-Xmx2048M</rJavaOpt></rJavaOpts>
getTitle()
getUrl()
getUrls()
getYear()
boolean
boolean
<installLocal>true</installLocal>
defaults to false, as requires build machine must have R and devtools installedboolean
boolean
<packageAllDependencies>true</packageAllDependencies>
defaults to false.boolean
<preCompileBinary>true</preCompileBinary>
defaults to true.void
setDefaultLogLevel
(String defaultLogLevel) void
setDescription
(String description) void
void
setInputFiles
(File[] inputFiles) void
setLicense
(String license) void
setMaintainerEmail
(String maintainerEmail) void
setMaintainerFamilyName
(String maintainerFamilyName) void
setMaintainerName
(String maintainerName) void
setPackageName
(String packageName) void
void
void
setVersion
(String version) boolean
<usePkgdown>true</usePkgdown>
build machine must have R and pkgdown installedboolean
<useJavadoc>true</useJavadoc>
build machine must have R and pkgdown installedboolean
<usePkgdown>true</usePkgdown>
build machine must have R and pkgdown installedboolean
<useRoxygen2>true</useRoxygen2>
defaults to false, as requires build machine must have R, roxygen and devtools installedboolean
<useShadePlugin>true</useShadePlugin>
defaults to false.
-
Constructor Details
-
PackageData
public PackageData()
-
-
Method Details
-
getMaintainerName
-
getMaintainerFamilyName
-
getMaintainerOrganisation
-
getGithubOrganisation
-
getGithubRepository
-
getMaintainerEmail
-
getMaintainerORCID
-
getDebugMode
public boolean getDebugMode()<debugMode>true</debugMode>
- Returns:
- the debug mode
-
getDefaultLogLevel
<defaultLogLevel>WARN</defaultLogLevel>
- Returns:
- the default log level
-
usePkgdown
public boolean usePkgdown()<usePkgdown>true</usePkgdown>
build machine must have R and pkgdown installed- Returns:
- pkgDown flag
-
useCmdCheck
public boolean useCmdCheck()<usePkgdown>true</usePkgdown>
build machine must have R and pkgdown installed- Returns:
- pkgDown flag
-
useRoxygen2
public boolean useRoxygen2()<useRoxygen2>true</useRoxygen2>
defaults to false, as requires build machine must have R, roxygen and devtools installed- Returns:
- roxygen2 flag
-
installLocal
public boolean installLocal()<installLocal>true</installLocal>
defaults to false, as requires build machine must have R and devtools installed- Returns:
- install local flag
-
preCompileBinary
public boolean preCompileBinary()<preCompileBinary>true</preCompileBinary>
defaults to true. if false then no precompiled files are included and the package will have to be compiled from java source on first load- Returns:
- precompile flag
-
packageAllDependencies
public boolean packageAllDependencies()<packageAllDependencies>true</packageAllDependencies>
defaults to false. only relevant if preCompileBinary is true (the default) if packageAllDependencies is true then a fat jar will be precompiled and included in the R package making the package large but completely self contained. This may be needed if the package depends on libraries that are not available to download from a public maven repository. If false then only this maven artifact is precompiled making the bundled java library code comparatively small. All other java dependencies declared in the maven file are fetched on first use of this library.- Returns:
- package fat jar flag
-
useShadePlugin
public boolean useShadePlugin()<useShadePlugin>true</useShadePlugin>
defaults to false. only relevant if packageAllDependencies is true (the default). if useShadePlugin is true then a shaded jar will be precompiled and included in the R package making the package large but completely self contained. This may be needed if the package depends on libraries that are not available to download from a public maven repository.- Returns:
- package shaded flag
-
useJavadoc
public boolean useJavadoc()<useJavadoc>true</useJavadoc>
build machine must have R and pkgdown installed- Returns:
- javadoc flag
-
getJavadocExecutable
-
needsLicense
public boolean needsLicense() -
getYear
-
getDate
-
hasRJavaOpts
public boolean hasRJavaOpts() -
getRJavaOpts
For example<rJavaOpts><rJavaOpt>-Xmx2048M</rJavaOpt></rJavaOpts>
- Returns:
- list of java options
-
setMaintainerName
-
setMaintainerFamilyName
-
setMaintainerEmail
-
getDescription
-
getLicense
-
getLicenseType
-
setDescription
-
setLicense
-
getInputFiles
-
setInputFiles
-
getPackageName
-
getTitle
-
getVersion
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
setPackageName
-
setTitle
-
setVersion
-
setDefaultLogLevel
-
getDoi
-
setDoi
-
getUrl
-
getUrls
-
setUrl
-