From d85afd93fa36e70f77bffc49738c310b0ef02cd1 Mon Sep 17 00:00:00 2001 From: Manvi Singh Date: Tue, 14 Jul 2026 14:55:54 +0530 Subject: [PATCH] Convert to multi-module structure - Move source code and build files into cics-java-liberty-springboot-security-app module - Add cics-java-liberty-springboot-security-cicsbundle module for CICS bundle packaging - Update root pom.xml to parent POM with module declarations - Update settings.gradle to include both subprojects - Update .gitignore to exclude build/target directories in all modules - Both Gradle and Maven builds verified successful --- .../.classpath | 17 ++++ .../.project | 37 ++++++++ .../org.eclipse.buildship.core.prefs | 2 + .../org.eclipse.wst.common.component | 9 ++ ....eclipse.wst.common.project.facet.core.xml | 7 ++ .../build.gradle | 0 .../pom.xml | 90 +++++++++++++++++++ .../springboot/security/Application.java | 0 .../security/ServletInitializer.java | 0 .../security/WebSecureController.java | 0 .../main/resources/application.properties | 0 .../resources/static/css/bootstrap.min.css | 0 .../src}/main/resources/templates/error.html | 0 .../src}/main/resources/templates/home.html | 0 .../src}/main/resources/templates/login.html | 0 .../src}/main/webapp/WEB-INF/web.xml | 0 .../build.gradle | 34 +++++++ .../pom.xml | 55 ++++++++++++ pom.xml | 80 +++++------------ settings.gradle | 10 ++- 20 files changed, 280 insertions(+), 61 deletions(-) create mode 100644 cics-java-liberty-springboot-security-app/.classpath create mode 100644 cics-java-liberty-springboot-security-app/.project create mode 100644 cics-java-liberty-springboot-security-app/.settings/org.eclipse.buildship.core.prefs create mode 100644 cics-java-liberty-springboot-security-app/.settings/org.eclipse.wst.common.component create mode 100644 cics-java-liberty-springboot-security-app/.settings/org.eclipse.wst.common.project.facet.core.xml rename build.gradle => cics-java-liberty-springboot-security-app/build.gradle (100%) create mode 100644 cics-java-liberty-springboot-security-app/pom.xml rename {src => cics-java-liberty-springboot-security-app/src}/main/java/com/ibm/cicsdev/springboot/security/Application.java (100%) rename {src => cics-java-liberty-springboot-security-app/src}/main/java/com/ibm/cicsdev/springboot/security/ServletInitializer.java (100%) rename {src => cics-java-liberty-springboot-security-app/src}/main/java/com/ibm/cicsdev/springboot/security/WebSecureController.java (100%) rename {src => cics-java-liberty-springboot-security-app/src}/main/resources/application.properties (100%) rename {src => cics-java-liberty-springboot-security-app/src}/main/resources/static/css/bootstrap.min.css (100%) rename {src => cics-java-liberty-springboot-security-app/src}/main/resources/templates/error.html (100%) rename {src => cics-java-liberty-springboot-security-app/src}/main/resources/templates/home.html (100%) rename {src => cics-java-liberty-springboot-security-app/src}/main/resources/templates/login.html (100%) rename {src => cics-java-liberty-springboot-security-app/src}/main/webapp/WEB-INF/web.xml (100%) create mode 100644 cics-java-liberty-springboot-security-cicsbundle/build.gradle create mode 100644 cics-java-liberty-springboot-security-cicsbundle/pom.xml diff --git a/cics-java-liberty-springboot-security-app/.classpath b/cics-java-liberty-springboot-security-app/.classpath new file mode 100644 index 0000000..97233ed --- /dev/null +++ b/cics-java-liberty-springboot-security-app/.classpath @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/cics-java-liberty-springboot-security-app/.project b/cics-java-liberty-springboot-security-app/.project new file mode 100644 index 0000000..c85f7b5 --- /dev/null +++ b/cics-java-liberty-springboot-security-app/.project @@ -0,0 +1,37 @@ + + + com.ibm.cicsdev.springboot.security + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.wst.common.project.facet.core.builder + + + + + org.eclipse.buildship.core.gradleprojectbuilder + + + + + org.eclipse.m2e.core.maven2Builder + + + + + + org.eclipse.jem.workbench.JavaEMFNature + org.eclipse.wst.common.modulecore.ModuleCoreNature + org.eclipse.jdt.core.javanature + org.eclipse.m2e.core.maven2Nature + org.eclipse.wst.common.project.facet.core.nature + org.eclipse.buildship.core.gradleprojectnature + + diff --git a/cics-java-liberty-springboot-security-app/.settings/org.eclipse.buildship.core.prefs b/cics-java-liberty-springboot-security-app/.settings/org.eclipse.buildship.core.prefs new file mode 100644 index 0000000..e889521 --- /dev/null +++ b/cics-java-liberty-springboot-security-app/.settings/org.eclipse.buildship.core.prefs @@ -0,0 +1,2 @@ +connection.project.dir= +eclipse.preferences.version=1 diff --git a/cics-java-liberty-springboot-security-app/.settings/org.eclipse.wst.common.component b/cics-java-liberty-springboot-security-app/.settings/org.eclipse.wst.common.component new file mode 100644 index 0000000..f68927d --- /dev/null +++ b/cics-java-liberty-springboot-security-app/.settings/org.eclipse.wst.common.component @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/cics-java-liberty-springboot-security-app/.settings/org.eclipse.wst.common.project.facet.core.xml b/cics-java-liberty-springboot-security-app/.settings/org.eclipse.wst.common.project.facet.core.xml new file mode 100644 index 0000000..cea524a --- /dev/null +++ b/cics-java-liberty-springboot-security-app/.settings/org.eclipse.wst.common.project.facet.core.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/build.gradle b/cics-java-liberty-springboot-security-app/build.gradle similarity index 100% rename from build.gradle rename to cics-java-liberty-springboot-security-app/build.gradle diff --git a/cics-java-liberty-springboot-security-app/pom.xml b/cics-java-liberty-springboot-security-app/pom.xml new file mode 100644 index 0000000..e0b04cb --- /dev/null +++ b/cics-java-liberty-springboot-security-app/pom.xml @@ -0,0 +1,90 @@ + + 4.0.0 + + + + com.ibm.cicsdev.springboot + cics-java-liberty-springboot-security + 0.1.0 + ../pom.xml + + + + cics-java-liberty-springboot-security-app + com.ibm.cicsdev.springboot.security.app + Spring Boot Web Secure Sample with Jakarta EE pre-authentication - Application + war + + 17 + UTF-8 + ${java.version} + true + + + + + + + + com.ibm.cics + com.ibm.cics.ts.bom + 6.1-20250812133513-PH63856 + pom + import + + + + + + + + com.ibm.cics + com.ibm.cics.server + + + + + org.springframework.boot + spring-boot-starter-web + + + + + org.springframework.boot + spring-boot-starter-tomcat + provided + + + + + org.springframework.boot + spring-boot-starter-security + + + + + org.springframework.boot + spring-boot-starter-thymeleaf + + + + + + + org.springframework.boot + spring-boot-maven-plugin + + + org.apache.maven.plugins + maven-compiler-plugin + + ${java.version} + + + + + + diff --git a/src/main/java/com/ibm/cicsdev/springboot/security/Application.java b/cics-java-liberty-springboot-security-app/src/main/java/com/ibm/cicsdev/springboot/security/Application.java similarity index 100% rename from src/main/java/com/ibm/cicsdev/springboot/security/Application.java rename to cics-java-liberty-springboot-security-app/src/main/java/com/ibm/cicsdev/springboot/security/Application.java diff --git a/src/main/java/com/ibm/cicsdev/springboot/security/ServletInitializer.java b/cics-java-liberty-springboot-security-app/src/main/java/com/ibm/cicsdev/springboot/security/ServletInitializer.java similarity index 100% rename from src/main/java/com/ibm/cicsdev/springboot/security/ServletInitializer.java rename to cics-java-liberty-springboot-security-app/src/main/java/com/ibm/cicsdev/springboot/security/ServletInitializer.java diff --git a/src/main/java/com/ibm/cicsdev/springboot/security/WebSecureController.java b/cics-java-liberty-springboot-security-app/src/main/java/com/ibm/cicsdev/springboot/security/WebSecureController.java similarity index 100% rename from src/main/java/com/ibm/cicsdev/springboot/security/WebSecureController.java rename to cics-java-liberty-springboot-security-app/src/main/java/com/ibm/cicsdev/springboot/security/WebSecureController.java diff --git a/src/main/resources/application.properties b/cics-java-liberty-springboot-security-app/src/main/resources/application.properties similarity index 100% rename from src/main/resources/application.properties rename to cics-java-liberty-springboot-security-app/src/main/resources/application.properties diff --git a/src/main/resources/static/css/bootstrap.min.css b/cics-java-liberty-springboot-security-app/src/main/resources/static/css/bootstrap.min.css similarity index 100% rename from src/main/resources/static/css/bootstrap.min.css rename to cics-java-liberty-springboot-security-app/src/main/resources/static/css/bootstrap.min.css diff --git a/src/main/resources/templates/error.html b/cics-java-liberty-springboot-security-app/src/main/resources/templates/error.html similarity index 100% rename from src/main/resources/templates/error.html rename to cics-java-liberty-springboot-security-app/src/main/resources/templates/error.html diff --git a/src/main/resources/templates/home.html b/cics-java-liberty-springboot-security-app/src/main/resources/templates/home.html similarity index 100% rename from src/main/resources/templates/home.html rename to cics-java-liberty-springboot-security-app/src/main/resources/templates/home.html diff --git a/src/main/resources/templates/login.html b/cics-java-liberty-springboot-security-app/src/main/resources/templates/login.html similarity index 100% rename from src/main/resources/templates/login.html rename to cics-java-liberty-springboot-security-app/src/main/resources/templates/login.html diff --git a/src/main/webapp/WEB-INF/web.xml b/cics-java-liberty-springboot-security-app/src/main/webapp/WEB-INF/web.xml similarity index 100% rename from src/main/webapp/WEB-INF/web.xml rename to cics-java-liberty-springboot-security-app/src/main/webapp/WEB-INF/web.xml diff --git a/cics-java-liberty-springboot-security-cicsbundle/build.gradle b/cics-java-liberty-springboot-security-cicsbundle/build.gradle new file mode 100644 index 0000000..f0116e8 --- /dev/null +++ b/cics-java-liberty-springboot-security-cicsbundle/build.gradle @@ -0,0 +1,34 @@ +// ============================================================================ +// Plugins +// ============================================================================ +plugins +{ + id 'com.ibm.cics.bundle' version '1.0.8' +} + +// ============================================================================ +// Project Information +// ============================================================================ +description = 'CICS Spring Boot Security Application - CICS Bundle' +version = '0.1.0' + +// ============================================================================ +// Dependencies +// ============================================================================ +dependencies +{ + // Application WAR from sibling project + cicsBundlePart project(path: ':cics-java-liberty-springboot-security-app', configuration: 'archives') +} + +// ============================================================================ +// CICS Bundle Configuration +// ============================================================================ +cicsBundle +{ + build + { + defaultJVMServer = project.findProperty('cics.jvmserver') ?: 'DFHWLP' + } +} + diff --git a/cics-java-liberty-springboot-security-cicsbundle/pom.xml b/cics-java-liberty-springboot-security-cicsbundle/pom.xml new file mode 100644 index 0000000..2bd3d0a --- /dev/null +++ b/cics-java-liberty-springboot-security-cicsbundle/pom.xml @@ -0,0 +1,55 @@ + + + 4.0.0 + + + + + + com.ibm.cicsdev.springboot + cics-java-liberty-springboot-security + 0.1.0 + ../pom.xml + + + + + + cics-java-liberty-springboot-security-cicsbundle + cics-bundle + CICS Spring Boot Security - CICS Bundle + + + + + + + + ${project.groupId} + cics-java-liberty-springboot-security-app + ${project.version} + war + + + + + + + + + + + com.ibm.cics + cics-bundle-maven-plugin + 1.0.8 + true + + ${cics.jvmserver} + + + + + + diff --git a/pom.xml b/pom.xml index 29b842c..eb35aa4 100644 --- a/pom.xml +++ b/pom.xml @@ -1,6 +1,5 @@ - + 4.0.0 @@ -12,19 +11,22 @@ - + + + com.ibm.cicsdev.springboot cics-java-liberty-springboot-security 0.1.0 - cics-java-liberty-springboot-security - Spring Boot Web Secure Sample with Jakarta EE pre-authentication + Demo project for Spring Boot with CICS Security + pom + 17 UTF-8 - ${java.version} - ${java.version} + ${java.version} + DFHWLP - + @@ -38,56 +40,14 @@ - - - - - com.ibm.cics - com.ibm.cics.server - - - - - org.springframework.boot - spring-boot-starter-web - - - - - org.springframework.boot - spring-boot-starter-tomcat - provided - - - - - org.springframework.boot - spring-boot-starter-security - - - - - org.springframework.boot - spring-boot-starter-thymeleaf - - - - - war - - - - org.springframework.boot - spring-boot-maven-plugin - - - org.apache.maven.plugins - maven-compiler-plugin - - ${java.version} - - - - + + + + + + cics-java-liberty-springboot-security-app + cics-java-liberty-springboot-security-cicsbundle + + diff --git a/settings.gradle b/settings.gradle index 5dba858..4b1e2e4 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1,8 +1,16 @@ // ============================================================================ // Root Project Configuration +// ============================================================================ plugins { id 'org.gradle.toolchains.foojay-resolver-convention' version '0.9.0' } +rootProject.name = 'cics-java-liberty-springboot-security' + +// ============================================================================ +// Subprojects // ============================================================================ -rootProject.name = 'com.ibm.cicsdev.springboot.security' +include(':cics-java-liberty-springboot-security-app') +include(':cics-java-liberty-springboot-security-cicsbundle') + +