public final class IntellijKBean extends KBean
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
IML_SKIP_MODULE_XML_PROP |
java.nio.file.Path |
imlFile |
Constructor and Description |
---|
IntellijKBean() |
Modifier and Type | Method and Description |
---|---|
IntellijKBean |
addModule(java.lang.String moduleName,
JkIml.Scope scope)
Adds a module dependency to the IntelliJ project configuration with the specified scope.
|
IntellijKBean |
addProjectLibrary(java.lang.String xml) |
void |
allIml()
Deprecated.
Use
syncAll() instead. |
IntellijKBean |
configureIml(java.util.function.Consumer<JkIml> imlConfigurator)
Configures IML file that will be generated.
|
IntellijKBean |
excludeJekaLib()
In a multi-module project, a module that this one depends on might already include the Jeka dependency.
|
void |
iml()
Deprecated.
Use
sync() instead. |
void |
initProject() |
void |
modulesXml()
Generate modules.xml files
|
IntellijKBean |
replaceLibByModule(java.lang.String libName,
java.lang.String moduleName)
Replaces the specified library with the specified module.
|
IntellijKBean |
setModuleAttributes(java.lang.String moduleName,
JkIml.Scope scope,
java.lang.Boolean exported)
Sets the scope and exported attribute to the specified module.
|
IntellijKBean |
setSuggestedJdk(java.lang.String sdkName)
Sets the Jdk to be referenced in the generated iml file, if none is specified
by
jdkName . |
void |
sync() |
void |
syncAll() |
cleanOutput, find, getBaseDir, getBaseDirName, getBasePath, getOutputDir, getRunbase, init, load, toString
public static final java.lang.String IML_SKIP_MODULE_XML_PROP
public java.nio.file.Path imlFile
@Deprecated public void iml()
sync()
instead.public void sync()
public void modulesXml()
@Deprecated public void allIml()
syncAll()
instead.public void syncAll()
public void initProject()
public IntellijKBean configureIml(java.util.function.Consumer<JkIml> imlConfigurator)
public IntellijKBean excludeJekaLib()
public IntellijKBean replaceLibByModule(java.lang.String libName, java.lang.String moduleName)
JkIml.Component#replaceLibByModule(String, String)
public IntellijKBean addModule(java.lang.String moduleName, JkIml.Scope scope)
moduleName
- The name of the module to be added as a dependency.scope
- The scope of the module dependency, defined by JkIml.Scope
.IntellijKBean
for method chaining.public IntellijKBean setModuleAttributes(java.lang.String moduleName, JkIml.Scope scope, java.lang.Boolean exported)
JkIml.Component#setModuleAttributes(String, JkIml.Scope, Boolean)
public IntellijKBean setSuggestedJdk(java.lang.String sdkName)
jdkName
.sdkName
- The JDK name as exists in Intellij SDKs.public IntellijKBean addProjectLibrary(java.lang.String xml)