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 ideaor./gradlew eclipse) -
Optional. You can add the
launchConfigblock to specify theJavaExectasks to be used to generate the.launchfiles for Eclipse and run configurations for IntelliJ.launchConfig { excludedTasks 'run' }The
launchConfigblock offers the following options:- (optional)
includedTasksa set ofJavaExectasks to be used by the plugin to generate the.launchfiles for Eclipse and the run configurations for IntelliJ. If it not specified, allJavaExectasks are included except for the ones specified inexcludedTasks. - (optional)
excludedTasksa set ofJavaExectasks 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.launchfiles. Triggered when:eclipseProjectis called.cleanEclipseLaunchConfig- deletes the generated.launchfiles. Triggered when:cleanEclipseProjectis called.ideaLaunchConfig- generates the XML in the IDEA workspace. Triggered when:ideaWorkspaceis 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.