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.
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), 2024-09 (4.33), 2024-12 (4.34), 2025-03 (4.35)
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
Date | Ranking | Installs | Clickthroughs |
---|---|---|---|
February 2025 | 490/609 | 3 | 14 |
January 2025 | 595/654 | 2 | 12 |
December 2024 | 557/654 | 3 | 6 |
November 2024 | 507/658 | 6 | 11 |
October 2024 | 478/663 | 8 | 8 |
September 2024 | 417/642 | 14 | 12 |
August 2024 | 464/641 | 7 | 27 |
July 2024 | 458/663 | 9 | 11 |
June 2024 | 426/681 | 13 | 12 |
May 2024 | 475/682 | 9 | 10 |
April 2024 | 482/687 | 9 | 13 |
March 2024 | 479/694 | 10 | 9 |