WARNING: This project is not used internally at Palantir and is no longer maintained. It will soon be archived.
A Gradle Plugin that creates .launch
files for Eclipse and Run Configurations for IntelliJ for your project's
JavaExec
tasks.
-
Apply the plugin
buildscript { repositories { maven { url "https://plugins.gradle.org/m2/" } } dependencies { classpath "com.palantir.launchconfig:gradle-launch-config-plugin:<LaunchConfigVersion>" } } apply plugin: "com.palantir.launch-config"
Alternatively:
plugins { id "com.palantir.launch-config" version "<LaunchConfigVersion>" }
-
Call the respective IDE commands (i.e.
./gradlew idea
or./gradlew eclipse
) -
Optional. You can add the
launchConfig
block to specify theJavaExec
tasks to be used to generate the.launch
files for Eclipse and run configurations for IntelliJ.launchConfig { excludedTasks 'run' }
The
launchConfig
block offers the following options:- (optional)
includedTasks
a set ofJavaExec
tasks to be used by the plugin to generate the.launch
files for Eclipse and the run configurations for IntelliJ. If it not specified, allJavaExec
tasks are included except for the ones specified inexcludedTasks
. - (optional)
excludedTasks
a set ofJavaExec
tasks that are excluded from the launch file or the run configuration creation.
- (optional)
The tasks are only added if their matching IDE plugin is applied.
eclipseLaunchConfig
- creates.launch
files. Triggered when:eclipseProject
is called.cleanEclipseLaunchConfig
- deletes the generated.launch
files. Triggered when:cleanEclipseProject
is called.ideaLaunchConfig
- generates the XML in the IDEA workspace. Triggered when:ideaWorkspace
is called.
Before working on the code, if you plan to contribute changes, please read the CONTRIBUTING document.
This project is made available under the Apache 2.0 License.