当前位置: 首页 > 工具软件 > Gretty > 使用案例 >

gradle中使用gretty

宗政昱
2023-12-01

参考 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
 类似资料: