Skip to content

Playground for testing Kotlin support in Quarkus

Notifications You must be signed in to change notification settings

2kodes/quarkus-kotlin-demo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Quarkus Kotlin Demo

A test repo of Quarkus and its Kotlin support.

Checkout the other branches:

  • master: working simple demo
  • constructor-injection: constructor injection in Kotlin (SOLVED)
  • rest-client: Using the Rest Client in Kotlin (SOLVED)

Don't forget to add @ApplicationScoped to all-open plugin as by default only @Path is added. Check Kotlin Guide where it's specified as requirement (for now).

<option>all-open:annotation=javax.enterprise.context.ApplicationScoped</option>

Run the app:

mvn compile quarkus:dev

Test end point:

curl http://120.0.0.1:8080/infos

Project created with:

 mvn io.quarkus:quarkus-maven-plugin:0.11.0:create \
    -DprojectGroupId=quarkus.demo \
    -DprojectArtifactId=quarkus-kotlin \
    -DclassName="quarkus.demo.InfosResource" \
    -Dpath="/infos" \
    -Dextensions="kotlin, smallrye-rest-client, resteasy-jsonb"

About

Playground for testing Kotlin support in Quarkus

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 71.5%
  • Kotlin 19.6%
  • Dockerfile 8.9%