public final class IntellijKBean extends KBean
Modifier and Type | Class and Description |
---|---|
static class |
IntellijKBean.SyncFocus
Determines which IntelliJ `.iml` file should be synced when there are
two `.iml` files present:
One for
jeka-src
One for the project
The SyncFocus specifies which of these `.iml` files will be prioritized
for synchronization. |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
IML_SKIP_MODULE_XML_PROP |
java.nio.file.Path |
imlFile |
java.lang.String |
suggestedJdkName
Deprecated.
|
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.
|
void |
allIml()
Deprecated.
Use
syncAll() instead. |
IntellijKBean |
configureIml(java.util.function.Consumer<JkIml> imlCustomizer)
Deprecated.
use
customizeIml(Consumer) instead |
IntellijKBean |
customizeIml(java.util.function.Consumer<JkIml> imlCustomizer)
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.
|
java.nio.file.Path |
findRegularImlFilePath() |
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.
|
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 java.lang.String suggestedJdkName
@Deprecated public void iml()
sync()
instead.public void sync()
public void modulesXml()
@Deprecated public void allIml()
syncAll()
instead.public void syncAll()
public void initProject()
@Deprecated public IntellijKBean configureIml(java.util.function.Consumer<JkIml> imlCustomizer)
customizeIml(Consumer)
insteadpublic IntellijKBean customizeIml(java.util.function.Consumer<JkIml> imlCustomizer)
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 java.nio.file.Path findRegularImlFilePath()