Skip to content

Commit 2bfbb5b

Browse files
committed
Cache grapes locally
This change causes the Spring Boot CLI container to look for and cache grapes locally in the application's directory. [#54518442]
1 parent e857485 commit 2bfbb5b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/java_buildpack/container/spring_boot_cli.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def release
8282
java_opts_string = ContainerUtils.space("JAVA_OPTS=\"#{ContainerUtils.to_java_opts_s(@java_opts)}\"")
8383
spring_boot_script = ContainerUtils.space(File.join SPRING_BOOT_CLI_HOME, 'bin', 'spring')
8484

85-
"#{java_home_string}#{java_opts_string}#{spring_boot_script} run *.groovy -- --server.port=$PORT"
85+
"#{java_home_string}#{java_opts_string}#{spring_boot_script} run --local *.groovy -- --server.port=$PORT"
8686
end
8787

8888
private

spec/java_buildpack/container/spring_boot_cli_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ module JavaBuildpack::Container
161161
configuration: {}
162162
).release
163163

164-
expect(command).to eq('JAVA_HOME=test-java-home JAVA_OPTS="test-opt-1 test-opt-2" .spring-boot-cli/bin/spring run *.groovy -- --server.port=$PORT')
164+
expect(command).to eq('JAVA_HOME=test-java-home JAVA_OPTS="test-opt-1 test-opt-2" .spring-boot-cli/bin/spring run --local *.groovy -- --server.port=$PORT')
165165
end
166166

167167
end

0 commit comments

Comments
 (0)