Skip to content

Commit 2c20c70

Browse files
Spring AI version (#1259)
1 parent fea7639 commit 2c20c70

3 files changed

Lines changed: 16 additions & 2 deletions

File tree

build.gradle

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,10 @@ allprojects {
7676
utilities
7777
}
7878
configurations.configureEach {
79-
// exclude log4j, which may come in transitively, from all configurations to avoid its potential vulnerabilities
79+
// exclude log4j 1.x, which may come in transitively, from all configurations to avoid its potential vulnerabilities
8080
exclude group: "log4j", module:"log4j"
81+
// exclude to ensure we don't have Log4J to SLFJ adapters or other unwanted logging libraries added to modules
82+
exclude group: "org.springframework.boot", module:"spring-boot-starter-logging"
8183
}
8284
configurations.driver.setDescription("Dependencies used for Gradle SetUpProperties task")
8385
configurations.utilities.setDescription("Utility binaries for use on Windows platform")
@@ -202,6 +204,13 @@ allprojects {
202204
configurations.configureEach
203205
{Configuration config ->
204206
resolutionStrategy {
207+
// spring-ai pulls a different version of antr-ST4 than the version pulled by query (via antlr)
208+
force "org.antlr:ST4:${antlrST4Version}"
209+
// also it pulls in a bunch of com.google.api dependencies which conflict with DiscvrLabKeyModules:SequenceAnalysis and wnprc-modules:WNPRC_EHR
210+
force "com.google.api:api-common:${googleApiVersion}"
211+
force "com.google.auth:google-auth-library-oauth2-http:${googleAuthVersion}"
212+
force "com.google.auth:google-auth-library-credentials:${googleAuthVersion}"
213+
205214
// we force this version because we have compilation problems with version 1.9.2 of commons-beanutils, which is the version
206215
// that is brought in by Gradle's conflict resolution as a result of our chosen versions for commons-validator (1.5.0) and commons-digester (1.8.1)
207216
force "commons-beanutils:commons-beanutils:${commonsBeanutilsVersion}"

gradle.properties

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@ annotationsVersion=15.0
9292

9393
antVersion=1.10.13
9494

95+
antlrST4Version=4.3.4
96+
9597
#Unifying version used by DISCVR and Premium
9698
apacheDirectoryVersion=2.1.7
9799
#Transitive dependency of Apache directory: 2.0.18 contains some regressions
@@ -153,6 +155,8 @@ flyingsaucerVersion=R8
153155
fopVersion=2.11
154156

155157
# Force latest for consistency
158+
googleApiVersion=2.47.0
159+
googleAuthVersion=1.33.0
156160
googleAutoValueAnnotationsVersion=1.10.4
157161
googleErrorProneAnnotationsVersion=2.45.0
158162
googleHttpClientVersion=2.0.2
@@ -288,6 +292,7 @@ snappyJavaVersion=1.1.10.8
288292
springBootVersion=4.0.1
289293
# This usually matches the Spring Framework version dictated by springBootVersion
290294
springVersion=7.0.2
295+
springAiVersion=1.1.2
291296

292297
sqliteJdbcVersion=3.51.1.0
293298

server/embedded/src/org/labkey/embedded/EmbeddedExtractor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ public File extractExecutableJar(File destDirectory, boolean distribution, boole
276276
}
277277
if (remotePipeline)
278278
{
279-
// Keep this code in sync with org.labkey.pipeline.api.PipelineServiceImpl.extractBootstrapFromEmbedded()
279+
// Keep this code in sync with org.labkey.pipeline.api.PipelineServiceImpl.getClusterStartupArguments()
280280
bootstrapJar = extractIfMatch(bootstrapJar, entry, jar, "labkeyBootstrap", "labkeyBootstrap.jar", destDirectory);
281281
servletApiJar = extractIfMatch(servletApiJar, entry, jar, "tomcat-embed-core", "servletApi.jar", pipelineLib);
282282
log4JCoreJar = extractIfMatch(log4JCoreJar, entry, jar, "log4j-core", "log4j-core.jar", pipelineLib);

0 commit comments

Comments
 (0)