mirror of
https://github.com/OpenLiberty/liberty-bikes.git
synced 2024-11-27 01:20:01 +08:00
23 lines
397 B
Groovy
23 lines
397 B
Groovy
ext {
|
|
httpPort = 8080
|
|
httpsPort = 8443
|
|
}
|
|
|
|
liberty {
|
|
server {
|
|
name = 'game-service'
|
|
dropins = [war]
|
|
bootstrapProperties = ['httpPort': httpPort, 'httpsPort': httpsPort]
|
|
}
|
|
}
|
|
|
|
libertyStart.doLast {
|
|
println "Application available at: http://localhost:${httpPort}/"
|
|
}
|
|
|
|
task open {
|
|
doLast {
|
|
java.awt.Desktop.desktop.browse "http://localhost:${httpPort}/index.jsp".toURI()
|
|
}
|
|
}
|