This repository was archived by the owner on Jan 22, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +18
-1
lines changed
tutorials/servlet-web-applications Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change 11Code for the [ Creating Web Applications with Http Servlets] ( http://kotlinlang.org/docs/tutorials/httpservlets.html ) tutorial.
2+
3+ To run this from command line, we can use [ gretty] , a gradle plugin to run the application war under Jetty.
4+
5+ Run this command to start the app:-
6+
7+ gradle appStart
8+
9+ References - https://www.petrikainulainen.net/programming/gradle/getting-started-with-gradle-creating-a-web-application-project/
10+
11+ [ gretty ] :https://github.com/akhikhl/gretty/blob/master/changes.md
Original file line number Diff line number Diff line change @@ -5,11 +5,13 @@ buildscript {
55 }
66 dependencies {
77 classpath " org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version "
8+ classpath ' org.akhikhl.gretty:gretty:+'
89 }
910}
1011
1112apply plugin : ' kotlin'
1213apply plugin : ' war'
14+ apply plugin : ' org.akhikhl.gretty'
1315
1416repositories {
1517 jcenter()
@@ -31,4 +33,9 @@ sourceSets {
3133 srcDir " test/main/kotlin"
3234 }
3335 }
34- }
36+ }
37+
38+ gretty {
39+ contextPath = ' /'
40+ servletContainer = ' jetty9'
41+ }
You can’t perform that action at this time.
0 commit comments