GithubHelp home page GithubHelp logo

scubacabra / emacs-gradle-mode Goto Github PK

View Code? Open in Web Editor NEW
55.0 8.0 23.0 328 KB

minor mode for emacs to run gradle from emacs and not have to go to a terminal

Makefile 2.62% Gherkin 20.74% Emacs Lisp 76.64%

emacs-gradle-mode's Introduction

emacs-gradle-mode

[Build Status] (https://travis-ci.org/jacobono/emacs-gradle-mode)

Minor mode for emacs to run gradle from emacs and not have to go to a terminal!

Installation

Available on MELPA:

M-x package-install gradle-mode

Or you can just dump gradle-mode.el in your load path somewhere.

After installation, you can configure this mode to always be on with:

(require 'gradle-mode)

(gradle-mode 1)

Or just

M-x gradle-mode

when you are ready to use it.

Keybindings

  • C-c C-g b
    • run gradle build
  • C-c C-g t
    • run gradle test
  • C-c C-g s
    • run gradle test -Dsingle.test="user-supplied"
    • User supplies test to run from prompt
  • C-c C-g C-d b
    • run gradle build --daemon
  • C-c C-g C-d t
    • run gradle test --daemon
  • C-c C-g C-d s
    • run gradle -Dsingle.test="user-supplied" --daemon
    • User supplies test to run from prompt
  • C-c C-g d
    • run gradle "user-supplied" --daemon
    • User supplies tasks to run from prompt
  • C-c C-g r
    • run gradle "user-supplied"
    • User supplies tasks to run from prompt

The prefix C-d runs the command with gradle's daemon, or creates one if it is not already present.

Limitations

Currently, the only versions of emacs that are passing are 24.3. I plan on trying to look into it more, but both Travis and drone are barfing when I try and run the tests with <24.3.

Contribute

If you want to contribute, please fork and submit a pull request!

Changlog

0.5.5

  • gradlew support added. Will find nearest gradlew file and run if gradle-use-gradlew is turned on

0.5.4

  • CI is breaking from 0.5.4, only version of Emacs that tests execute appropriately is 24.3

0.5.3

  • losing dependencies on f and dash
  • gradle-project-find-dir uses locate-dominating-file instead of f-traverse-upwards

0.5.2

  • mode lighter string changed from gra to Gradle

0.5

  • First Release

emacs-gradle-mode's People

Contributors

flaviogranato avatar scubacabra avatar syohex avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

emacs-gradle-mode's Issues

gradelw is not working with emacs 24+?

I have been trying to get this to work for a couple of days now with no luck. It looks like locate-dominating-file is not supported anymore! I tried porting it from other sources with no luck!

Binding C-g causes issues

C-g is supposed to be reserved for quitting an interaction with emacs. Binding it in a key sequence causes at least these issues:

  • C-h k doesn't work for any such key bindings
  • Sometimes pressing the key sequence fails with a bizarre C-c C-g <mouse-movement> is undefined error in the modeline. (This should not be possible, because mouse movements are usually ignored, but somehow it's happening.)

Can you change the standard keybinding to something more compatible?

Create single project?

I have just discovered this repository, as it's grails-mode has entered MELPA. There is also
https://github.com/russel/Emacs-Groovy-Mode the groovy-mode of which is in MELPA, but the grails-mode of which was never picked up. Given E-Lisp activity in the Groovy/Grails community is strictly limited and it would be best to focus where the activity is, should this repository become the new focus of all Groovy Emacs activity?

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.