Azure / Azure/azure-functions-docker

Missing latest gson

Open
#1,186 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Dockerfile
Stars
280
Forks
126
PR merge metrics
No merged PRs in 30d

Description

When updating our code to springboot 3.4.0 out pipeline using the **mcr.microsoft.com/azure-functions/java:4-java21** image stopped working. This is due to there being a new dependency in springboot on gson 2.11.0. Packaging this version with the application does not help since it is also included in the jar file used in the docker container. It is seen first and then there is a problem loading classes that does not exist. I tried just now also with the nightly build of the container and that did not work either. Not sure how the process is here but it would be nice to get new build of the java container with the latest gson in it.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the mcr.microsoft.com/azure-functions/java:4-java21 image definition and its build inputs, then check how dependencies in the container's JAR are assembled. Reproduce the Spring Boot 3.4.0 packaging failure and verify that a rebuilt image includes gson 2.11.0 without the class-loading conflict.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, java
Domain
cloud, infrastructure
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.