Skip to content

Commit 42f46d6

Browse files
T31: Skip temporal-spring-ai on JDK < 17
Docker CI runs Java 11 which can't compile --release 17. Conditionally exclude the module from settings.gradle and BOM when the build JDK is below 17. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent b11249a commit 42f46d6

3 files changed

Lines changed: 18 additions & 2 deletions

File tree

TASK_QUEUE.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,16 @@
114114
"depends_on": [],
115115
"status": "completed",
116116
"notes": "Edge CI log showed: Dependency resolution is looking for a library compatible with JVM runtime version 17, but temporal-sdk is only compatible with JVM runtime version 21 or newer."
117+
},
118+
{
119+
"id": "T31",
120+
"title": "Fix CI: Docker build fails with Java 11 (release 17 not supported)",
121+
"description": "Docker CI runs Java 11 which cannot compile --release 17. Conditionally exclude temporal-spring-ai from settings.gradle and BOM when JDK < 17.",
122+
"severity": "high",
123+
"category": "bugfix",
124+
"depends_on": [],
125+
"status": "completed",
126+
"notes": "Docker CI log showed: error: release version 17 not supported. JAVA_HOME was Java 11."
117127
}
118128
]
119129
}

settings.gradle

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@ include 'temporal-testing'
66
include 'temporal-test-server'
77
include 'temporal-opentracing'
88
include 'temporal-kotlin'
9-
include 'temporal-spring-ai'
9+
// temporal-spring-ai requires Java 17+ (Spring AI dependency).
10+
// Exclude from builds running on older JDKs.
11+
if (JavaVersion.current().isCompatibleWith(JavaVersion.VERSION_17)) {
12+
include 'temporal-spring-ai'
13+
}
1014
include 'temporal-spring-boot-autoconfigure'
1115
include 'temporal-spring-boot-starter'
1216
include 'temporal-remote-data-encoder'

temporal-bom/build.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ dependencies {
1212
api project(':temporal-sdk')
1313
api project(':temporal-serviceclient')
1414
api project(':temporal-shaded')
15-
api project(':temporal-spring-ai')
15+
if (JavaVersion.current().isCompatibleWith(JavaVersion.VERSION_17)) {
16+
api project(':temporal-spring-ai')
17+
}
1618
api project(':temporal-spring-boot-autoconfigure')
1719
api project(':temporal-spring-boot-starter')
1820
api project(':temporal-test-server')

0 commit comments

Comments
 (0)