Giter VIP home page Giter VIP logo

jbang-idea's Introduction

jbang-idea-plugin

Build Version Downloads

JBang plugin is a plugin for IntelliJ IDEA to integrate JBang.

The following features are available:

  • JBang project wizard: create JBang project by IDEA project wizard
  • JSON Schema for jbang-catalog.json and code completion for script-ref
  • JDKs sync with JBang: sync JDKs from JBang to IntelliJ IDEA
  • JBang script creation from file templates: New -> JBang Script
  • JBang directives completion: for example //DEPS, //SOURCES
  • Sync Dependencies between JBang and Gradle
  • Sync Dependencies to IDEA's module when using idea . to open JBang project
  • JBang Run Line Marker for ///usr/bin/env jbang
  • Java scratch file support
  • Run Configuration support: run JBang script by right click
    • file name end with '.java', '.kt', '.groovy' or '.jsh'
    • file code should contain ///usr/bin/env jbang or //DEPS
  • GAV completion for //DEPS
    • text without colon - full text search google.guava, and words seperated by . or -
    • text with one colon - artifact search based on groupId com.google.guava:
    • text with two colons - version search based on groupId and artifactId com.google.guava:guava:

Sync Dependencies between JBang and Gradle

Right lick JBang script and Choose Sync JBang DEPS and sync dependencies between JBang script and build.gradle.

Limitations:

  • Gradle Groovy support now: only detect build.gradle
  • After sync, and you need to click Refresh floating button if without Auto-Reloading enabled
  • Dependency remove detection: if you want to delete dependencies, and you should delete lines in build.gradle and script file by hand.

Install

Preferences > Plugins > Marketplace > Search for "jbang" > Install Plugin > Restart IntelliJ IDEA

Build

$ # JDK 11 required
$ ./gradlew -x test patchPluginXml buildPlugin

Preferences > Plugins > Gear Icon Right Click > Install Plugin from Disk > Choose $PROJECT_DIR/build/distributions/jbang-idea-plugin-0.x.0.zip > Restart IntelliJ IDEA

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.