https://kotlinlang.org logo
Join SlackCommunities
Powered by
# cloudfoundry
  • n

    Nykykof

    08/02/2018, 7:33 AM
    set the channel description: know how to deploy pure kotlin-based project on cloud foundry
  • n

    Nykykof

    08/02/2018, 8:00 AM
    Hello I'm working on a pure kotlin-based web project. Everything is fine localy and with my CI pipeline also. The issue comes when i want to push the project on Cloud Foundry: The official java buildpack does not work for the project. Is there a dedicated buildpack for kotlin projects or some java buildpack version which works with kotlin project ?
  • s

    sdeleuze

    08/03/2018, 5:47 AM
    The official Java buildpack works with Spring Boot + Kotlin. How do you specify the main class in your project?
  • n

    Nykykof

    08/06/2018, 8:03 AM
    @sdeleuze i do not use Spring boot but Ktor (a kotlin web framework) and my pom.xml was not well configured ( i did not specified the main class as with spring boot i didn't do so and the dependencies was not included in the builded jar). I solved the issue by specifying the main class (the full qualified name) and asked maven to include the dependencies when building the jar.