Kotlin run configurations
This topic summarizes the run configurations available for Kotlin. Each table provides keys that are available within a run configuration and their descriptions.
jps-build
Build JVM modules described in IntelliJ project model
| Custom environment variables for the process in the form of a JSON object. To define an environment variable, add a property, where the key is the variable name and the value is the value of the variable, for example:
"environment": {
"TEMP_DIR": "/home/user/temp",
"GENERATE_RANDOM_PASSWORD": "true"
}
|
| Names of other configurations which will be executed before this configuration, for example: |
| Working directory for this run configuration. |
| When set to |
| Indicates whether to compile test source code Default value: |
| Indicates whether incremental compilation caches can be used Default value: |
| Specifies the name of the module to be built (together with its dependencies) Default value: |
| Specifies files to be compiled Default value: |
| Indicates whether independent modules can be compiled in parallel Default value: |
| Additional JVM options for the JPS process in the form of a JSON array, for example, Default value: |
Example:
jps-run
Run JVM applications described in IntelliJ project model
(required) | Class with the main method to run |
(required) | Name of the JPS module whose compilation output with dependencies will be added to the runtime classpath |
| Custom environment variables for the process in the form of a JSON object. To define an environment variable, add a property, where the key is the variable name and the value is the value of the variable, for example:
"environment": {
"TEMP_DIR": "/home/user/temp",
"GENERATE_RANDOM_PASSWORD": "true"
}
|
| Names of other configurations which will be executed before this configuration, for example: |
| Working directory for this run configuration. |
| When set to |
| Command-line arguments for the Java program. The value is a JSON array, for example, Default value: |
| Indicates whether test sources compilation output should be included in the runtime classpath Default value: |
| JVM options in the form of a JSON array, for example, Default value: |
| Show process output in PTY Default value: |
Example:
jps-test
Runs JVM tests described in IntelliJ project model.
(required) | Name of the JPS module whose compilation output with test dependencies will be added to the runtime classpath |
| Custom environment variables for the process in the form of a JSON object. To define an environment variable, add a property, where the key is the variable name and the value is the value of the variable, for example:
"environment": {
"TEMP_DIR": "/home/user/temp",
"GENERATE_RANDOM_PASSWORD": "true"
}
|
| Names of other configurations which will be executed before this configuration, for example: |
| Working directory for this run configuration. |
| When set to |
| JVM options, including test runner main class with arguments. The value is a JSON array, for example, Default value: |
| Show process output in PTY Default value: |
Example:
maven
Run Maven commands
(required) | Maven goals and phases to run. |
| Custom environment variables for the process in the form of a JSON object. To define an environment variable, add a property, where the key is the variable name and the value is the value of the variable, for example:
"environment": {
"TEMP_DIR": "/home/user/temp",
"GENERATE_RANDOM_PASSWORD": "true"
}
|
| Names of other configurations which will be executed before this configuration, for example: |
| Working directory for this run configuration. |
| When set to |
| Maven command-line arguments. Default value: |
Example:
maven-run
Run JVM applications using Maven exec plugin commands
(required) | Class with the main method to run. It will be passed to Maven via |
| Custom environment variables for the process in the form of a JSON object. To define an environment variable, add a property, where the key is the variable name and the value is the value of the variable, for example:
"environment": {
"TEMP_DIR": "/home/user/temp",
"GENERATE_RANDOM_PASSWORD": "true"
}
|
| Names of other configurations which will be executed before this configuration, for example: |
| Working directory for this run configuration. |
| When set to |
| Java application arguments. They will be passed to Maven via the Default value: |
| Maven project to build and run. A project can be specified with Default value: |
Example:
gradle
Run Gradle tasks
(required) | Gradle tasks to run. The value is a JSON array, for example, |
| Custom environment variables for the process in the form of a JSON object. To define an environment variable, add a property, where the key is the variable name and the value is the value of the variable, for example:
"environment": {
"TEMP_DIR": "/home/user/temp",
"GENERATE_RANDOM_PASSWORD": "true"
}
|
| Names of other configurations which will be executed before this configuration, for example: |
| Working directory for this run configuration. |
| When set to |
| Gradle command-line arguments. The value is a JSON array, for example, Default value: |
| Gradle scripts to be "injected" into Gradle execution for this configuration run. The value is a JSON structure ("temp file prefix" : "text script content"). For example: Default value: |
Example:
spring-boot
Spring Boot run configuration
(required) | Class with the main() method |
(required) | The module whose classpath should be used to run the application |
| Custom environment variables for the process in the form of a JSON object. To define an environment variable, add a property, where the key is the variable name and the value is the value of the variable, for example:
"environment": {
"TEMP_DIR": "/home/user/temp",
"GENERATE_RANDOM_PASSWORD": "true"
}
|
| Names of other configurations which will be executed before this configuration, for example: |
| Working directory for this run configuration. |
| When set to |
| Active profiles in the form of a JSON array, for example, Default value: |
| Override any configuration property. The value is a JSON array of objects, each object consisting of the Default value: |
| Command-line arguments for your application. The value is a JSON array, for example, Default value: |
| Enable logging of the debug output. Equivalent of the Default value: |
| Enable the Default value: |
| Do not show the Spring banner in the command line. Equivalent of the Default value: |
| JVM options in the form of a JSON array, for example, Default value: |
| Show application process output in PTY (true) or in read-only view (false) Default value: |
Example: