Skip to content

Commit 496c9b6

Browse files
authored
restructuring of code
2 parents eed2077 + 799e6ba commit 496c9b6

19 files changed

Lines changed: 235 additions & 2 deletions

.classpath

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@
66
<attribute name="gradle_used_by_scope" value="main,test"/>
77
</attributes>
88
</classpathentry>
9-
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-17/"/>
9+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-17/">
10+
<attributes>
11+
<attribute name="module" value="true"/>
12+
</attributes>
13+
</classpathentry>
1014
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
1115
<classpathentry kind="con" path="org.eclipse.buildship.core.gradleclasspathcontainer">
1216
<attributes>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<classpath>
3+
<classpathentry kind="src" path="src"/>
4+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
5+
<attributes>
6+
<attribute name="owner.project.facets" value="java"/>
7+
</attributes>
8+
</classpathentry>
9+
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
10+
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/>
11+
<classpathentry kind="con" path="com.ibm.cics.explorer.sdk.web.LIBERTY_LIBRARIES/L./V.62/JE.JEE_V9_R1"/>
12+
<classpathentry kind="output" path="build/classes"/>
13+
</classpath>
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/.gradle/
2+
/target/
3+
/build/
4+
/bin/
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>testWebApp</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>org.eclipse.jdt.core.javabuilder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
13+
<buildCommand>
14+
<name>org.eclipse.wst.common.project.facet.core.builder</name>
15+
<arguments>
16+
</arguments>
17+
</buildCommand>
18+
<buildCommand>
19+
<name>org.eclipse.wst.validation.validationbuilder</name>
20+
<arguments>
21+
</arguments>
22+
</buildCommand>
23+
</buildSpec>
24+
<natures>
25+
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
26+
<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
27+
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
28+
<nature>org.eclipse.jdt.core.javanature</nature>
29+
<nature>org.eclipse.wst.jsdt.core.jsNature</nature>
30+
</natures>
31+
</projectDescription>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
arguments=
2+
auto.sync=false
3+
build.scans.enabled=false
4+
connection.gradle.distribution=GRADLE_DISTRIBUTION(WRAPPER)
5+
connection.project.dir=
6+
eclipse.preferences.version=1
7+
gradle.user.home=
8+
java.home=
9+
jvm.arguments=
10+
offline.mode=false
11+
override.workspace.settings=false
12+
show.console.view=false
13+
show.executions.view=false
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project-modules id="moduleCoreId" project-version="1.5.0">
3+
<wb-module deploy-name="com.ibm.cicsdev.springboot.jcics">
4+
<property name="context-root" value="cics-java-liberty-springboot-jcics"/>
5+
<wb-resource deploy-path="/WEB-INF/classes" source-path="src/main/java"/>
6+
<wb-resource deploy-path="/" source-path="src/main/webapp"/>
7+
</wb-module>
8+
</project-modules>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<faceted-project>
3+
<fixed facet="jst.java"/>
4+
<fixed facet="jst.web"/>
5+
<installed facet="jst.web" version="2.4"/>
6+
<installed facet="jst.java" version="17"/>
7+
</faceted-project>
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
plugins
2+
{
3+
id 'org.springframework.boot' version '3.5.9'
4+
id 'io.spring.dependency-management' version '1.1.7'
5+
id 'java'
6+
id 'eclipse'
7+
id 'idea'
8+
id 'war'
9+
id 'maven-publish'
10+
}
11+
12+
group = 'com.ibm.cicsdev.springboot'
13+
version = '0.1.0'
14+
15+
base
16+
{
17+
archivesName = "cics-java-liberty-springboot-jcics"
18+
}
19+
20+
21+
java
22+
{
23+
sourceCompatibility = JavaVersion.VERSION_17
24+
targetCompatibility = JavaVersion.VERSION_17
25+
}
26+
27+
28+
// If in Eclipse, add Javadoc to the local project classpath
29+
eclipse
30+
{
31+
classpath
32+
{
33+
downloadJavadoc = true
34+
}
35+
}
36+
37+
repositories
38+
{
39+
mavenCentral()
40+
41+
}
42+
43+
dependencies
44+
{
45+
// Spring Boot web starter for building REST/HTTP endpoints
46+
implementation("org.springframework.boot:spring-boot-starter-web")
47+
48+
// Tomcat provided by CICS Liberty at runtime
49+
providedRuntime("org.springframework.boot:spring-boot-starter-tomcat")
50+
51+
// Use correct BOM version for CICS TS (6.1 is the minimum supported release for this sample)
52+
// If you are running on a higher CICS TS version, you may replace this with a newer BOM)
53+
compileOnly(enforcedPlatform("com.ibm.cics:com.ibm.cics.ts.bom:6.1-20250812133513-PH63856"))
54+
55+
// JCICS API (version inherited from BOM)
56+
compileOnly("com.ibm.cics:com.ibm.cics.server")
57+
}
58+
59+
//Don't generate a FAT bootWar, we don't need to run standalone
60+
bootWar { enabled = false }
61+
62+
63+
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
source.. = src/main/java/
2+
bin.includes = META-INF/,.
3+
output.. = bin/
Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
<project
2+
xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<modelVersion>4.0.0</modelVersion>
6+
7+
<!-- Inherit defaults from Spring Boot Parent -->
8+
<parent>
9+
<groupId>org.springframework.boot</groupId>
10+
<artifactId>spring-boot-starter-parent</artifactId>
11+
<version>3.5.9</version>
12+
</parent>
13+
14+
<!-- Application properties -->
15+
<groupId>com.ibm.cicsdev.springboot</groupId>
16+
<artifactId>cics-java-liberty-springboot-jcics</artifactId>
17+
<version>0.1.0</version>
18+
<name>cics-java-liberty-springboot-jcics</name>
19+
<description>CICS Spring Boot Application - JCICS Example</description>
20+
21+
<properties>
22+
<java.version>17</java.version>
23+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
24+
<maven.compiler.target>${java.version}</maven.compiler.target>
25+
<maven.compiler.source>${java.version}</maven.compiler.source>
26+
<spring-boot.repackage.skip>true</spring-boot.repackage.skip>
27+
</properties>
28+
29+
<!--Use correct BOM version for CICS TS (6.1 is the minimum supported release for this sample) -->
30+
<!-- If you are running on a higher CICS TS version, you may replace this with a newer BOM) -->
31+
<dependencyManagement>
32+
<dependencies>
33+
<dependency>
34+
<groupId>com.ibm.cics</groupId>
35+
<artifactId>com.ibm.cics.ts.bom</artifactId>
36+
<version>6.1-20250812133513-PH63856</version>
37+
<type>pom</type>
38+
<scope>import</scope>
39+
</dependency>
40+
</dependencies>
41+
</dependencyManagement>
42+
43+
<dependencies>
44+
45+
<dependency>
46+
<groupId>org.springframework.boot</groupId>
47+
<artifactId>spring-boot-starter-web</artifactId>
48+
</dependency>
49+
<!-- Compile against, but don't include JCICS in the final build (version and scope are from BOM) -->
50+
<dependency>
51+
<groupId>com.ibm.cics</groupId>
52+
<artifactId>com.ibm.cics.server</artifactId>
53+
</dependency>
54+
55+
<!-- Compile against, but don't include Tomcat in the runtime build -->
56+
<dependency>
57+
<groupId>org.springframework.boot</groupId>
58+
<artifactId>spring-boot-starter-tomcat</artifactId>
59+
<scope>provided</scope>
60+
</dependency>
61+
</dependencies>
62+
63+
<!-- Package as an executable war (default is jar) -->
64+
<packaging>war</packaging>
65+
<build>
66+
<plugins>
67+
<plugin>
68+
<groupId>org.springframework.boot</groupId>
69+
<artifactId>spring-boot-maven-plugin</artifactId>
70+
</plugin>
71+
</plugins>
72+
</build>
73+
74+
75+
<distributionManagement>
76+
<snapshotRepository>
77+
<id>${publish_repo_snapshots_name}</id>
78+
<url>${publish_repo_snapshots_url}</url>
79+
</snapshotRepository>
80+
<repository>
81+
<id>${publish_repo_releases_name}</id>
82+
<url>${publish_repo_releases_url}</url>
83+
</repository>
84+
</distributionManagement>
85+
86+
</project>

0 commit comments

Comments
 (0)