https://kotlinlang.org logo
Join SlackCommunities
Powered by
# hexagon
  • j

    Jörg Winter

    08/20/2020, 4:18 PM
    Thanks for your reply, so are there Ports from hexagonkt which are framwork agnostic.. or anything like that?
  • j

    jaguililla

    08/20/2020, 8:22 PM
    Yes! Hexagon’s Ports doesn’t depend on any technology (aside hexagon_* modules). The Adapters implement a Port (which we can think of as a feature) using any other library. I.e.: the HTTP Server Port have two Adapters (Servlet and Standalone Jetty) So you could switch from one to the other changing only the binding of the port without any other code change.
  • j

    jaguililla

    08/26/2020, 6:34 AM
    https://dev.to/hexagonkt/hexagon-toolkit-1-3-released-4ajb
    ❤️ 1
    👍 1
  • d

    Dhruv

    11/11/2020, 10:43 AM
    Hi! can anyone please help me in setting up the project using intellij Idea. I am following this doc https://github.com/hexagonkt/hexagon/blob/master/contributing.md and I am done setting up. The build is also completing with success but I am getting similar error in all of the build.gradle.kt files
    Cannot access '<http://java.io|java.io>.Serializable' which is a supertype of 'kotlin.String'. Check your module classpath for missing or conflicting dependencies
  • d

    Dhruv

    11/11/2020, 10:48 AM
    Copy code
    Cannot access class 'java.io.File'. Check your module classpath for missing or conflicting dependencies
    I am also getting this error. I have opened the root hexagon folder in IntelliJ. should I open each sub-module separately? (I don't have much experience with kotlin but want to try contributing)
  • j

    jaguililla

    11/11/2020, 11:50 AM
    Hi… and thanks for trying Hexagon! Could you please post your OS? also, is the Gradle build working? For the IntelliJ problem, it seems there is no JDK set up inside the IDE, could you please check that?
  • d

    Dhruv

    11/11/2020, 12:03 PM
    Thanks for quick reply. I am using Ubuntu 20.1 with kernel 5.8.0-28 gradle build is working fine but I am getting erros in intellij. JDK 11.0.5 is present.
  • j

    jaguililla

    11/11/2020, 12:59 PM
    Can you open the
    Project Structure
    dialog and check
    Project Settings
    >
    Project
    >
    Project SDK
    and also, what version of IntelliJ IDEA are you using?
  • d

    Dhruv

    11/11/2020, 1:25 PM
    2020.2
  • d

    Dhruv

    11/11/2020, 1:27 PM
    I was able to fix it by another method. deleted .idea folder and reimported. still thanks
  • j

    jaguililla

    11/11/2020, 1:35 PM
    Thanks to you 🙂
  • j

    Jörg Winter

    12/22/2020, 4:14 PM
    Hi, I could not find/create MockServer.. does it exist as the docs say ?
  • j

    jaguililla

    12/23/2020, 11:05 PM
    Hi @Jörg Winter, sorry for the late reply. I will review the docs to make sure the examples work. In the meantime, you can check the MockServer tests to check the tool usage: https://github.com/hexagonkt/hexagon/blob/master/port_http_server/src/test/kotlin/MockServerTest.kt sorry for the inconvenience, I'll let you know when I check the docs
  • b

    Bikramjeet Singh

    12/26/2020, 3:06 PM
    @Jörg Winter thank you for your feedback. I will verify the Mock Server code to check if there are any unexpected problems in using it
  • b

    Bikramjeet Singh

    12/26/2020, 4:55 PM
    The OpenAPI Mock Server is located in the test package in the
    port_http_server
    module and it depends upon the
    swagger-parser
    library, so to use it you need to add the following dependencies
    Copy code
    implementation("com.hexagonkt:port_http_server:1.3.4:test")
    implementation("io.swagger.parser.v3:swagger-parser:2.0.24")
    and you should be able to create it. Thanks for pointing this out, I will update the docs to mention the required dependencies. Please let me know if you face any other issues.
    💯 2
  • j

    jaguililla

    12/29/2020, 7:28 PM
    Thanks @Bikramjeet Singh!!!
    😄 1
  • j

    jaguililla

    08/13/2021, 2:30 PM
    https://dev.to/hexagonkt/hexagon-1-4-0-released-4b2b
  • j

    jaguililla

    06/10/2022, 12:04 PM
    Hexagon v2 got released 🎉 This is a big milestone as the toolkit was rewritten completely from scratch. Now it uses a middleware approach (like Express.js) instead before/after filters (as Ruby Sinatra). It also comes with a new Netty adapter 🏎️ Share your feedback 📣, and spread the word 🌍
  • g

    Gopal S Akshintala

    06/15/2022, 5:14 AM
    @jaguililla was
    InjectionManager
    removed in hexagonKt v2? May I know why? It felt like a lightweight dependency injection framework which I thought I can reuse in a different context
  • j

    jaguililla

    06/15/2022, 10:01 PM
    Hi @Gopal S Akshintala Injection support was removed because I though that using DI with constructors is most of the times good enough, however, there is a tag pining those changes in the repository. So it would be an option to provide a dependency injection module as an extra feature. What do you think?
    g
    • 2
    • 2
  • j

    jaguililla

    06/25/2022, 4:03 PM
    The dependency injection functionality was recovered and added to the
    injection
    module: https://search.maven.org/artifact/com.hexagonkt/injection/2.0.15/jar
    🎉 2
  • j

    jaguililla

    11/03/2022, 8:54 AM
    The Hexagon Toolkit v2.2 was released yesterday featuring Web Sockets support. Check it out and share your feedback 😉 https://hexagonkt.com
  • j

    jaguililla

    01/11/2023, 10:34 AM
    A tool for managing CVs as code has been released under the Hexagon organization, you can check the details here if you are interested: https://github.com/hexagonkt/codecv
  • j

    jaguililla

    02/01/2023, 10:13 AM
    Hexagon v2.5.0 has been released featuring performance improvements and Rocker templates support: https://github.com/hexagonkt/hexagon/releases/tag/2.5.0
  • j

    jaguililla

    08/15/2023, 1:49 PM
    Hexagon Toolkit 3.0 was just released 🎊 🎉 Release Highlights • Use same model and event handler for HTTP servers and clients (allowing the creation of middleware also for clients) • Add 'Before' handlers and short circuit 'On' handlers to improve DX (previously, all matching 'On' handlers were executed) • Exception handlers clear the handled exception to prevent further error processing, exception propagation is still possible through a parameter • 3.x releases will be source compatible (enforced in the build process). Experimental modules are excluded and their APIs may change • Native Image metadata inclusion to ease users' applications native compilation (tests pass in native mode at builds) • Update Jetty adapter to v12 • Add Nima Adapter to take advantage of Java Virtual Threads (experimental) Future Features 3.x releases will focus on extensions over the core functionality: • OpenApi contracts generation / enforcement • REST utilities for working with DTOs and ease integration tests • Serverless support (FaaS) • Messaging support (use the event handler to also support message queues) • New adapters • New middleware (callbacks / handlers) • Use annotation processing to allow a Spring / Micronaut DX (optionally)
  • m

    Michael Strasser

    08/21/2023, 4:40 AM
    Version 0.5.5 of Klogging logging library has been released, with a Hexagon logging adapter. If you try it out, let me know if it works for you, or if you want to see changes.
    j
    • 2
    • 2
  • m

    Michael Strasser

    09/01/2023, 10:29 AM
    I was a little surprised to see required version of Java jump from 11 to 17 as part of only a patch change to Hexagon (3.0.4). I hope you don’t get too many complaints!
    j
    • 2
    • 10
  • j

    jaguililla

    03/22/2024, 4:30 PM
    Hi everyone, the Hexagon organization in GitHub has been renamed to github.com/hexagontk, if you have local clones, you should update your repositories' remotes. Sorry for the inconvenience, and thanks for using the toolkit!
  • j

    jaguililla

    03/30/2024, 8:12 AM
    Hexagon support will be done using GitHub discussions: https://github.com/hexagontk/hexagon/discussions from now on. Sorry for the inconvenience.
  • j

    jaguililla

    02/27/2025, 1:08 PM
    Hello, the Hexagon v4 release was made some days ago. It comes with breaking changes (I.e.: renaming of the Maven coordinates). The most important features are: • Semantic versioning: support for major releases will be done and their changes will be compatible • It is faster and smaller • Comply with Kotlin library guidelines • Add JDK HTTP client and server adapter • Experimental serverless support using Google Functions Please, give it a go and share your thoughts... Thanks! https://github.com/hexagontk/hexagon/releases/tag/4.0.1