bee.api
Project
Project
()
getRoot
()
psychopath.Directory
psychopath.Directory |
A root directory of this project. |
Return project root directory.
getGroup
()
String
String |
The product group. |
Return product group.
getProduct
()
String
String |
The product name. |
Return product name.
getVersion
()
String
String |
The product version. |
Return product version.
product
(CharSequence
group
, CharSequence
product
, CharSequence
version
)
void
CharSequence
group
, CharSequence
product
, CharSequence
version
)CharSequence group |
A product group. |
CharSequence product |
A product name. |
CharSequence version |
A product version. |
Declare product package, name and version.
getDescription
()
String
String |
The product description. |
Return product description.
describe
(String
description
)
void
String
description
)String description |
A product description. |
Declare product description.
license
()
License
License |
Returns project license.
license
(License
license
)
void
License
license
)License license |
Set product license.
licenser
(int
licensedFrom
, String
licensedBy
)
void
int
licensedFrom
, String
licensedBy
)int licensedFrom |
|
String licensedBy |
Add product licenser.
licenser
(int
licensedFrom
, int
licensedTo
, String
licensedBy
)
void
int
licensedFrom
, int
licensedTo
, String
licensedBy
)int licensedFrom |
|
int licensedTo |
|
String licensedBy |
Add product licenser.
getEncoding
()
Charset
Charset |
Returns project encoding.
encoding
(Charset
encoding
)
void
Charset
encoding
)Charset encoding |
Set product encoding.
hasDependency
(String
projectName
, String
productName
)
boolean
String
projectName
, String
productName
)String projectName |
A project name to search. |
String productName |
A product name to search. |
boolean |
A search result. |
Check whether this project depends on the specified product or not.
getDependency
(Scope
scopes
)
SetLibrary
Scope
scopes
)Library
Scope scopes |
|
Set |
Resolve all dependencies for the specified scope.
getLibrary
(String
projectName
, String
productName
)
SetLibrary
String
projectName
, String
productName
)Library
String projectName |
|
String productName |
|
Set |
Find Library
by name.
getLibrary
(String
projectName
, String
productName
, String
version
)
SetLibrary
String
projectName
, String
productName
, String
version
)Library
String projectName |
|
String productName |
|
String version |
|
Set |
Find Library
by name.
getClasspath
()
SetString
String
Set |
Gather all classpaths needed to run this project.
requireLombok
()
Library
Library |
Declare dependency against to Lombok library.
require
(String
projectName
, String
productName
)
Library
String
projectName
, String
productName
)String projectName |
A project name. |
String productName |
A product name. |
Library |
A dependency. |
Declare dependency for latest version.
require
(String
projectName
, String
productName
, String
version
)
Library
String
projectName
, String
productName
, String
version
)String projectName |
A project name. |
String productName |
A product name. |
String version |
A product version. |
Library |
A dependency. |
Declare dependency.
require
(String
projectName
, String
productName
, String
classifier
, String
version
)
Library
String
projectName
, String
productName
, String
classifier
, String
version
)String projectName |
A project name. |
String productName |
A product name. |
String classifier |
A product classifier. |
String version |
A product version. |
Library |
A dependency. |
Declare dependency.
getJavaSourceVersion
()
SourceVersion
SourceVersion |
A Java version requirement. |
Returns Java version requirement.
getJavaRequiredVersion
()
SourceVersion
SourceVersion |
A Java version requirement. |
Returns Java version requirement.
require
(SourceVersion
version
)
void
SourceVersion
version
)SourceVersion version |
A Java version to require. |
Declare Java version requirement.
require
(SourceVersion
sourceVersion
, SourceVersion
requiredJavaVersion
)
void
SourceVersion
sourceVersion
, SourceVersion
requiredJavaVersion
)SourceVersion sourceVersion |
A Java source version to require. |
SourceVersion requiredJavaVersion |
A Java target version to require. |
Declare Java version requirement.
unrequire
(String
projectName
, String
productName
)
void
String
projectName
, String
productName
)String projectName |
A project name. |
String productName |
A product name. |
Exclude the specified library from transitive dependency resolution.
repository
(String
uri
)
void
String
uri
)String uri |
Add new repository by URI.
getInput
()
psychopath.Directory
psychopath.Directory |
The base input directory. |
Get the bese directory of input.
setInput
(psychopath.Directory
input
)
void
psychopath.Directory
input
)psychopath.Directory input |
The base input directory to set. |
Set base directory of input. null
will set default directory. A relative path
will be resolved from project root directory.
setInput
(String
input
)
void
String
input
)String input |
The base input directory to set. |
Set base directory of input. null
will set default directory. A relative path
will be resolved from project root directory.
getOutput
()
psychopath.Directory
psychopath.Directory |
The base output directory. |
Get the bese directory of output.
setOutput
(psychopath.Directory
output
)
void
psychopath.Directory
output
)psychopath.Directory output |
The base output directory to set. |
Set base directory of output. null
will set default directory. A relative path
will be resolved from project root directory.
setOutput
(String
output
)
void
String
output
)String output |
The base output directory to set. |
Set base directory of output. null
will set default directory. A relative path
will be resolved from project root directory.
getSources
()
psychopath.Directory
psychopath.Directory |
Returns source directories.
getSourceSet
()
kiss.Signalpsychopath.Directory
psychopath.Directory
kiss.Signal |
Returns source directories.
getClasses
()
psychopath.Directory
psychopath.Directory |
Returns class directory.
getTestSources
()
psychopath.Directory
psychopath.Directory |
Returns test source directories.
getTestSourceSet
()
kiss.Signalpsychopath.Directory
psychopath.Directory
kiss.Signal |
Returns test source directories.
getTestClasses
()
psychopath.Directory
psychopath.Directory |
Returns test class directory.
getProjectSources
()
psychopath.Directory
psychopath.Directory |
Returns project source directories.
getProjectSourceSet
()
kiss.Signalpsychopath.Directory
psychopath.Directory
kiss.Signal |
Returns project source directories.
getProjectClasses
()
psychopath.Directory
psychopath.Directory |
Returns project class directory.
getProjectDefinition
()
psychopath.File
psychopath.File |
Returns project source file.
getProjectDefintionClass
()
psychopath.File
psychopath.File |
Returns project source file.
getAnnotationProcessors
()
Setpsychopath.Location
psychopath.Location
Set |
Resolve all annotation processor for this project.
locateJar
()
psychopath.File
psychopath.File |
Locate product jar file.
locateSourceJar
()
psychopath.File
psychopath.File |
Locate product source jar file.
locateJavadocJar
()
psychopath.File
psychopath.File |
Locate product javadoc jar file.
getVersionControlSystem
()
VCS
VCS |
A uri of version control system. |
Get the VCS.
versionControlSystem
(String
uri
)
void
String
uri
)String uri |
A uri of version control system. |
Locate VCS.
config
(ClassT
task
, ConsumerC
configuration
)
void
ClassT
task
, ConsumerC
configuration
)T
|
|
C |
|
Class task |
|
Consumer configuration |
config
(ClassT
task
)
C
ClassT
task
)T
|
|
C |
|
Class task |
|
C |
asLibrary
()
Library
Library |
Convert this project to Library
.
associate
(ClassA
type
)
A
ClassA
type
)A |
|
Class type |
|
A |
Retrieve the project related object of the specified type.
hashCode
()
int
int |
equals
(Object
obj
)
boolean
Object
obj
)Object obj |
|
boolean |
toBeeDefinition
()
ListString
String
List |
Returns literal project definition.
toMavenDefinition
()
String
String |
Returns literal of POM file.
ref
(String
file
)
CharSequence
String
file
)String file |
A path to the target text file. |
CharSequence |
A file contents. |
Return the reference of the specified file's text.
ref
(Path
file
)
CharSequence
Path
file
)Path file |
A target text file. |
CharSequence |
A file contents. |
Return the reference of the specified file's text.
ref
(psychopath.File
file
)
CharSequence
psychopath.File
file
)psychopath.File file |
A target text file. |
CharSequence |
A file contents. |
Return the reference of the specified file's text.