gradle中使用gretty

参考 https://akhikhl.github.io/gretty-doc/Getting-started.html

build.gradle

group 'org.zbq'
version '1.0-SNAPSHOT'

apply plugin: 'java'
apply plugin: 'war'
apply from: 'https://raw.github.com/akhikhl/gretty/master/pluginScripts/gretty.plugin'

sourceCompatibility = 1.8

repositories {
    mavenCentral()
}

dependencies {
    testCompile group: 'junit', name: 'junit', version: '4.12'
}

gretty {
    httpPort = 8888
    contextPath = ""
    servletContainer = 'tomcat8'
    debugPort = 5005      // default
    debugSuspend = true   // default
    httpsEnabled = true
    httpsPort = 4430
}
gradle appRun

你可能感兴趣的:(java,工具软件)