-
Notifications
You must be signed in to change notification settings - Fork 341
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split out :di-kodein-advanced from :di-kodein
- Loading branch information
1 parent
6eb8693
commit 0e2a507
Showing
5 changed files
with
51 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Kodein-DI | ||
|
||
Sample project for [Ktor](https://ktor.io) showing how to use [Kodein DI](https://kodein.org/Kodein-DI/) within Ktor. | ||
|
||
## Running | ||
|
||
Execute this command in the repository's root directory to run this sample: | ||
|
||
```bash | ||
./gradlew :di-kodein-advanced:run | ||
``` | ||
|
||
And navigate to [http://localhost:8080/](http://localhost:8080/) to see the sample home page. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
buildscript { | ||
repositories { | ||
jcenter() | ||
} | ||
dependencies { | ||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" | ||
} | ||
} | ||
|
||
apply plugin: 'kotlin' | ||
apply plugin: 'application' | ||
|
||
mainClassName = "io.ktor.samples.kodein.KodeinAdvancedApplicationKt" | ||
|
||
sourceSets { | ||
main.kotlin.srcDirs = [ 'src' ] | ||
test.kotlin.srcDirs = [ 'test' ] | ||
main.resources.srcDirs = [ 'resources' ] | ||
} | ||
|
||
repositories { | ||
jcenter() | ||
maven { url "https://dl.bintray.com/kotlin/ktor" } | ||
} | ||
|
||
dependencies { | ||
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version" | ||
compile "io.ktor:ktor-server-netty:$ktor_version" | ||
compile "ch.qos.logback:logback-classic:$logback_version" | ||
|
||
compile "io.ktor:ktor-html-builder:$ktor_version" | ||
compile "io.ktor:ktor-locations:$ktor_version" | ||
|
||
compile 'org.kodein.di:kodein-di-generic-jvm:5.2.0' | ||
|
||
testCompile "io.ktor:ktor-server-test-host:$ktor_version" | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters