Skip to content

DazHudson/Ninja-Gradle-Plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Gradle Superdev Plugin for Ninja.

contextPath = Jetty context path.

port = Jetty Port.

scanDirs = Directories to watch.

watchResources = If files in resources change, restart.

hotswapEnabled = true if hot class loading required.

debugPort = JVM debug port to listen on.

suspend = If true await for the debugger to attach.

    
    contextPath = '/'
    port = 8080
    scanDirs = sourceSets.main.runtimeClasspath.getFiles()
    watchResources = true
    hotswapEnable = false
    debugEnabled = true
    debugPort = 5006
    //suspend = true
}
    
    // Only need Spring Loaded in hot mode
    dependencies {
           compile "org.springframework:springloaded:1.2.0.RELEASE" 
    }
    
    contextPath = '/'
    port = 8080
    scanDirs = sourceSets.main.runtimeClasspath.getFiles()
    watchResources = false
    hotswapEnable = true
    debugEnabled = true
    debugPort = 5006
}

When using IDE's superdev may need a kick as the IDE caches the compiled classes, using the gradle compileJava works.

Pressing any key in superdev will re-load Ninja.

Releases

No releases published

Packages

No packages published

Languages