Skip to content

[go-migration] Add dependencies to application classpath after staging#1208

Open
kiril-keranov wants to merge 5 commits intocloudfoundry:feature/go-migrationfrom
kiril-keranov:patch-21
Open

[go-migration] Add dependencies to application classpath after staging#1208
kiril-keranov wants to merge 5 commits intocloudfoundry:feature/go-migrationfrom
kiril-keranov:patch-21

Conversation

@kiril-keranov
Copy link
Contributor

@kiril-keranov kiril-keranov commented Mar 10, 2026

The PR addresses issues related to not adding corresponding framework jar dependencies to the application classpath after staging.

  • deps/index/env/CLASSPATH is overwritten and further unused on actual startup
    The corresponding dependencies frameworks that should provide jars to the application classpath are now fixed to append to the CLASSPATH env sourced from profile.d. Instead of rewriting a CLASSPATH variable in deps/index/env they provide sh scripts in the profile.d folder which assemble the CLASSPATH env when sourced.
  • tomcat and spring-boot containers never considered these dependencies to be added to the classpath on issuing the final release command. They are now adjusted to provide a shell script that will build symlinks to these dependencies in the corresponding WEB-INF/lib or BOOT-INF/lib application dependencies folders in order for the dependencies to be subject of classloading.
    Addresses issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant