Skip to content

Commit

Permalink
Updates GcfJarLayout to write back classic loaders required for the c…
Browse files Browse the repository at this point in the history
…urrent implementation of this project, before this change the default loaders would be used every time GcfJarLayout was invoked; also updates the pom for function-sample-gcp-http to use the latest development version of the spring cloud gcp adaptor

Fixes gh-1085
  • Loading branch information
lauren-wiebenga-s360 committed Jun 11, 2024
1 parent faeb0f7 commit abdb1ac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import org.springframework.boot.loader.tools.CustomLoaderLayout;
import org.springframework.boot.loader.tools.Layouts;
import org.springframework.boot.loader.tools.LoaderClassesWriter;
import org.springframework.boot.loader.tools.LoaderImplementation;
import org.springframework.cloud.function.adapter.gcp.GcfJarLauncher;

/**
Expand All @@ -46,7 +47,7 @@ public boolean isExecutable() {

@Override
public void writeLoadedClasses(LoaderClassesWriter writer) throws IOException {
writer.writeLoaderClasses();
writer.writeLoaderClasses(LoaderImplementation.CLASSIC);

String jarName = LAUNCHER_NAME.replaceAll("\\.", "/") + ".class";
writer.writeEntry(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-function-adapter-gcp</artifactId>
<version>4.1.0-SNAPSHOT</version>
<version>${spring-cloud-function.version}</version>
</dependency>

<!-- test dependencies -->
Expand Down

0 comments on commit abdb1ac

Please sign in to comment.