Skip to content

Commit

Permalink
Update README.md -- add imports, reorder plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
TanVD committed Dec 11, 2019
1 parent e739302 commit f294759
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions README.md
Expand Up @@ -46,11 +46,16 @@ This gives you access to Kotless DSL annotations in your code and sets up Lambda
Secondly, set up Kotless Gradle plugin. You need to apply the plugin:

```kotlin
//Imports needed for this example
import io.kotless.DSLType
import io.kotless.plugin.gradle.dsl.Webapp.Route53
import io.kotless.plugin.gradle.dsl.kotless

plugins {
id("io.kotless") version "0.1.2" apply true

//Version of Kotlin should 1.3.50+
kotlin("jvm") version "1.3.50" apply true

id("io.kotless") version "0.1.2" apply true
}
```

Expand Down
1 change: 0 additions & 1 deletion examples/kotless-shortener/build.gradle.kts
@@ -1,5 +1,4 @@
import io.kotless.DSLType
import io.kotless.plugin.gradle.dsl.Webapp
import io.kotless.plugin.gradle.dsl.Webapp.Route53
import io.kotless.plugin.gradle.dsl.kotless

Expand Down
Expand Up @@ -11,6 +11,7 @@ fun Routing.siteStatics() {
static("css") {
file("shortener.css", "css/shortener.css")
}

static("js") {
file("shortener.js", "js/shortener.js")
}
Expand Down

0 comments on commit f294759

Please sign in to comment.