Gradle plugin inspired by sbt-revolver. It provides re-run task which improves development turnaround by recompiling and restarting program in single click.
- Recompile and restart by single keypress
- Recompile and restart on source changes
Gradle 1.12+ (tested on 1.12, but may be supported by earlier versions), Java 1.7+
To get started you should add following snippet to your build.gradle
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'ru.shadam.grefresher:grefresher:0.1'
}
}
buildscript {
repositories {
// .. your preferred repos: mavenCentral() or jcenter() or some else (at least one is required for plugin's dependencies)
maven { url 'http://oss.jfrog.org/artifactory/oss-snapshot-local' }
}
dependencies {
classpath 'ru.shadam.grefresher:grefresher:0.2-SNAPSHOT'
}
}
apply plugin: 'ru.shadam.grefresher'
GRefresher provides grefresher extension to configure task
grefresher {
debug = (true | false) /* Enables debug */
debugSuspend = (true | false) /* Specifies if application waits for debugger on start */
debugPort = Integer /* Specifies port for listening to debugger */
mainClassName = String /* Main class name of your app goes here */
jvmArgs = [] /* list of jvm args to provide to JVM which will run your app */
systemProperties = [:] /* map of systemProperties. Each entry expands to following jvm arg: -D${key}=${value} */
scanInterval = Integer /* Source scanning period. 0 or null to disable scanning */
}
This project is licensed under MIT license