JBang Eclipse Integration

Add this URL to your Eclipse Installation to reach this solution's update site.

2022-06 (4.24), 2022-03 (4.23), 2021-12 (4.22), 2021-09 (4.21), 2021-06 (4.20), 2021-03 (4.19), 2020-12 (4.18), 2020-09 (4.17), 2020-06 (4.16), 2020-03 (4.15), 2019-12 (4.14), 2019-09 (4.13), 2019-06 (4.12), 2019-03 (4.11), 2022-09 (4.25), 2022-12 (4.26), 2023-03 (4.27), 2023-06 (4.28), 2023-09 (4.29), 2023-12 (4.30), 2024-03 (4.31), 2024-06 (4.32)

https://github.com/jbangdev/jbang-eclipse/releases/download/latest/

Learn more...
Solution Description

This experimental plugin aims to let you author JBang scripts in Eclipse with ease.

Features:

  • Import JBang Scripts as projects
  • Automatically configures JDKs managed by JBang
  • Synchronize JBang Dependencies to existing projects
  • Automatic configuration of Annotation Processors
  • Validation of JBang scripts on file save
  • JBang runtime management

Cuurently supports 
- //DEPS@Grab dependencies
- //JAVA version
- //SOURCES additional sources 

By default, the plugin will try to find JBang from the PATH, from ~/.jbang/bin or ~/.sdkman/candidates/jbang/current/bin/jbang. Alternate locations can be defined in Preferences > JBang > Installations.

This is a very Alpha-quality project. Moderate your expectations.

Import JBang Script as project

Import JBang scripts in Eclipse: Import Project... > JBang > JBang script.

A project named after the script file will be created in the current workspace, that will link to the real script file.

Synchronize JBang

The Synchronize JBang command is available when right-clicking on a JBang script in an existing project. If the script belongs to a non-Java project, the Java nature will be added to that project. 
The source folder containing the JBang file will automatically be added to the project's classpath. The JBang Dependencies classpath container will be added to the classpath as well.

Caveats:

  • JBang files and dependencies will leak to the project's main and test-scoped sources
  • the project's main files and dependencies will leak to the JBang script
  • If the script file is at the root of the project and there are other source folders nested beneath that root, compilation errors will occur in those folders
  • Other build tools (m2e/buildship) might conflict with the classpath changes. Typically, Updating the Maven project configuration would remove the JBang source folder and its classpath container. Re-running Synchronize JBang will be necessary to get completion and validation in JBang scripts.

 

Categories: IDE, Tools

Tags: JBang

Additional Details

Eclipse Versions: 2022-06 (4.24), 2022-03 (4.23), 2021-12 (4.22), 2021-09 (4.21), 2021-06 (4.20), 2021-03 (4.19), 2020-12 (4.18), 2020-09 (4.17), 2020-06 (4.16), 2020-03 (4.15), 2019-12 (4.14), 2019-09 (4.13), 2019-06 (4.12), 2019-03 (4.11), 2022-09 (4.25), 2022-12 (4.26), 2023-03 (4.27), 2023-06 (4.28), 2023-09 (4.29), 2023-12 (4.30), 2024-03 (4.31), 2024-06 (4.32)

Platform Support: Windows, Mac, Linux/GTK

Organization Name: jbang.dev

Development Status: Alpha

Date Created: Monday, April 19, 2021 - 14:05

License: EPL 2.0

Date Updated: Friday, October 6, 2023 - 10:50

Submitted by: Fred Bricon

Screenshot
Date Ranking Installs Clickthroughs
June 2024 482/640 5 4
May 2024 475/682 9 10
April 2024 482/687 9 13
March 2024 479/694 10 9
February 2024 515/687 6 5
January 2024 480/691 8 7
December 2023 457/671 11 6
November 2023 504/686 8 8
October 2023 492/673 9 11
September 2023 492/663 8 6
August 2023 548/673 5 7
July 2023 509/668 6 4
View Data for all Listings

Unsuccessful Installs

Unsuccessful Installs in the last 7 Days: 0

Download last 500 errors (CSV)

Marketplace Drag to Install Button

By adding the following code below to your website you will be able to add an install button for JBang Eclipse Integration.

HTML Code:

Markdown Syntax:

Output:

Drag to your running Eclipse* workspace. *Requires Eclipse Marketplace Client