This is an automated email from the ASF dual-hosted git repository.

jdaugherty pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/grails-intellij-plugin.git


The following commit(s) were added to refs/heads/main by this push:
     new ac0f003  Fix project generator ignoring Tomcat servlet selection
ac0f003 is described below

commit ac0f00399c41e4992e3e093128899470d91e4476
Author: James Daugherty <[email protected]>
AuthorDate: Mon Jul 20 23:05:15 2026 -0500

    Fix project generator ignoring Tomcat servlet selection
    
    The Forge module builder hardcoded the servlet type to JETTY after
    building the wizard step, and afterChange only fired on user-initiated
    changes. Leaving the segmented button on its default (Tomcat) therefore
    produced a Jetty project. Seed the stored value from the property's
    actual value and default the fallback to TOMCAT to match the UI.
---
 .../plugins/grails/feature/forge/GrailsForgeModuleBuilder.kt          | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/src/org/jetbrains/plugins/grails/feature/forge/GrailsForgeModuleBuilder.kt 
b/src/org/jetbrains/plugins/grails/feature/forge/GrailsForgeModuleBuilder.kt
index 6f4278d..19bd6d6 100644
--- a/src/org/jetbrains/plugins/grails/feature/forge/GrailsForgeModuleBuilder.kt
+++ b/src/org/jetbrains/plugins/grails/feature/forge/GrailsForgeModuleBuilder.kt
@@ -233,7 +233,7 @@ internal class GrailsForgeModuleBuilder : 
WebStarterModuleBuilder() {
   }
 
   private fun getServletType(): ServletType {
-    return starterContext.getUserData(SERVLET_KEY) ?: ServletType.JETTY
+    return starterContext.getUserData(SERVLET_KEY) ?: ServletType.TOMCAT
   }
 
   private fun setGormType(gormType: GormType) {
@@ -255,7 +255,7 @@ internal class GrailsForgeModuleBuilder : 
WebStarterModuleBuilder() {
             .bind(servletProperty)
         }.bottomGap(BottomGap.SMALL)
 
-        setServletType(ServletType.JETTY)
+        setServletType(servletProperty.get())
         servletProperty.afterChange { setServletType(it) }
 
         layout.row(GrailsBundle.message("module.builder.gorm.type")) {

Reply via email to