Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,4 +100,3 @@ jobs:
- name: Build with Gradle Wrapper
run: ./gradlew clean build -Pjava_version=${{ matrix.jdk }}


20 changes: 11 additions & 9 deletions cics-java-liberty-springboot-transactions-app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
plugins
{
id 'org.springframework.boot' version '3.5.16'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id 'io.spring.dependency-management' version '1.1.7'
id 'java'
id 'eclipse'
id 'war'
Expand All @@ -15,16 +15,18 @@ version = '0.1.0'
// Java Configuration
// ============================================================================
java {
toolchain {
toolchain
{
languageVersion = JavaLanguageVersion.of(java_version)
}
}

// ============================================================================
// WAR Configuration
// ============================================================================
war {
archiveFileName = "cics-java-liberty-springboot-transactions-app-${version}.war"
war
{
archiveFileName = 'cics-java-liberty-springboot-transactions.war'
}

// Two versions of the WAR would be built, one for embedding into servers like Liberty (plain)
Expand Down Expand Up @@ -54,18 +56,18 @@ eclipse

repositories
{
mavenCentral()
mavenCentral()
}


dependencies
{
{
// CICS BOM (as of Sept 2024)
compileOnly enforcedPlatform('com.ibm.cics:com.ibm.cics.ts.bom:6.1-20250812133513-PH63856')

// Don't include JCICS in the final build (no need for version because we have BOM)
compileOnly("com.ibm.cics:com.ibm.cics.server")
compileOnly("com.ibm.cics:com.ibm.cics.server")

// Spring Boot web support
implementation ("org.springframework.boot:spring-boot-starter-web")

Expand Down
1 change: 1 addition & 0 deletions cics-java-liberty-springboot-transactions-app/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
<!-- Package as an executable war (default jar) -->
<packaging>war</packaging>
<build>
<finalName>cics-java-liberty-springboot-transactions</finalName>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,2 @@
arguments=
auto.sync=false
build.scans.enabled=false
connection.gradle.distribution=GRADLE_DISTRIBUTION(WRAPPER)
connection.project.dir=..
eclipse.preferences.version=1
gradle.user.home=
java.home=
jvm.arguments=
offline.mode=false
override.workspace.settings=false
show.console.view=false
show.executions.view=false
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// ============================================================================
// Plugins
// ============================================================================
plugins {
plugins
{
id 'com.ibm.cics.bundle' version '1.0.8'
}

Expand All @@ -14,18 +15,19 @@ version = '1.0.0'
// ============================================================================
// Dependencies
// ============================================================================
dependencies {
dependencies
{
// Application WAR from sibling project
cicsBundlePart project(path: ':cics-java-liberty-springboot-transactions-app', configuration: 'archives')
}

// ============================================================================
// CICS Bundle Configuration
// ============================================================================
cicsBundle {
build {
cicsBundle
{
build
{
defaultJVMServer = project.findProperty('cics.jvmserver') ?: 'DFHWLP'
}
}


Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,4 @@
</plugin>
</plugins>
</build>

</project>


4 changes: 4 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,9 @@ org.gradle.daemon=true
# Enable parallel builds for faster compilation
org.gradle.parallel=true

# Enable toolchain auto-provisioning to download JDKs if not found locally
org.gradle.java.installations.auto-detect=true
org.gradle.java.installations.auto-download=true

# Configuration cache disabled - CICS Bundle Plugin 1.0.8 not compatible
# org.gradle.configuration-cache=true
2 changes: 0 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.4-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
11 changes: 10 additions & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
// ============================================================================
// Toolchain Configuration
// ============================================================================
// Configure toolchain resolver for auto-provisioning of JDKs
plugins
{
id 'org.gradle.toolchains.foojay-resolver-convention' version '0.8.0'
}

// ============================================================================
// Root Project Configuration
// ============================================================================
Expand All @@ -7,4 +16,4 @@ rootProject.name = 'cics-java-liberty-springboot-transactions'
// Subprojects
// ============================================================================
include(':cics-java-liberty-springboot-transactions-app')
include(':cics-java-liberty-springboot-transactions-cicsbundle')
include(':cics-java-liberty-springboot-transactions-cicsbundle')
Loading