Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KTOR feature doesn't add a KTOR server #232

Closed
graemerocher opened this issue May 19, 2020 · 2 comments
Closed

KTOR feature doesn't add a KTOR server #232

graemerocher opened this issue May 19, 2020 · 2 comments
Assignees
Labels
type: bug Something isn't working
Milestone

Comments

@graemerocher
Copy link
Contributor

The KTOR feature is broken because it doesn't add a KTOR server. As a minimum the following should be added:

implementation "io.ktor:ktor-server-netty:1.3.2"
@graemerocher graemerocher added the type: bug Something isn't working label May 19, 2020
@graemerocher graemerocher added this to the 2.0.0 milestone May 19, 2020
@graemerocher
Copy link
Contributor Author

@sdelamo sdelamo self-assigned this May 22, 2020
@sdelamo
Copy link
Contributor

sdelamo commented May 24, 2020

I've set a slightly modified version of Application.kt. So that the app can be start it with ./gradlew run.

package com.example
import io.ktor.server.netty.NettyApplicationEngine
import io.micronaut.ktor.KtorApplication
import io.micronaut.ktor.runApplication
import javax.inject.Singleton

@Singleton
class KtorApp : KtorApplication<NettyApplicationEngine.Configuration>({
})
object Application {
    @JvmStatic
    fun main(args: Array<String>) {
        runApplication(args)
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants