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 +17
-0
lines changed
tutorials/servlet-web-applications Expand file tree Collapse file tree 2 files changed +17
-0
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()
@@ -19,3 +21,8 @@ dependencies {
1921 compile group : ' javax' , name : ' javaee-api' , version : ' 7.0'
2022 compile " org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version "
2123}
24+
25+ gretty {
26+ contextPath = ' /'
27+ servletContainer = ' jetty9'
28+ }
You can’t perform that action at this time.
0 commit comments