From cf25da45d3e1d1b65b2c7385130bc023db797a40 Mon Sep 17 00:00:00 2001 From: Suriya Prakash Date: Wed, 16 Oct 2024 07:07:45 +0000 Subject: [PATCH] javalin framework support added --- src/main.py | 2 +- src/templates/java/docker-compose.yml.j2 | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.py b/src/main.py index afd5646..63a41b2 100644 --- a/src/main.py +++ b/src/main.py @@ -31,7 +31,7 @@ def podman_init(project_name, language): case "java": framework = click.prompt('Choose framework', - type=click.Choice(['spring', 'quarkus', 'micronaut', 'vertx', 'exit'], case_sensitive=False), + type=click.Choice(['spring', 'quarkus', 'micronaut', 'vertx', 'javalin', 'exit'], case_sensitive=False), show_choices=True) port = click.prompt('Choose port', diff --git a/src/templates/java/docker-compose.yml.j2 b/src/templates/java/docker-compose.yml.j2 index 3d91f6d..0c36968 100644 --- a/src/templates/java/docker-compose.yml.j2 +++ b/src/templates/java/docker-compose.yml.j2 @@ -9,6 +9,7 @@ services: {% elif framework == 'quarkus' %}container_name: quarkus {% elif framework == 'micronaut' %}container_name: micronaut {% elif framework == 'vertx' %}container_name: vertx + {% elif framework == 'javalin' %}container_name: javalin {% endif %}ports: - "{{ port }}:{{ port }}"